parent
9301924f44
commit
31076ab2d4
1 changed files with 12 additions and 12 deletions
24
README.md
24
README.md
|
|
@ -133,12 +133,12 @@ def get_greeting(name: str) -> str:
|
|||
|
||||
You can install this server in [Claude Desktop](https://claude.ai/download) and interact with it right away by running:
|
||||
```bash
|
||||
mcp install server.py
|
||||
uv run mcp install server.py
|
||||
```
|
||||
|
||||
Alternatively, you can test it with the MCP Inspector:
|
||||
```bash
|
||||
mcp dev server.py
|
||||
uv run mcp dev server.py
|
||||
```
|
||||
|
||||
## What is MCP?
|
||||
|
|
@ -589,13 +589,13 @@ See [TokenVerifier](src/mcp/server/auth/provider.py) for more details on impleme
|
|||
The fastest way to test and debug your server is with the MCP Inspector:
|
||||
|
||||
```bash
|
||||
mcp dev server.py
|
||||
uv run mcp dev server.py
|
||||
|
||||
# Add dependencies
|
||||
mcp dev server.py --with pandas --with numpy
|
||||
uv run mcp dev server.py --with pandas --with numpy
|
||||
|
||||
# Mount local code
|
||||
mcp dev server.py --with-editable .
|
||||
uv run mcp dev server.py --with-editable .
|
||||
```
|
||||
|
||||
### Claude Desktop Integration
|
||||
|
|
@ -603,14 +603,14 @@ mcp dev server.py --with-editable .
|
|||
Once your server is ready, install it in Claude Desktop:
|
||||
|
||||
```bash
|
||||
mcp install server.py
|
||||
uv run mcp install server.py
|
||||
|
||||
# Custom name
|
||||
mcp install server.py --name "My Analytics Server"
|
||||
uv run mcp install server.py --name "My Analytics Server"
|
||||
|
||||
# Environment variables
|
||||
mcp install server.py -v API_KEY=abc123 -v DB_URL=postgres://...
|
||||
mcp install server.py -f .env
|
||||
uv run mcp install server.py -v API_KEY=abc123 -v DB_URL=postgres://...
|
||||
uv run mcp install server.py -f .env
|
||||
```
|
||||
|
||||
### Direct Execution
|
||||
|
|
@ -630,10 +630,10 @@ Run it with:
|
|||
```bash
|
||||
python server.py
|
||||
# or
|
||||
mcp run server.py
|
||||
uv run mcp run server.py
|
||||
```
|
||||
|
||||
Note that `mcp run` or `mcp dev` only supports server using FastMCP and not the low-level server variant.
|
||||
Note that `uv run mcp run` or `uv run mcp dev` only supports server using FastMCP and not the low-level server variant.
|
||||
|
||||
### Streamable HTTP Transport
|
||||
|
||||
|
|
@ -949,7 +949,7 @@ if __name__ == "__main__":
|
|||
asyncio.run(run())
|
||||
```
|
||||
|
||||
Caution: The `mcp run` and `mcp dev` tool doesn't support low-level server.
|
||||
Caution: The `uv run mcp run` and `uv run mcp dev` tool doesn't support low-level server.
|
||||
|
||||
#### Structured Output Support
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue