Skip to content

Python project README referencing incorrect cli args #89

@kanzo-io

Description

@kanzo-io

The HTTP mode instructions in the README are deprecated:

➜  my-mcp-python git:(master) ✗ uv run python src/main.py --http
warning: The `tool.uv.dev-dependencies` field (used in `pyproject.toml`) is deprecated and will be removed in a future release; use `dependency-groups.dev` instead
usage: main.py [-h] [--transport {stdio,http}] [--host HOST] [--port PORT]
main.py: error: unrecognized arguments: --http

The correct way to run:

➜  my-mcp-python git:(master) ✗ uv run python src/main.py --transport http 
warning: The `tool.uv.dev-dependencies` field (used in `pyproject.toml`) is deprecated and will be removed in a future release; use `dependency-groups.dev` instead
2025-10-02 22:08:58,354 - INFO - Loaded tool module: echo
2025-10-02 22:08:58,354 - INFO - 📦 Successfully loaded 1 tools
...

NOTE the warning also.

The README:

2. **Run the Server**:
   ```bash
   # Stdio mode (default MCP transport)
   uv run python src/main.py
   
   # HTTP mode with WebSocket MCP endpoint
   uv run python src/main.py --http
   
   # HTTP mode with custom host/port
   uv run python src/main.py --http --host 0.0.0.0 --port 8080

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions