Spaces:
Running
Running
fix the mcp endpoint defintion
Browse files- mcp_server.py +6 -3
mcp_server.py
CHANGED
@@ -210,13 +210,16 @@ with gr.Blocks(title="Apple Health MCP Server") as demo:
|
|
210 |
"apple-health": {{
|
211 |
"command": "npx",
|
212 |
"args": [
|
213 |
-
"
|
|
|
214 |
"https://huggingface.co/spaces/{space_id}/gradio_api/mcp/sse",
|
|
|
|
|
215 |
"--header",
|
216 |
-
"Authorization
|
217 |
],
|
218 |
"env": {{
|
219 |
-
"
|
220 |
}}
|
221 |
}}
|
222 |
}}
|
|
|
210 |
"apple-health": {{
|
211 |
"command": "npx",
|
212 |
"args": [
|
213 |
+
"-y",
|
214 |
+
"mcp-remote@latest",
|
215 |
"https://huggingface.co/spaces/{space_id}/gradio_api/mcp/sse",
|
216 |
+
"--transport",
|
217 |
+
"sse-only",
|
218 |
"--header",
|
219 |
+
"Authorization: Bearer {HF_TOKEN}"
|
220 |
],
|
221 |
"env": {{
|
222 |
+
"PATH": "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
|
223 |
}}
|
224 |
}}
|
225 |
}}
|