tianruci commited on
Commit
783a869
·
verified ·
1 Parent(s): af01678

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
- app.mount("/mcp", app=mcp_server.http_app())
67
-
68
  async def trending_generator():
69
  """SSE 事件生成器"""
70
  while True:
 
63
  fetch_github_trending()
64
  return {"trending": cached_trending[:num]}
65
 
66
+ app.mount("/mcp", mcp_server.asgi_app)
 
67
  async def trending_generator():
68
  """SSE 事件生成器"""
69
  while True: