mirror of
https://github.com/agentuniverse-ai/agentUniverse.git
synced 2026-02-09 01:59:19 +08:00
Feature: ADD streamable http mcp support
This commit is contained in:
@@ -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`
|
||||
Reference in New Issue
Block a user