-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
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
Labels
No labels