By Mithilesh Gaurihar. Last verified: November 2026.
Ask what an MCP server is and you'll usually get the line from the protocol's own site: "a USB-C port for AI applications." That's a fair description of the plug. It doesn't tell you whether your agent needs one, and that's worth settling before you add another process and another sign-in to an agent that already works.
An MCP server is a program that offers tools, data and prompt templates to AI applications through the Model Context Protocol, an open-source standard. An application such as Claude Code or Cursor connects to it, reads its list of tools, and calls one when the model asks. An agent needs an MCP server when several agents or apps must share the same tools, or when you can't change the app's code. One app calling one API is usually better off with a direct call.
If the job is getting a coding agent like Claude Code or Cursor to build, run and deploy AI agents, not just call one API, a hosted MCP server such as RocketRide's gives it those tools behind one sign-in. The example at the end connects to it; everything before it applies to any server.
What is an MCP server, actually?
The architecture overview names three roles. The host is the AI application, such as Claude Code or VS Code. It opens one client per server. The server is the program on the other end, local or remote. A server can offer tools the model calls, resources the app reads for context, and reusable prompts.
The model never talks to the server
Connect a weather server to Claude Code and its client sends tools/list, which returns each tool's name, description and input schema. The model picks a tool and writes a call, the client sends it as tools/call, and the result goes back into the conversation. The model only ever sees definitions and results, so when a call fails, search the logs for those two method names.
Most agents don't need an MCP server
I'd push back on the idea that every agent should reach its tools over MCP. A server is a separate process with its own protocol and auth, and that pays off only when the tool gets reused or you can't change the app.
| You want to... | MCP server? | Why |
|---|---|---|
| Let Claude Code, Cursor and your own agent query the same internal database | Yes, build one | One tool definition, three clients |
| Give Claude Desktop or ChatGPT access to your ticket system | Yes | You can't add code to those apps; a server is the way in |
| Use GitHub, Linear or Stripe from a coding agent | Use the vendor's hosted server | They maintain it; you sign in |
| Have your own app call one API to fetch an order | No, write a function | One client, debuggable in your own code |
| Run a nightly job with the same steps every time | No | Nothing for a model to decide |
| Let a coding agent build, run and deploy agents | Yes, a hosted runtime server like RocketRide's (below) | It needs somewhere to run what it builds |
GitHub, Linear and Stripe each host one you add by URL and sign in to.
Before you build a server, ask four questions:
- How many apps or agents will call this tool in the next month? Two or more: build a server. One: write a function.
- Do you control the code of the app that needs it? If not, you need a server. If you do, a function is simpler.
- Does a vendor already host a server for it? If so, connect theirs. If not, build one.
- Does a model need to decide when to call it? If so, it's a tool. If the step is fixed, call it from code and leave MCP out.
Local servers read a key; remote servers sign you in
MCP has two transports. A local server runs over stdio, as a child process the host starts. The authorization spec says stdio servers should read credentials from the environment.
A remote server uses Streamable HTTP, and one server can serve many clients. It can accept API keys, but OAuth is the recommended route. When we called RocketRide's server without a token, it answered with a 401 that pointed to its sign-in details; Claude Code follows that to a browser login and retries with the token. Claude Code's MCP docs mark the older SSE transport as deprecated, so when a setup guide offers both, pick HTTP.
What breaks after you connect one?
Context goes first. Every tool definition takes up space, and the MCP client best practices warn that loading them all upfront wastes tokens, adds latency and makes the model worse at picking the right one. This is MCP's real weakness, and our own server, with a few dozen tools, is a fair example. Claude Code's tool search, on by default, loads definitions as a task needs them. Still, connect only the servers the current task needs.
Vague descriptions come next. The model picks a tool from its name and description alone, and the protocol's own example prefers calculator_arithmetic over calculate. If you write a server, say what each tool does, when to use it and what each argument means.
Then auth. Whoever holds a server's token can do everything its tools allow. Use OAuth where the client supports it, keep keys out of config files you commit, and never put a token in a URL query string, which the authorization spec forbids.
Triage a checkout alert before you're fully awake
When checkout-api starts throwing 5xx errors at 2 a.m., the on-call engineer loses ten minutes finding out what shipped and where the runbook is.
I had Claude Code build an agent for those ten minutes. An alert webhook passes it the alert, it reads recent commits and the runbook from GitHub with read-only access, and it posts four lines to Slack. Runbooks live in the repo, so there's no vector store. The agent reads and reports; the rollback stays with the person on call.
RocketRide is an AI meta-harness with an enterprise-grade runtime built on C++, for companies and pro-builders building durable AI at production scale. Claude Code used its hosted MCP server to build and test the agent below, and I deployed it with the RocketRide CLI.
My test repo is private, so point the agent at your own. It needs a service folder, a few commits and a runbook like this one at runbooks/checkout-api.md:
## 5xx spike on /checkout 1. Check the last deploy to `services/checkout-api`. Most 5xx spikes follow a config change to `payment_client`. 2. If `payment_client.timeout_ms` dropped below 2000, roll back that commit: payment calls take 800 to 1500 ms at peak. 3. If no recent change, check the payment provider status page and page the payments on-call. Save a fake alert as samples/alert-5xx.json:
{ "service": "checkout-api", "alert": "5xx error rate above 5% on POST /checkout", "error_rate": 0.18, "started_at": "2026-11-30T02:14:00Z", "slack_channel": "incidents-test" } 1. Connect Claude Code to RocketRide
The RocketRide connect guide gives one command:
claude mcp add --transport http rocketride https://api.rocketride.ai/mcp Claude Code saved it as waiting for a login:
$ claude mcp get rocketride rocketride: Scope: Local config (private to you in this project) Status: ! Needs authentication Type: http URL: https://api.rocketride.ai/mcp Run /mcp, pick rocketride and log in in the browser. Claude Code answered "Authentication successful. Connected to rocketride." and loaded four of the server's 32 tools right away: list_components, describe_component, validate_pipeline and run_pipeline.
2. Set three variables
In your RocketRide environment variables, add these three:
- ROCKETRIDE_ANTHROPIC_KEY: your Anthropic API key
- ROCKETRIDE_GITHUB_TOKEN: a GitHub token with read access to your repo
- ROCKETRIDE_SLACK_WEBHOOK_URL: a Slack incoming-webhook URL for a test channel
Add them to any team you deploy to as well. The agent file holds only their names. Then run rocketride login. It saves your RocketRide API key as $ROCKETRIDE_APIKEY, which the curl calls below use.
3. Ask Claude Code to build the agent
I gave Claude Code this prompt:
Build a RocketRide agent for on-call alert triage and save it as oncall-triage.pipe. - A webhook receives an alert as JSON with service, alert and started_at. - An agent on Anthropic Haiku (claude-haiku-4-5, the newest Haiku in RocketRide's Anthropic node) reads the GitHub repo <your-org>/<your-repo>, read-only: runbooks/<service>.md and recent commits and releases under services/<service>. - It posts four lines to Slack through the Slack node's incoming-webhook URL: what broke, the suspect change, the runbook's first step, and a link to the commit. It replies with the same four lines and nothing else. - Credentials come from my RocketRide variables: ${ROCKETRIDE_ANTHROPIC_KEY}, ${ROCKETRIDE_GITHUB_TOKEN} and ${ROCKETRIDE_SLACK_WEBHOOK_URL}. Validate it with RocketRide before you finish. Claude Code looked up each component with describe_component, wrote the file and validated it. Here's the file, trimmed to what matters. Change defaultRepo to your repo.
{ "project_id": "oncall-triage", "name": "oncall-triage", "components": [ { "id": "alert", "provider": "webhook", "config": { "type": "webhook", "mode": "Source" } }, { "id": "question", "provider": "question", "config": { "type": "question" }, "input": [{ "lane": "text", "from": "alert" }] }, { "id": "memory", "provider": "memory_internal", "config": { "type": "memory_internal" }, "control": [{ "classType": "memory", "from": "agent" }] }, { "id": "llm", "provider": "llm_anthropic", "config": { "profile": "claude-haiku-4-5", "claude-haiku-4-5": { "apikey": "${ROCKETRIDE_ANTHROPIC_KEY}", "extendedThinking": false } }, "control": [{ "classType": "llm", "from": "agent" }] }, { "id": "github", "provider": "tool_github", "config": { "type": "tool_github", "authType": "pat", "token": "${ROCKETRIDE_GITHUB_TOKEN}", "readOnly": true, "defaultRepo": "your-org/your-repo", "tools": ["commit_list", "commit_get", "release_list", "file_get"] }, "control": [{ "classType": "tool", "from": "agent" }] }, { "id": "slack", "provider": "tool_slack", "config": { "type": "tool_slack", "webhookUrl": "${ROCKETRIDE_SLACK_WEBHOOK_URL}" }, "control": [{ "classType": "tool", "from": "agent" }] }, { "id": "agent", "provider": "agent_rocketride", "config": { "type": "agent_rocketride", "agent_description": "Triages a service alert from GitHub and posts a summary to Slack.", "instructions": [ "The question is an alert as JSON: service, alert, started_at.", "Call file_get for runbooks/<service>.md, then commit_list and release_list for services/<service> from the 48 hours before started_at, then commit_get on the most likely cause.", "Post four lines with the Slack tool: What broke: ... / Suspect change: ... / Runbook first step: ... / Commit: <link>.", "Your final reply must be exactly these four lines and nothing else: What broke: ... / Suspect change: ... / Runbook first step: ... / Commit: <link>. No headings, no bold, no analysis or extra paragraphs." ], "max_waves": 6, "require_tool_call": true }, "input": [{ "lane": "questions", "from": "question" }] }, { "id": "answers", "provider": "response_answers", "config": { "type": "response_answers" }, "input": [{ "lane": "answers", "from": "agent" }] } ] } 4. Test it
Start the agent. The CLI prints a task token for the run, and the curl sends the alert with it:
TASK_TOKEN=$(rocketride start --pipeline oncall-triage.pipe --json | jq -r .token) curl -X POST "https://api.rocketride.ai/webhook/oncall-triage/alert" \ -H "Authorization: Bearer $TASK_TOKEN" \ -H "Content-Type: text/plain" \ --data-binary @samples/alert-5xx.json The same four lines land in Slack and come back in the response:
What broke: 5xx error rate jumped to 18% on POST /checkout Suspect change: timeout_ms lowered from 3000 to 500ms (violates runbook guidance of staying above 2000ms) Runbook first step: Check the last deploy to services/checkout-api. Most 5xx spikes follow a config change to payment_client. Commit: https://github.com/<your-org>/<your-repo>/commit/658d907c... 5. Deploy it
I deployed to a team called Development. Three commands store a version, publish it and start the webhook:
rocketride deploy add oncall-triage.pipe --deploy-to Development rocketride deploy publish oncall-triage <version> --team Development rocketride deploy run oncall-triage alert --team Development Deployed pipe version v4. Deploying activates nothing - publish a rung to serve it. Published ... v4 to Development. Use the version number that add prints (mine was v4). Then look up the team's ID and send the same alert to the deployed URL:
TEAM_ID=$(rocketride deploy get oncall-triage --team Development --json | jq -r .deployment.teamId) curl -X POST "https://api.rocketride.ai/webhook/oncall-triage/alert?teamId=$TEAM_ID" \ -H "Authorization: Bearer $ROCKETRIDE_APIKEY" \ -H "Content-Type: text/plain" \ --data-binary @samples/alert-5xx.json The same four lines come back. To wire up the real system, put that URL in your alerting tool's webhook settings.
6. Read the log when an answer looks wrong
When the agent blames the wrong commit, ask Claude Code which tools it called:
The deployed oncall-triage agent (source alert) on my Development team (team id $TEAM_ID) just answered an alert. Read that run's log with the log tools and list, in order, every tool the agent called and what each returned in one short line. Don't start or stop anything. Here's what came back for my run:
1. github.file_get 2. github.commit_list 3. github.release_list 4. github.commit_get 5. slack.message_post Run time: about 15 s. file_get came first, which is the runbook read, so the agent checked the runbook before it looked at commits.
You know it worked when four lines land in your test Slack channel and the Commit line links to the change that broke checkout.
Notice what the running agent doesn't use: MCP. It reaches GitHub and Slack through its own nodes, and MCP only connected Claude Code to RocketRide while I built and tested it. That's the table above in practice: one client that needed many tools got a server, and the agent itself didn't need one.
Next: wire it to one real alert
Point your alerting tool's webhook at the deployed URL for one service first, and add a runbook for it in the same format. When the four lines match what you'd have found by hand, add the next service and its runbook. The agent file doesn't change; only the repo grows.
If you're still deciding whether your own tool needs an MCP server at all, go back to the four questions above. A no there is a fine answer.


