Skip to content

Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.

docs(elevenlabs-agents): Add MCP server compatibility warning

Jez0acaccc62e87
diff --git a/skills/elevenlabs-agents/README.md b/skills/elevenlabs-agents/README.md
index caa99225..3b778f65 100644
--- a/skills/elevenlabs-agents/README.md
+++ b/skills/elevenlabs-agents/README.md
@@ -82,7 +82,7 @@ This skill should be used when working with:
## Errors Prevented
-This skill prevents 20+ common errors:
+This skill prevents 21+ common errors:
1. **Package deprecation** (@11labs/* → @elevenlabs/*)
2. **Android audio cutoff** (connectionDelay configuration)
@@ -104,6 +104,7 @@ This skill prevents 20+ common errors:
18. **Webhook null message on tool calls** (message: z.string().nullable())
19. **Webhook call_successful is string** ("success" not true)
20. **Webhook undocumented fields** (agent_metadata, llm_usage, etc.)
+21. **MCP server SSE responses don't work** - ElevenLabs says "Streamable HTTP" but expects plain JSON (protocol 2024-11-05), NOT SSE (protocol 2025-03-26). Use raw Hono+JSON-RPC, NOT official MCP SDK.
## Quick Start Examples
diff --git a/skills/elevenlabs-agents/references/tool-examples.md b/skills/elevenlabs-agents/references/tool-examples.md
index d1d21636..1e4fcd4b 100644
--- a/skills/elevenlabs-agents/references/tool-examples.md
+++ b/skills/elevenlabs-agents/references/tool-examples.md
@@ -108,6 +108,95 @@ navigate: {
## MCP Tools
+### Critical: ElevenLabs MCP Server Compatibility
+
+ElevenLabs labels their MCP integration as "Streamable HTTP" but **does NOT support** the actual MCP 2025-03-26 Streamable HTTP spec (SSE responses). Instead, ElevenLabs expects:
+
+- **Plain JSON responses** (`application/json`), NOT SSE (`text/event-stream`)
+- **Protocol version `2024-11-05`**, NOT the newer `2025-03-26`
+- **Simple JSON-RPC over HTTP** with direct JSON responses
+
+**What DOES NOT work:**
+- Official MCP SDK's `createMcpHandler` (returns SSE format)
+- Cloudflare Agents SDK `McpServer.serve()` (returns SSE format)
+- Any server returning `Content-Type: text/event-stream`
+
+**What WORKS:**
+- Raw Hono + JSON-RPC pattern with `c.json()` responses
+- Protocol version `2024-11-05` in initialize response
+- Plain `application/json` Content-Type
+
+### Working MCP Server Pattern for ElevenLabs
+
+```typescript
+import { Hono } from 'hono';
+import { cors } from 'hono/cors';
+
+const tools = [{
+ name: "my_tool",
+ description: "Tool description",
+ inputSchema: {
+ type: "object",
+ properties: {
+ param1: { type: "string", description: "Description" }
+ },
+ required: ["param1"]
+ }
+}];
+
+async function handleMCPRequest(request, env) {
+ const { id, method, params } = request;
+
+ switch (method) {
+ case 'initialize':
+ return {
+ jsonrpc: '2.0', id,
+ result: {
+ protocolVersion: '2024-11-05', // MUST be 2024-11-05, NOT 2025-03-26
+ serverInfo: { name: 'my-mcp-server', version: '1.0.0' },
+ capabilities: { tools: {} }
+ }
+ };
+
+ case 'tools/list':
+ return { jsonrpc: '2.0', id, result: { tools } };
+
+ case 'tools/call':
+ const result = await handleTool(params.name, params.arguments, env);
+ return { jsonrpc: '2.0', id, result };
+
+ default:
+ return { jsonrpc: '2.0', id, error: { code: -32601, message: `Method not found: ${method}` } };
+ }
+}
+
+const app = new Hono();
+
+app.use('/*', cors({ origin: '*', allowMethods: ['GET', 'POST', 'OPTIONS'], allowHeaders: ['Content-Type', 'Authorization'] }));
+
+app.post('/mcp', async (c) => {
+ const body = await c.req.json();
+ const response = await handleMCPRequest(body, c.env);
+ return c.json(response); // Plain JSON, NOT SSE
+});
+
+export default app;
+```
+
+### Connect MCP Server in ElevenLabs
+
+In ElevenLabs agent settings → Tools → Custom MCP Server:
+
+```json
+{
+ "name": "My MCP Server",
+ "server_url": "https://my-mcp.workers.dev/mcp",
+ "transport": "streamable_http"
+}
+```
+
+Note: Despite selecting "Streamable HTTP", ElevenLabs actually sends plain JSON-RPC requests and expects plain JSON responses.
+
### Connect PostgreSQL MCP Server
```json
{