Skip to main content
This guide shows you how to connect a Claude-powered agent to Caylex using the Claude Agent SDK.

Prerequisites

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