Spaces:
Running
Running
| :7860 { | |
| # MCP 直接透传,添加 Accept 头 | |
| @mcp path /mcp* | |
| handle @mcp { | |
| request_header Accept "application/json, text/event-stream" | |
| reverse_proxy localhost:8000 { | |
| flush_interval -1 | |
| } | |
| } | |
| handle /files* { | |
| uri strip_prefix /files | |
| root * /srv/files | |
| file_server browse | |
| } | |
| handle { | |
| respond "MCP Server Control - OK" | |
| } | |
| } |