MCP server
Connect
The server is at https://intellidesk-production-caff.up.railway.app/api/mcp (Streamable HTTP). It uses the same secret keys as the REST API: create one under API keys in the dashboard. The API keys page also shows this setup with your address filled in.
Claude Code
claude mcp add --transport http intellidesk https://intellidesk-production-caff.up.railway.app/api/mcp \
--header "Authorization: Bearer idk_live_…"Cursor, VS Code and other clients that take a JSON config with headers (for Cursor, .cursor/mcp.json; for a Claude Code project, .mcp.json):
{
"mcpServers": {
"intellidesk": {
"type": "http",
"url": "https://intellidesk-production-caff.up.railway.app/api/mcp",
"headers": { "Authorization": "Bearer idk_live_…" }
}
}
}Clients without header support can go through a local bridge such as mcp-remote:
{
"mcpServers": {
"intellidesk": {
"command": "npx",
"args": ["mcp-remote", "https://intellidesk-production-caff.up.railway.app/api/mcp", "--header", "Authorization:${AUTH_HEADER}"],
"env": { "AUTH_HEADER": "Bearer idk_live_…" }
}
}
}Tools
The key's scopes decide which tools the assistant sees. agent_id is optional when the key can use only one agent.
| Tool | Scope | What it does |
|---|---|---|
| list_agents | Scoperead | What it doesThe agents this key can use, with their training status. |
| ask_agent | Scopechat | What it doesAsks the agent a question as a customer would, and returns its answer with sources. Pass conversation_id from an earlier answer to continue. |
| search_knowledge | Scoperead | What it doesThe best passages from the agent's trained knowledge for a query (limit 1 to 10). |
| list_conversations | Scoperead | What it doesRecent conversations, newest first (limit 1 to 50). |
| get_conversation | Scoperead | What it doesOne conversation with its messages. |
| list_leads | Scoperead | What it doesContact details visitors left, with what they asked about (days back, default 30). |
| list_knowledge_gaps | Scoperead | What it doesQuestions the agent couldn't answer, most asked first: material for new Q&A. |
Things to ask your assistant: “Which questions did our agent miss this week? Draft answers for the top five.”, “Summarize today's hot leads.”, “Ask our support agent how it answers a refund request for a damaged item.”
Details
- JSON-RPC 2.0 over
POST; protocol versions2025-06-18,2025-03-26and2024-11-05. - 120 requests a minute per key; over that,
429withRetry-After. - A tool that fails returns a result with
isError: trueand the reason, so the assistant can read it. ask_agentchats appear in Activity like any other, and use message credits the same way.
curl https://intellidesk-production-caff.up.railway.app/api/mcp \
-H "Authorization: Bearer $INTELLIDESK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ask_agent","arguments":{"question":"What is the refund policy?"}}}'