Install
Create a server
http://127.0.0.1:8000/mcp.
Test with a client
How registration works
Decorators attach metadata.collect() registers them. This separation matters:
Context
Inside a tool, access logging and progress:Transports
HTTP (default):Authentication
Bearer token:Production checklist
- Configure
TransportSecuritySettingsfor allowed hosts - Add authorization via
AuthorizationConfig - Test with real clients (Claude Desktop, Cursor)
- Enable
allow_dynamic_tools=Trueif adding tools at runtime