Commit 46a2622
Olivier Gintrand
fix: use POST ping for StreamableHTTP health check instead of full SDK client
The SDK's streamablehttp_client opens a GET SSE stream after initialize,
which returns 405 Method Not Allowed on servers that don't support
server-initiated messages (e.g. Microsoft 365, Kubernetes MCP, GitHub).
The MCP spec states that GET is optional for StreamableHTTP — only POST
is required.
Replace the full SDK client health check with a lightweight JSON-RPC
POST ping. A successful POST response is sufficient proof that the
gateway server is alive and responding.1 parent c04f65e commit 46a2622
1 file changed
+26
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3673 | 3673 | | |
3674 | 3674 | | |
3675 | 3675 | | |
3676 | | - | |
3677 | | - | |
3678 | | - | |
3679 | | - | |
3680 | | - | |
3681 | | - | |
3682 | | - | |
3683 | | - | |
| 3676 | + | |
| 3677 | + | |
| 3678 | + | |
| 3679 | + | |
| 3680 | + | |
| 3681 | + | |
| 3682 | + | |
| 3683 | + | |
| 3684 | + | |
| 3685 | + | |
| 3686 | + | |
| 3687 | + | |
| 3688 | + | |
| 3689 | + | |
| 3690 | + | |
| 3691 | + | |
| 3692 | + | |
| 3693 | + | |
| 3694 | + | |
| 3695 | + | |
| 3696 | + | |
| 3697 | + | |
| 3698 | + | |
| 3699 | + | |
| 3700 | + | |
| 3701 | + | |
3684 | 3702 | | |
3685 | 3703 | | |
3686 | 3704 | | |
| |||
0 commit comments