grlll commited on
Commit
83ba076
·
1 Parent(s): a7653cb

fix the mcp endpoint defintion

Browse files
Files changed (1) hide show
  1. 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
- "mcp-remote",
 
214
  "https://huggingface.co/spaces/{space_id}/gradio_api/mcp/sse",
 
 
215
  "--header",
216
- "Authorization:${{AUTH_HEADER}}"
217
  ],
218
  "env": {{
219
- "AUTH_HEADER": "Bearer YOUR_HF_TOKEN_HERE"
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
  }}