[Python] Can't connect local FastMCP to copilot

Discussão em 'Python' iniciado por Stack, Junho 4, 2025.

  1. Stack

    Stack Membro Participativo

    Hello I have developed a MCP server in python

    mcp= FastMCP("mymcp", dependecies=["dotenv"],
    stateless_http=True, host="127.0.0.1", port=8000)

    #tools

    if __name__ == "__main__":
    mcp.run(transport="streamable-http")


    Then I've setted the mcp.json for my github copilot

    {
    "servers": {
    "mymcp": {
    "command": "npx",
    "args": [
    "mcp-remote",
    "http://127.0.0.1:8000/mcp"
    ]
    }
    }
    }


    I run my server with: uv run mymcp.py And I can connect trough inspector (mcp dev mymcp.py) (I will deploy my server into a docker on a private cluster, so I want to connect trough http)

    Do you know what is the issue? last week it worked :(

    Continue reading...

Compartilhe esta Página