Cody MCP server for AI agents

Live

BEARER TOKEN

AI ASSISTANTS

AI

Cody gives your agent access to your Cody account: list your AI bots, send messages to a bot and read its reply, review conversations and messages, and manage the knowledge base folders and documents your bots draw from.

  • Per-user credentials: each call uses the actual user's access token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Cody
agent · Acme Q3
Run
Ask the support bot how long refunds take.
S
cody_message_send
1900ms
Support bot agent
The support bot answered that refunds take 5 to 7 business days, and cited the refund policy document.
Sources: Cody support bot, 1 message
cody
1 reply
18:29
Message Claude...

Tools your AI assistant agent reaches for on Cody, scoped per user.

CALL ANY TOOL
18 tools for AI assistants in Cody: list bots, start conversations and send messages, read message history, and add, import, and organize knowledge base documents and folders.
cody_bots_list
List bots
List the AI bots in the Cody account, optionally filtered by name. Returns each bot's id, name, model and created_at. Use this to find a bot ID for Create Conversation. Bots are created in the Cody dashboard, not through the API.
Parameters
Name
Type
Required
Description
keyword
string
Optional
Only return items whose name at least partially matches this text. Example: support.
cody_conversation_create
Create conversation
cody_conversation_delete
Delete conversation
cody_conversation_get
Get conversation
cody_conversation_update
Update conversation
cody_conversations_list
List conversations
cody_document_create
Create document
cody_document_create_from_webpage
Document create from webpage
cody_document_delete
Delete document
cody_document_get
Get document
cody_documents_list
List documents
cody_folder_create
Create folder
cody_folder_get
Get folder
cody_folder_update
Update folder
cody_folders_list
List folders
cody_message_get
Get message
cody_message_send
Send message
cody_messages_list
List messages
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Cody tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["cody"], toolNames: [
    "cody_bots_list",
    "cody_conversation_create",
    "cody_message_send"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "List my bots, start a conversation with the support bot, and ask it how long refunds take" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["cody"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "List my bots, start a conversation with the support bot, and ask it how long refunds take" }],
  tools,
});

// Execute the tool call with the user's vaulted Cody access token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["cody"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "List my bots, start a conversation with the support bot, and ask it how long refunds take" }],
  tools,
});

// Tool call runs with the user's vaulted Cody access token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["cody"] }, pageSize: 100,
});

const agent = new Agent({
  name: "ai_assistant_agent",
  model: "gemini-2.5-pro",
  instruction: "Cody tools scoped to this user",
  tools,
});

await agent.run("List my bots, start a conversation with the support bot, and ask it how long refunds take");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Cody tool. Click to copy, paste into your agent, done.
Bots and conversations
Copy the prompt
Copied
List the bots in my Cody account.
Copy the prompt
Copied
Start a new conversation with the support bot.
Copy the prompt
Copied
List my recent conversations with this bot.
Ask a bot
Copy the prompt
Copied
Ask the support bot how long refunds take.
Copy the prompt
Copied
Show the messages in this conversation.
Copy the prompt
Copied
Rename this conversation to Refund policy questions.
Knowledge base
Copy the prompt
Copied
List the folders in my Cody knowledge base.
Copy the prompt
Copied
Import this public webpage as a document in the Help folder.
Copy the prompt
Copied
Add this text as a new document in the Policies folder.
SEE HOW AUTH WORKS
Each user connects their own Cody access token once; Scalekit sends it with every call. Tokens stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Cody
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Cody
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Cody
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Cody
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other AI and customer support connectors.
Support and Ops Teams
Support triage agent
Fetches new Zendesk tickets, classifies them by type and urgency, searches the Notion knowledge base for an answer, and routes what it cannot resolve to Slack. Every call runs on the support agent's own delegated OAuth.
Support and Ops Teams
Support ticket automation agent
Fetches new Zendesk tickets, drafts a reply from Notion knowledge base articles, digests what it cannot answer to Slack, and archives the rest, acting as the support agent rather than a shared API key.
Test other agents
See the same per-user auth pattern across other AI and customer support connectors.
SUPPORT
Support triage agent
Classify new Zendesk tickets, search the Notion knowledge base for an answer, and route what it cannot resolve to Slack.
SUPPORT
Support ticket automation (Google ADK)
Fetch, annotate, and archive Zendesk tickets with Notion context, digesting anything it cannot answer to Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Cody access token looks fine in a demo. In production every bot message and document change looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Cody today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Cody as the user or through a shared key?
As the user. Each user connects their own Cody access token once, and Scalekit sends it with every call. Audit logs attribute every message and document change to that user, not a shared service account.
Where is the Cody access token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new access token. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Cody?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the list and get tools plus cody_message_send without cody_conversation_delete or cody_document_delete. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Cody access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent add documents to a bot's knowledge base?
Yes. cody_document_create adds a text or HTML document to a folder, and cody_document_create_from_webpage imports a public webpage as a document. cody_document_delete removes a document, after which bots stop using it.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""cody"": {
""url"": ""https://mcp.scalekit.com/cody"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.cody]
url = ""https://mcp.scalekit.com/cody""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""cody"": {
""url"": ""https://mcp.scalekit.com/cody"",
""type"": ""http""
}
}
}