Skip to content

MCP: 405 Method Not Allowed #6

@EskelCz

Description

@EskelCz

When trying to connect to the MCP server on localhost, the connection is refused:
The process logs this:

"POST /mcp/sse HTTP/1.1" 405 Method Not Allowed

I'm using this MCP config for Claude Desktop (tried Claude Code as well, same issue):

  "mcpServers": {
    "seller-agent": {
      "command": "uvicorn",
      "args": ["ad_seller.interfaces.api.main:app", "--port", "8000"],
      "headers": {
        "Authorization": "Bearer ... my API key"
      },
      "env": {
        "ANTHROPIC_API_KEY": "... my Anthropic key"
      }
    }
  }

Am I missing something?

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