Prerequisites
- Python 3.10+
- A Caylex Navigator Instance with an API key (create one here)
- Users authenticated with your project’s servers (set up auth links)
Installation
Full example
main.py
Step-by-step
1
Set environment variables
2
Create the MCP server connection
Use
MCPServerStreamableHttp with the Caylex endpoint and authentication headers.3
Run the agent with streaming
Use the
query function with ClaudeAgentOptions to run the agent. The response streams as the agent works through its reasoning and tool calls.Further reading
- Claude Agent SDK MCP documentation
- Connecting Your Agent — details on how the Navigator works
- Server Authentication for user-level vs project-level auth