Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection issues with MCP server #8

Open
RonAutumn opened this issue Dec 16, 2024 · 2 comments
Open

Connection issues with MCP server #8

RonAutumn opened this issue Dec 16, 2024 · 2 comments

Comments

@RonAutumn
Copy link

The MCP server is causing connection issues and needs to be removed or fixed. Users are receiving "Could not connect to MCP server" errors when trying to connect to this server.

@Tuguldur-Tserenbaljir
Copy link

I am having the same problem too. Is it possible to have like a setup demo? So we can follow better.

@Tuguldur-Tserenbaljir
Copy link

I fixed the issue. Here is what I did:
Followed the commands where it is-->

  1. Clone the repository
git clone https://github.com/QuantGeekDev/docker-mcp.git
cd docker-mcp
  1. Create and activate a virtual environment
python -m venv venv
venv\Scripts\activate
uv sync

Where I have added:

  1. Created the @server.read_resource() and @server.list_resources() in server.py
  2. In claude_desktop_config.json :
{
  "mcpServers": {
"docker-mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "C:\\Users\\btuud\\docker-mcp",
        "run",
        "docker-mcp"
      ]
    }
    }
    ```
    
    To debug try to use: 
    npx @modelcontextprotocol/inspector uv --directory <path-to-docker-mcp> run docker-mcp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants