Feature: ADD streamable http mcp support

This commit is contained in:
AniviaTn
2025-05-15 14:24:40 +08:00
parent 579dcbac54
commit 560ac08de3
2 changed files with 28 additions and 27 deletions

View File

@@ -42,5 +42,8 @@ if __name__ == "__main__":
ServerApplication.start()
```
MCPServerManager的start_server接受两个参数
- server_name: 接受一个string。如果不填写则使用默认的MCP Server对应第一节中无server_name参数的情况
- port: 接受一个int表示MCP Server的uvicorn app的启动端口。默认使用8890端口。
- host: 表示MCP Server的host默认值为0.0.0.0
- port: 接受一个int表示MCP Server的uvicorn app的启动端口。默认使用8890端口。
调用的时候,访问路径为`http://${host}:${port}/${server_name}/sse`
以上面默认值为例则访问mcp_search_server的路径为`http://0.0.0.0:8890/mcp_search_server/sse`