HFMCP / Caddyfile
StarrySkyWorld's picture
Update Caddyfile
3c0ad02 verified
raw
history blame contribute delete
418 Bytes
: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"
}
}