MCP servers · yours
camelRun by camelAIcamelRun by camelAI · MCP agents
Build and host an MCP agent
Connect remote HTTP MCP tools, talk to each agent over MCP, or manage your tenant at /mcp.camelRun is a hosted runtime for AI agents with three MCP entry points: plug remote HTTP MCP tools into your agents with signed Ed25519 JWTs or headers, talk to any single agent at /v2/agents/:key/mcp, or manage your whole tenant over OAuth 2.1 at /mcp.
claude mcp add --transport http camelrun https://run.camelai.com/mcpMCP clients · yours
1 · Connect remote MCP tools
Connect remote HTTP MCP servers to your AI agent
Register remote HTTP MCP servers on a slug-keyed definition with PUT /v2/definitions/:slug or on an agent directly. camelRun discovers each server's tools as server__tool, makes every outbound call from the runtime, and keeps credentials out of the model prompt.
const headers = {
Authorization: `Bearer ${process.env.CAMELRUN_ API_ KEY}`,
"Content-Type": "application/json",
};
await fetch("https:/ / run.camelai.com/ v2/ definitions/ support", {
method: "PUT", headers,
body: JSON.stringify({
instructions: "You answer support tickets.",
mcpServers: [{ name: "app", url: "https://app.example.com/mcp", auth: { type: "runtime" } }],
}),
});{
"slug": "support",
"config": {
"instructions": "You answer support tickets.",
"mcpServers": [{
"name": "app",
"url": "https://app.example.com/mcp",
"auth": { "type": "runtime" }
}]
},
"updatedAt": 1790000000000
}BM25 tool discovery
Search large MCP catalogs on demand
Enable the codemode built-in so your agent can query connected MCP servers with searchTools() and inspect schemas with describeTool() and describeNamespace(). Large tool catalogs stay out of model context until the agent asks for them.
2 · Talk to one agent via MCP
Turn your AI agent into an MCP server
Every keyed agent on camelRun is an HTTP MCP server at /v2/agents/:key/mcp exposing one tool, message. Add its URL to Claude Code, Cursor, Claude, or any HTTP MCP client that supports OAuth or bearer headers, and everyone shares the agent's durable conversation.
https:/
{ "mcpServers": { "support": { "url": "https:/ / run.camelai.com/ v2/ agents/ support/ mcp" } } }Progress while it works
A call lasts as long as the turn, and the agent sends progress notifications for each tool it uses so clients keep waiting.
Approvals in the client
In clients that support MCP elicitation, an approval or question surfaces inline and the answer resumes the run.
Idempotent retries
Send the same text with the same requestId and camelRun deduplicates the turn and returns its reply.
tools/callmessage {"text": "Escalate anything urgent from today."}
notifications/progressUsing app__list_tickets
notifications/progressUsing kb__search
- progressAsking you: Allow app__escalate_ticket to run?
elicitation/createCursor asksAllow app__escalate_ticket to run?
{"ticket":"T-2207"}DeclineAcceptresult{"action": "accept"}
notifications/progressUsing app__escalate_ticket
resultEscalated T-2207. T-2213 is waiting on the customer.
3 · Manage your tenant via MCP
Deploy AI agents from Claude Code, Codex or Cursor
Connect your coding agent to camelRun's hosted OAuth 2.1 MCP server at https://run.camelai.com/mcp with no API key to paste. Sign in when your client prompts, then create definitions, upsert agents, and run messages straight from your editor.
$ claude mcp add --transport http camelrun https://run.camelai.com/mcp
Added HTTP MCP server camelrun with URL: https://run.camelai.com/mcp to local config
$ claude
> /mcp
Authentication successful. Connected to camelrun.
> use camelrun to build me a support agent that uses our app's MCP server at https://app.example.com/mcp
I'll save the support definition, create the keyed agent, and test it.
camelrun - upsert_definition (MCP)(slug: "support", mcpServers: [{ name: "app", url: "https://app.example.com/mcp", auth: { type: "runtime" } }])
{
"slug": "support",
"updatedAt": 1790000000000
}
… +6 lines (ctrl+o to expand)
camelrun - upsert_agent (MCP)(key: "support", definition: "support")
{
"id": "agt_0ea498d24e76",
"key": "support",
"created": true
… +4 lines (ctrl+o to expand)
camelrun - send_message (MCP)(agent: "support", prompt: "What's open on T-2213?", wait: true)
{
"id": "run_6f1c2e0a",
"status": "completed",
… +3 lines (ctrl+o to expand)
Your support agent is live on camelRun with runtime-authenticated MCP tools. I asked it "What's open on T-2213?" and it replied: "T-2213 is a password reset. It's waiting on the reset steps."
? for shortcuts
FAQ
MCP agent questions
01What is a MCP agent?
An MCP agent is an AI agent that calls tools exposed by remote MCP servers. On camelRun, the runtime discovers each server's tools, keeps the agent's history, and attaches runtime-signed JWTs or HTTP headers without exposing keys to the model. Every keyed agent also serves its own MCP endpoint at
/v2/agents/:key/mcp.02What is the difference between a MCP and an AI agent?
MCP, the Model Context Protocol, is the standard protocol for exposing tools and context to models over JSON-RPC. An AI agent is the durable loop that calls the model, executes tools, waits on human approvals, and finishes the task. MCP connects tools and clients; camelRun hosts the agent.
03Which MCP servers can a camelRun agent connect to?
Any remote MCP server that speaks Streamable HTTP. Configure servers on a slug-keyed definition with
PUT /v2/definitions/:slugor on an agent directly, authenticating with configured HTTPheadersorauth: { type: "runtime" }for short-lived Ed25519-signed JWTs carrying tenant, agent, subject (sub), and end-user actor (act).04Do my MCP server credentials ever reach the model?
No. camelRun makes every outbound MCP call from the runtime, so the model sees tool names like
kb__searchand never receives your headers or keys. To avoid storing static API keys in a definition at all, setauth: { type: "runtime" }and verify camelRun's short-lived Ed25519 JWTs against/v2/.well-known/jwks.json.05Can I use my camelRun agent from Claude, Cursor or Claude Code?
Yes. Talk to a single keyed agent at
https://run.camelai.com/v2/agents/:key/mcpvia itsmessagetool, or connect your coding agent tohttps://run.camelai.com/mcpwith OAuth 2.1 to manage definitions and agents usingupsert_definitionandupsert_agent. Any HTTP MCP client that supports OAuth or bearer headers works.06How is this different from writing my own MCP client?
With a raw MCP SDK you build the model loop, persist conversation state, handle retries, and keep processes alive yourself. camelRun runs the loop, stores each agent's versioned
camelFSworkspace, indexes tools with BM25searchTools()incodemode, and keeps your agents working through your deploys.07How much does an MCP agent cost to run?
$0.05 per active agent-hour while an agent is running. Idle, sleeping, and waiting agents cost $0, and
camelFSand history storage is $0 right now. Active Linux container commands (bash) bill $0.00005/sec ($0.18/hr) with free pre-warming. Model tokens cost $0 from camelRun on your own keys, or pass-through on direct providers.
Build your first MCP agent
Get an API key or connect Claude Code to /mcp, wire up your remote HTTP MCP servers, and message your agent from any supported MCP client.
- MCP servers as tool sources
- Agents as MCP servers
- Connect your coding agent
- camelRun, the runtime for AI agents
- Multi-agent orchestrationUse delegate to hand off a task, or use spawn_agent and wait_agent to run child agents in parallel and collect their results. The parent can park while its children work.
- Code mode for AI agentsRun model-written JavaScript in a QuickJS sandbox that can call tools, including remote MCP tools. Agents can also run bash in a Linux container.
- Claude Managed Agents alternativeKeep your Anthropic SDK and use the Claude Managed Agents API at /anthropic/v1 with a camelRun key. Sessions run as durable keyed agents on Cloudflare.
- Self-hosted AI agentsDeploy the AGPL-3.0 runtime to your own Cloudflare account with Wrangler. Configure Workers, SQLite Durable Objects, R2, and Containers for your account.
- GitHub AI agentUse your own HTTP webhook adapter to route GitHub issues and pull requests to durable camelRun agents. Use the GitHub API to post replies.
- Slack AI agentConnect a Slack app from a prefilled manifest link. Every thread gets a durable AI agent with streaming replies, tools, memory, and Approve/Deny buttons.