MCP Server
Connect an MCP-compatible client to CaesuraO to analyze conversational dynamics and retrieve guidance. Use the API origin, not the web-app or documentation origin.
Server details
- Endpoint:
https://api.caesurao.com/api/mcp - Transport: Streamable HTTP, stateless. Each request uses POST; responses can use SSE framing.
- Protocol version: Negotiated by the MCP client during initialization. The server implementation version
0.1.0is not an MCP protocol version.
The server creates a transport for each request and does not issue an MCP session ID. This avoids depending on an in-memory session shared across Vercel function invocations. A standalone GET or DELETE returns 405 Method Not Allowed; this is expected and does not mean the server is unavailable. The legacy HTTP+SSE transport (SSEClientTransport) is not supported.
Authentication
Send a private API key in the Authorization header on every request. Configured OAuth bearer-token flows are also supported.
Authorization: Bearer YOUR_API_KEY
Create an MCP API key in the Developers Portal. Replace YOUR_API_KEY with the complete issued key; it is a placeholder, not a required prefix. Keep credentials out of browser code and committed configuration files.
Connect an MCP client
Choose Streamable HTTP (sometimes labeled HTTP), and supply the endpoint and Authorization header. Configuration formats and custom-header support vary by client. For clients supporting an mcpServers URL-and-headers configuration:
{
"mcpServers": {
"caesura": {
"url": "https://api.caesurao.com/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
Use the client's secret storage or supported environment substitution where available. Clients that do not support custom headers require a compatible authentication flow; this JSON is not universal across all clients.
Programmatic connection (Node.js)
This example uses the v1 TypeScript SDK package:
npm install @modelcontextprotocol/sdk@^1
export CAESURA_API_KEY="YOUR_API_KEY"
Run the following as an ES module (for example, mcp-client.mjs). It initializes the connection and lists tools without invoking paid analysis:
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
const apiKey = process.env.CAESURA_API_KEY;
if (!apiKey) throw new Error("Set CAESURA_API_KEY before connecting.");
const transport = new StreamableHTTPClientTransport(
new URL("https://api.caesurao.com/api/mcp"),
{
requestInit: {
headers: { Authorization: `Bearer ${apiKey}` },
},
},
);
const client = new Client(
{ name: "my-caesura-client", version: "1.0.0" },
{ capabilities: {} },
);
try {
await client.connect(transport);
const { tools } = await client.listTools();
console.log(tools.map(tool => tool.name));
} finally {
await client.close();
}
The /api/mcp endpoint exposes analyze and get_credits. Read Tools for inputs and outputs. The separate /api/mcp/assistant endpoint exposes its own analyze tool for assistant analysis; do not assume its schema is identical. Use tools/list on the endpoint you connect to.
A 401 response means authentication is missing or was rejected. Check the key and the selected environment. A 405 on GET usually means the client is using the legacy SSE transport instead of Streamable HTTP.