arcade-mcp/libs/arcade-mcp-server/docs/examples/00_hello_world.md
Eric Gustin a11f79b32d
Update arcade-mcp-server docs (#597)
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
2025-10-02 17:16:38 -07:00

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 with app.run()
  • Direct Execution: Run your server file directly with uv run or python
  • Transport Flexibility: Works with both stdio (for Claude Desktop) and HTTP
  • Type Annotations: Use Annotated to provide descriptions for parameters and return values
  • Command Line Args: Pass transport type as command line argument