tianruci commited on
Commit
af01678
·
verified ·
1 Parent(s): 93cc327

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -63,8 +63,7 @@ def get_trending_repos(num: int = 10) -> dict:
63
  fetch_github_trending()
64
  return {"trending": cached_trending[:num]}
65
 
66
- # 挂载MCP到FastAPI(使用/mcp路径)
67
- app.mount("/mcp", app=mcp_server.streamable_http_app())
68
 
69
  async def trending_generator():
70
  """SSE 事件生成器"""
 
63
  fetch_github_trending()
64
  return {"trending": cached_trending[:num]}
65
 
66
+ app.mount("/mcp", app=mcp_server.http_app())
 
67
 
68
  async def trending_generator():
69
  """SSE 事件生成器"""