netx/tests/mcp_remote
oliver 92bfad3e34 MCP: fix in-process tool calls and keep caller token in batch calls
- httpx.ASGITransport is async-only; the sync client made every
  tools/call fail with "'ASGITransport' object has no attribute
  '__enter__'". Run the in-process request on the API loop from the
  tool worker thread instead.
- http_json_many fanned out on a plain thread pool without the caller's
  context, so batch requests fell back to the server MCP token file.
  Copy the context per request so RBAC uses the caller's token.
- Real-TCP regression: tools/call getTopologyTree must reach the API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 22:09:28 +08:00
..
topology MCP: serve tools from the API process over Streamable HTTP at /mcp 2026-10-16 21:52:08 +08:00
conftest.py MCP: serve tools from the API process over Streamable HTTP at /mcp 2026-10-16 21:52:08 +08:00
test_cli_safety.py MCP: serve tools from the API process over Streamable HTTP at /mcp 2026-10-16 21:52:08 +08:00
test_mcp_bizmonitor.py MCP: serve tools from the API process over Streamable HTTP at /mcp 2026-10-16 21:52:08 +08:00
test_mcp_endpoint.py MCP: serve tools from the API process over Streamable HTTP at /mcp 2026-10-16 21:52:08 +08:00
test_mcp_http.py MCP: serve tools from the API process over Streamable HTTP at /mcp 2026-10-16 21:52:08 +08:00
test_mcp_tcp_framing.py MCP: fix in-process tool calls and keep caller token in batch calls 2026-10-16 22:09:28 +08:00