Skip to content

config not auto generating correctly #4

@scheung38

Description

@scheung38
mcp run main.py 

works with provided example:

{
  "mcpServers": {
    "docs": {
      "command": "<USERNAME>/.local/bin/uv",
      "args": [
        "--directory",
        "<USERNAME>/Desktop/mcp-server-example",
        "run",
        "main.py"
      ]
    }
  }
}

But next time

mcp install main.py 

overwrites it with:

{
  "mcpServers": {
    "docs": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "<USERNAME>/Desktop/mcp-server-example/main.py"
      ]
    }
  }
}

even modifying it to full path for some reason still fails:

{
  "mcpServers": {
    "docs": {
      "command": "<USERNAME>/.local/bin/uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "<USERNAME>/Desktop/mcp-server-example/main.py"
      ]
    }
  }
}

?

When running with success, how do we know it is working? Say if we know to know more about a different subject say Django, how different is it with or without the mcp?

Are there any difference between mcp run vs uv run? Or better still, how to autogen to provide the correct syntax as provided in the example?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions