pi-mono/packages/mcp/test
Armin Ronacher da0eadf043 fix(mcp): do not retry cancelled HTTP requests after an authorization refresh
A tool call that was aborted or timed out while waiting for a shared OAuth
refresh was still retried by StreamableHttpTransport once the refresh
finished, so the server executed a call the caller had already given up on.

McpClient now passes a per-request signal to McpTransport.send(), aborted
once the request settles (cancelled, timed out, answered, or closed).
StreamableHttpTransport checks it before each dispatch. The shared refresh
itself is not aborted, so other requests waiting on it still succeed.

fixes #10598
2026-10-12 15:33:20 +02:00
..
fixtures feat(coding-agent): codemode and MCP 2026-09-29 09:12:50 +02:00
client.test.ts fix(mcp,coding-agent): accept any JSON value as tool structuredContent 2026-10-12 14:16:35 +02:00
content.test.ts fix(mcp,coding-agent): accept any JSON value as tool structuredContent 2026-10-12 14:16:35 +02:00
helpers.ts feat(coding-agent): codemode and MCP 2026-09-29 09:12:50 +02:00
oauth.test.ts fix(mcp): reject iss when no authorization server metadata was discovered 2026-10-10 14:44:35 +02:00
stdio.test.ts feat(coding-agent): codemode and MCP 2026-09-29 09:12:50 +02:00
streamable-http.test.ts fix(mcp): do not retry cancelled HTTP requests after an authorization refresh 2026-10-12 15:33:20 +02:00