tianruci commited on
Commit
32d3274
·
verified ·
1 Parent(s): a946f83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -69,8 +69,7 @@ def get_trending_repos(num: int = 10) -> dict:
69
  fetch_github_trending()
70
  return {"trending": cached_trending[:num]}
71
 
72
- mcp_app = mcp_server.http_app()
73
- app.mount("/mcp/", mcp_app)
74
 
75
  async def trending_generator():
76
  """SSE 事件生成器"""
 
69
  fetch_github_trending()
70
  return {"trending": cached_trending[:num]}
71
 
72
+ app.mount("/mcp", mcp_server.streamable_http_app())
 
73
 
74
  async def trending_generator():
75
  """SSE 事件生成器"""