mirror of
https://github.com/hanzoai/apple-health-mcp-server.git
synced 2026-10-30 18:47:42 +00:00
33 lines
558 B
Python
33 lines
558 B
Python
import subprocess
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
|
|
def get_project_dir():
|
|
return Path(__file__).parent.resolve()
|
|
|
|
|
|
def main():
|
|
project_dir = get_project_dir()
|
|
|
|
print("Starting the FastMCP application...", file=sys.stderr)
|
|
|
|
cmd = [
|
|
"uv",
|
|
"run",
|
|
"--directory",
|
|
str(project_dir),
|
|
"fastmcp",
|
|
"run",
|
|
"app/main.py",
|
|
]
|
|
|
|
print(f"Executing: {' '.join(cmd)}", file=sys.stderr)
|
|
|
|
result = subprocess.run(cmd)
|
|
sys.exit(result.returncode)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|