Skip to content

VSCode cannot connect? Failing with 405 Method Not Allowed #530

Closed
@SinOverCos

Description

@SinOverCos

Describe the bug

I posted this on VSCode as well: microsoft/vscode#246753

Connecting to an MCP server via VSCode gets me:

2025-04-16 14:13:05.469 [info] 405 status sending message to http://localhost:19193/sse, will attempt to fall back to legacy SSE
2025-04-16 14:13:05.470 [warning] Failed to parse message: "/messages/?session_id=7f7ad4150c504c3bb9b9741f1930403f"
2025-04-16 14:13:10.437 [info] Waiting for server to respond to `initialize` request...
2025-04-16 14:13:15.436 [info] Waiting for server to respond to `initialize` request...
2025-04-16 14:13:20.437 [info] Waiting for server to respond to `initialize` request...
2025-04-16 14:13:25.438 [info] Waiting for server to respond to `initialize` request...
  • on the VSCode side

and

2025-04-16T18:10:59.750322099Z - stdout: INFO:     127.0.0.1:52222 - "POST /sse HTTP/1.1" 405 Method Not Allowed
  • on the MCP server side

To Reproduce

Expected behavior

Screenshots

Desktop (please complete the following information):

  • OS: Ubuntu 24.04

Smartphone (please complete the following information):

Additional context
MCP python-sdk version 1.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions