1. Updates docs to prefer `uv run server.py` instead of `arcade mcp` or `python -m arcade_mcp_server` 2. Found a bug with running stdio servers while updating the docs, so i snuck that in this PR
758 B
758 B
00 - Hello World
The simplest possible MCP server with a single tool using arcade-mcp-server.
Running the Example
- Run (HTTP default):
uv run 00_hello_world.py - Run (stdio for Claude Desktop):
uv run 00_hello_world.py stdio
Source Code
--8<-- "docs/examples/00_hello_world.py"
Key Concepts
- Minimal Setup: Create
MCPApp, define tools with@app.tool, and run withapp.run() - Direct Execution: Run your server file directly with
uv runorpython - Transport Flexibility: Works with both stdio (for Claude Desktop) and HTTP
- Type Annotations: Use
Annotatedto provide descriptions for parameters and return values - Command Line Args: Pass transport type as command line argument