添加mcp配置

This commit is contained in:
2026-01-15 17:34:22 +08:00
parent 0e4a85551f
commit d3bf64ae61
21 changed files with 1601 additions and 275 deletions

8
mcps/__init__.py Normal file
View File

@@ -0,0 +1,8 @@
from fastmcp import FastMCP
from mcps.test.test import weather_mcp
async def create_mcp_app():
main_mcp = FastMCP("MCP 主服务")
await main_mcp.import_server(weather_mcp , prefix="test")
return main_mcp.http_app()

3
mcps/test/test.py Normal file
View File

@@ -0,0 +1,3 @@
from fastmcp import FastMCP
weather_mcp = FastMCP(name="WeatherService")