Commit 0d01bae
fix(mcp): run internal gateway MCP handlers off the event loop (#27)
POST /api/internal/mcp can invoke sync httpx/IMAP in handle_mcp_request;
await asyncio.to_thread(...) so those calls do not block uvicorn.
Co-authored-by: jubaoliang <jubaoliang@tencent.com>
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 0a5f658 commit 0d01bae
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
0 commit comments