StarrySkyWorld commited on
Commit
3c0ad02
·
verified ·
1 Parent(s): 34e54e1

Update Caddyfile

Browse files
Files changed (1) hide show
  1. Caddyfile +4 -4
Caddyfile CHANGED
@@ -1,9 +1,9 @@
1
  :7860 {
2
- handle /mcp* {
 
 
 
3
  reverse_proxy localhost:8000 {
4
- # 强制设置 Accept 头,覆盖客户端的请求头
5
- header_up Accept "application/json, text/event-stream"
6
- # SSE 长连接支持
7
  flush_interval -1
8
  }
9
  }
 
1
  :7860 {
2
+ # MCP 直接透传,添加 Accept 头
3
+ @mcp path /mcp*
4
+ handle @mcp {
5
+ request_header Accept "application/json, text/event-stream"
6
  reverse_proxy localhost:8000 {
 
 
 
7
  flush_interval -1
8
  }
9
  }