| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| common | ||
| core | ||
| support | ||
| test | ||
| thirdProvider | ||
| type | ||
| types | ||
| worker | ||
| env.ts | ||
| global.d.ts | ||
| package.json | ||
| tsconfig.json | ||
| vitest.benchmark.config.ts | ||
| vitest.config.ts | ||
| vitest.integration.config.ts |
* fix(mcp): only fall back to legacy SSE transport on a 4xx Streamable HTTP error The MCP client caught any Streamable HTTP connection error and immediately retried with the legacy HTTP+SSE transport. For a Streamable-HTTP-only server, a failure unrelated to protocol support (network error, 5xx, or an error after a successful initialize) was masked by a misleading SSE error such as "Non-200 status code (405)", hiding the real root cause. Follow the MCP spec's backwards-compatibility flow: fall back to SSE only when the server rejects the Streamable HTTP request with a 4xx (e.g. 404/405), which signals it does not speak Streamable HTTP. Other errors now surface as-is, and when the SSE fallback also fails both errors are reported. * test(mcp): cover conditional SSE fallback behavior Update the fallback test to use a 4xx StreamableHTTPError and add cases for: non-HTTP errors and 5xx not triggering fallback, and both errors being surfaced when the SSE fallback also fails. * perf: code * perf: code --------- Co-authored-by: archer <545436317@qq.com>
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| common | Loading commit data... | |
| core | Loading commit data... | |
| support | Loading commit data... | |
| test | Loading commit data... | |
| thirdProvider | Loading commit data... | |
| type | Loading commit data... | |
| types | Loading commit data... | |
| worker | Loading commit data... | |
| env.ts | Loading commit data... | |
| global.d.ts | Loading commit data... | |
| package.json | Loading commit data... | |
| tsconfig.json | Loading commit data... | |
| vitest.benchmark.config.ts | Loading commit data... | |
| vitest.config.ts | Loading commit data... | |
| vitest.integration.config.ts | Loading commit data... |