#28391 MCP Gateway: tools/list crashes with cancel-scope RuntimeError + schema columns drop on restart
# LiteLLM MCP Gateway — bug report draft
Paste this into a new issue at https://github.com/BerriAI/litellm/issues.
---
## Title
MCP Gateway: `tools/list` crashes with `RuntimeError: Attempted to exit cancel scope in a different task` when consuming a spec-compliant Streamable HTTP server, and schema columns drop on every container restart
## Environment
- **LiteLLM image:** `ghcr.io/berriai/litellm:main-latest` (pulled 2026-05-20) - **Backend MCP server:** Python `mcp==1.16.0`, FastMCP via `streamable_http_app()`, FastAPI mount, bearer auth on `/mcp` - **Backend MCP client used for verification:** Claude Code MCP client — handshake + `tools/list` + `tools/call` all succeed cleanly against the same server
## Bug 1 — `RuntimeError` during tools/list against Streamable HTTP server
LiteLLM's MCP client successfully completes initialize + `notifications/initialized` against a spec-compliant Streamable HTTP server, but the follow-up `tools/list` cancels with the following stack trace in the LiteLLM container logs:
``` RuntimeError: Attempted to exit cancel scope in a different task than it was entered in ERROR:asyncio:an error occurred during closing of asynchronous generator <a…