Authentication Context
Pass an authentication context when callingtools/call:
Unauthenticated Methods
These methods can be called without authentication:| Method | Description |
|---|---|
initialize | Initialize connection |
ping | Health check |
tools/list | List available tools |
Authenticated Methods
Tool calls viatools/call require authentication:
Agent Authentication
The MCP handler authenticates agents using theauthenticateAgent function:
Error Responses
| Error Code | Message | Description |
|---|---|---|
| -32000 | Authentication required | No auth context provided |
| -32001 | Authentication failed | Invalid API key |
| -32602 | Invalid params | Missing tool name or arguments |