On Friday, some buyers got no confirmation email. Nina asked the team’s small agent why, and it read the worker code and blamed a timeout. The dead jobs in the queue said “421 too many connections”, and Omar wanted Claude Code to read that queue too.
“Do you have to teach every robot separately?” Leo asked.
Maya, Leo and TinyTickets are invented, and so are the numbers in their story.
In Module 4 you built agent.ts, and every one of its tools is code inside that one file. This module moves a tool out of the agent and into a small program of its own that any agent can start and call. That program speaks MCP, the protocol that Claude Code, Cursor, VS Code and Codex use for this job. So the tool you write once works in all of them.
After this module, you can:
- explain why tools written into each agent don’t scale, and what an MCP host, client and server each do
- read an MCP exchange on the wire and say what the 2026-07-28 revision of the protocol changed
- write an MCP server with one tool in TypeScript, and connect it to
agent.tsand to Claude Code - choose between a tool inside the agent, an MCP server, and a command-line tool with a Markdown doc, and say what each costs
- make your own software easier for agents to use, with Markdown docs, a command-line tool and
llms.txt
An agent that can’t see the job queue
Start from the finished agent.ts of Module 4. It has four tools: list_files, read_file, edit_file and run_command. Suppose you run it in the TinyTickets app and ask Nina’s question:
you: How many confirmation emails failed in Friday's sale, and why?
The failed jobs aren’t in a file. In TinyTickets, the job queue is a table in PostgreSQL, and a job that ran out of attempts keeps its last_error there.
Pause and predict. What will agent.ts do with this question?
Answer
None of its four tools reads a database table. So it lists the files, reads the worker code, and answers with a likely cause, such as a timeout. That’s a guess from the code, not a fact about Friday.
It may also ask to run a command such as psql -c "SELECT ...". That works only if psql is installed, the database is reachable from your shell, and you say yes at the approval prompt. Keep this route in mind, because this module comes back to it.
If you run agent.ts on this question, compare its answer with the one above. Your run will differ, because each answer is sampled (Module 2).
The fix inside agent.ts is easy. You write a fifth Tool object, listFailedJobs, whose run function queries the table, and you add it to TOOLS. The loop doesn’t change, and Nina gets real answers.
Now Omar wants the same tool in Claude Code. Your Tool object is a value inside the agent.ts process, so Claude Code can’t call it. Claude Code has its own tool list and its own way to add tools, so Omar writes the tool again.
A third agent means a third copy, and every new tool means one more copy per agent. Figure 1 counts them.
Before: every agent needs its own copy of every tool
jobs queue database Git
[agent.ts] copy 1 copy 2 copy 3
[Claude Code] copy 4 copy 5 copy 6
[Cursor] copy 7 copy 8 copy 9 3 x 3 = 9
After: each agent learns one protocol, and each tool is written once
[agent.ts] client --+ +-- [jobs-server]
[Claude Code] client --+---- MCP ------+-- [database server]
[Cursor] client --+ +-- [Git server] 3 + 3 = 6
Legend: [name] a program
Figure 1: without a shared protocol, the work grows as agents times tools; with one, it grows as agents plus tools.
The arithmetic is this course’s own, but the idea is older. Code editors had the same problem with programming languages, because autocomplete for each language had to be written again for each editor. The Language Server Protocol fixed that, because one language server works in every editor that speaks the protocol (LSP overview).
So this module answers one question. Once one agent has a tool, how do you give that tool to every agent without rewriting it, and how do you make your own software easy for agents to use?
MCP: one protocol between agents and tools
The Model Context Protocol (MCP) is an open protocol that lets an AI application find and call tools that another program offers. Anthropic published it on November 25, 2024, and said each new data source “requires its own custom implementation” before it (launch post). The specification says it takes “some inspiration from the Language Server Protocol”.
MCP splits the work between three roles:
- Host. A host is the AI application the person uses, such as
agent.ts, Claude Code or Cursor. It holds the conversation, calls the model and decides which tool calls run. - Client. An MCP client is the part of a host that talks to one MCP server. A host has one client for each server it uses.
- Server. An MCP server is a program that offers tools, and other things this module covers later, to any MCP client. It can run on your machine or on another one.
In this module’s lab, agent.ts is the host. It holds one Client object for the job server, and jobs-server.ts is the server.
The architecture page (checked 2026-11-22) adds one design rule that matters for safety. A server should not be able to read the whole conversation, or see into other servers. The conversation stays with the host, and a server sees only the requests sent to it.
Does the model speak MCP? No. It still reads tool definitions and writes tool_use blocks, as in Module 4. The host asks each server for its tools, adds them to the request’s tools, and turns each tool_use for one of them into an MCP request.
The MCP docs compare the protocol to a USB-C port for AI applications (introduction). The literal fact behind it is that one fixed message format lets any host call any server, as one plug fits many devices.
What changed recently is who runs it. On December 9, 2025, Anthropic gave MCP to the Agentic AI Foundation, a fund under the Linux Foundation that Anthropic, Block and OpenAI co-founded (Anthropic’s post). The protocol’s maintainers still decide its technical direction.
Rule: The host keeps the conversation and the model; each server only answers the calls a client sends it.
What an MCP exchange looks like on the wire
MCP messages are JSON, in the shape of an older standard. JSON-RPC 2.0 is a small standard for asking another program to run a method.
A request has jsonrpc, an id, a method and params. The answer carries the same id and either a result or an error. A message without an id is a notification and gets no answer.
A host needs three methods to use a server’s tools:
server/discover, to learn what the server supports.tools/list, to get the tool definitions.tools/call, to run one tool with arguments.
server/discover is the method a server must answer with three things: the protocol versions it supports, its capabilities, and its name. Its capabilities are the features it offers, such as tools or resources. A client may call it first, before anything else.
Here is a tools/call request for the lab’s tool, as the client sends it (pretty-printed; on the wire it’s one line). The shape comes from the spec’s example files, with this module’s names in it:
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientInfo": { "name": "agent.ts", "version": "1.0.0" },
"io.modelcontextprotocol/clientCapabilities": {}
},
"name": "list_failed_jobs",
"arguments": { "limit": 3 }
}
}
And here is the shape of the answer, with the text shortened:
{
"jsonrpc": "2.0",
"id": 3,
"result": {
"resultType": "complete",
"content": [{ "type": "text", "text": "{\"total\":400,\"by_error\":{...},\"jobs\":[...]}" }],
"isError": false
}
}
Notice three things. The tool’s name and arguments sit in params, beside a _meta object. _meta carries the protocol version, who the client is, and what it supports, on this request and on every other one. And the result says resultType: "complete", which every result carries since the 2026-07-28 revision.
A tools/list result holds the same three parts as a Module 4 tool definition. Figure 2 maps each MCP field onto the Claude Messages API, which is what agent.ts does in code.
| MCP (server side) | Claude Messages API (Module 4) |
|---|---|
name, description, inputSchema in tools/list |
name, description, input_schema in tools |
params.arguments in tools/call |
input in a tool_use block |
content[].text in the result |
content in a tool_result block |
isError: true in the result |
is_error: true in the tool_result |
the JSON-RPC id |
tool_use_id (a different id; the host keeps both) |
Figure 2: MCP and the Messages API carry the same parts under different names, and the host translates between them.
Two kinds of error
A call can fail in two places, and MCP answers each one differently (tools page):
- Protocol error. The request itself is wrong, such as an unknown tool name. The answer is a JSON-RPC
errorwith code-32602, and noresult. - Tool error. The tool ran and failed, such as a missing file. The answer is a normal
resultwithisError: trueand text that explains it. The spec says clients should give these to the model so it can correct itself.
The SDK this module uses checks the arguments against the tool’s schema before your code runs. A wrong argument comes back as a tool error, with text that starts Input validation error: Invalid arguments for tool (SDK client guide). In agent.ts, both kinds end the same way, as a tool_result with is_error: true.
Pause and predict. The conversation in agent.ts holds the buyer’s question, three file reads and your earlier tasks. What does jobs-server see of it when the model calls list_failed_jobs?
Answer
Only the tools/call request: the tool’s name, the arguments and _meta. The host keeps the conversation, and the architecture page says servers should not be able to read it. That limit protects you, and it also means a server can’t use earlier messages to understand a call. Everything it needs must be in the arguments.
How the client reaches the server
A transport is the channel that carries MCP messages between a client and a server. The spec defines two, and “protocol semantics are identical on every transport” (transports).
stdio is the transport in which the host starts the server as a child process and they talk through the server’s standard input and output. Each message is one line of JSON. The server must not write anything else to stdout, and it may write logs to stderr. The host stops the server by closing its stdin.
Streamable HTTP is the transport in which the server listens at one URL, such as https://example.com/mcp, and every client message is a new HTTP POST. The server answers with JSON, or with a stream of messages for a long answer.
Such a server must check the Origin header of each request. One that runs locally should listen only on 127.0.0.1.
The choice flips on who owns the server:
- stdio when the host runs the server on the same machine and starts and stops it, as in this lab and for most local developer tools.
- Streamable HTTP when one server serves many people or machines, needs each user to sign in, or runs behind a load balancer.
Sign-in follows the transport too. A stdio server reads its credentials, such as a database password, from its environment. An HTTP server uses OAuth 2.1, the standard flow in which a user signs in and the app receives a token for them. The spec’s authorization page forbids passing a user’s token on to other services.
What changed recently is the HTTP side. Streamable HTTP replaced an older HTTP transport in the 2025-03-26 revision. The 2026-07-28 revision removed its session header, as the next section explains.
The stateless revision of 2026-07-28
The current MCP specification is version 2026-07-28, released on July 28, 2026, and the newest on 2026-11-22 (changelog). Its big change is that MCP is now stateless, in the sense of Module 2. Every request carries everything the server needs to answer it.
Before it, a connection started with a handshake. The client sent initialize, the server answered with its version and capabilities, and the server remembered them for the rest of the session. Figure 3 puts the two revisions side by side.
2025-11-25 and earlier 2026-07-28
client server client server
|-- initialize ---->| |-- server/discover ->| optional
|<- version, caps --| |<- versions, caps ---|
|-- initialized --->| |-- tools/list ------>|
| | remembers | + version, caps |
|-- tools/list ---->| the session |-- tools/call ------>|
|-- tools/call ---->| | + version, caps |
Figure 3: the old revision agrees on the version once per session; the new one sends it with every request, so no request depends on an earlier one.
The changes that matter for this module:
- No handshake.
initializeis gone. Every request carries the protocol version and the client’s capabilities in_meta. server/discover. Servers must answer it, so a client can ask what they support before anything else.- No sessions. The
Mcp-Session-IdHTTP header is gone. A tool that needs state across calls returns an id, such as a cart id, and the model passes it back as an ordinary argument. resultTypeon every result. It is"complete", or"input_required"when the server needs an answer from the user first.
The reason was running servers at scale. The proposal behind it, SEP-2575, says “this inherent statefulness makes it difficult to run MCP at scale”. With sessions, a load balancer had to send every request of a client to the one server instance that held its session. Without them, any instance can answer any request.
Old and new clients and servers
The spec calls a 2026-07-28 client or server modern, and one that uses initialize legacy (versioning). A modern-only client can’t talk to a legacy-only server, and the reverse fails too. Code that supports both eras works with either.
If a client asks for a version the server doesn’t support, the server answers with an error that lists what it does support. Here is the spec’s own example:
{"jsonrpc":"2.0","id":1,"error":{"code":-32022,"message":"Unsupported protocol version","data":{"supported":["2026-07-28","2025-11-25"],"requested":"1900-01-01"}}}
The SDK packages for this revision
Most MCP tutorials on the web import @modelcontextprotocol/sdk. That is version 1 of the official TypeScript SDK, and its README says it implements the spec only up to 2025-11-25 (1.32.2, checked 2026-11-22). The 2026-07-28 revision is in version 2, which ships as two packages:
@modelcontextprotocol/server2.4.0, for servers.@modelcontextprotocol/client2.4.0, for clients.
Both were released on October 23, 2026 (TypeScript SDK). They need Node.js 20 or later, and they accept tool schemas written with Zod 4.
One default can surprise you. The v2 client speaks the old handshake unless you tell it otherwise (protocol versions). Its versionNegotiation option has three modes:
legacy, the default. It runs the 2025 handshake, with no_metaenvelope.auto. It asksserver/discoverfirst and falls back to the handshake if the server is old.- A pin to
2026-07-28. It uses the new revision or fails withERA_NEGOTIATION_FAILED.
agent.ts pins the version, so you see the stateless revision at work, and an old server fails loudly. For servers you didn’t write, auto is friendlier. Both cost one extra start of the server on stdio, because the client asks server/discover from a short-lived copy first.
Rule: Under 2026-07-28, every MCP request stands alone, so a server keeps no memory of a client between calls.
Tools, resources and prompts
A server can offer three kinds of things, and the difference between them is who decides to use each one. Figure 4 lists them, from the server overview (checked 2026-11-22).
| Kind | Who decides to use it | Example | In Claude Code |
|---|---|---|---|
| Tool | the model | list_failed_jobs, an API call, a file write |
called like any tool |
| Resource | the host or the user | a file’s contents, a guide to the job queue | an @ mention |
| Prompt | the user | a saved instruction, run as a slash command | a / command |
Figure 4: tools are chosen by the model, resources by the application, and prompts by the person.
A resource is data a server offers under a URI, such as tinytickets://jobs/guide, for the host to read and put in the context window. The host decides when, for example when you pick it from a list. In Claude Code you mention it as @jobs:tinytickets://jobs/guide (Claude Code MCP docs).
A prompt, in MCP, is a saved message template that a server offers for the user to run. Claude Code shows each one as a command, such as /mcp__jobs__triage.
So the choice between a tool and a resource is a choice about who should decide. If the model must choose when to fetch the data, as with failed jobs during a bug hunt, make it a tool. If a person should choose what to attach, make it a resource. Many hosts support only tools, and agent.ts is one of them.
A tool can also carry annotations, which are hints about how it behaves. readOnlyHint: true says the tool changes nothing, and Claude Code then runs such calls in parallel with other read-only calls. The spec says clients must treat annotations as untrusted unless the server is trusted, because a server can write anything there.
What changed recently is on the client side. The 2026-07-28 revision deprecated three features in which the server asked the client for something: Roots, Sampling and Logging (deprecated features). The proposal gave low adoption, overlap with other features, and the work they cost implementers as the reasons. Elicitation, in which a server asks the user a question, stays.
What MCP costs, and when a command-line tool is enough
Every MCP tool you connect costs something, even when the model never calls it. There are three costs, and one cheaper alternative.
Tool definitions fill the context window
The host sends every tool definition on every request, as Module 4 showed. Connect a few large servers, and the definitions take a large part of the window before you type anything. Figure 5 shows where they sit.
Context window of step 1 in agent.ts, with one MCP server
+-------------------------------------------------------------+
| system prompt built by the API |
| tool definitions: list_files, read_file, edit_file, |
| run_command |
| tool definition: jobs__list_failed_jobs <- from MCP |
| your system prompt |
|-------------------------------------------------------------|
| message 1 user: How many jobs failed, and why? |
+-------------------------------------------------------------+
Figure 5: an MCP tool’s definition is text in the context window, billed on every call, like the tools written into agent.ts.
One server with one tool costs little. Anthropic measured five servers, among them GitHub’s and Slack’s, with 58 tools in all. Their definitions took about 55,000 tokens before the conversation started (Introducing advanced tool use, November 24, 2025, Anthropic’s own measurement). The same post says the most common failures are picking the wrong tool and passing wrong parameters, most of all when tools have similar names.
Hosts now defer most of this. Claude Code loads only tool names at the start, and a tool’s full definition when the model needs it. This tool search is on by default (Claude Code MCP docs, checked 2026-11-22). The spec also asks servers to return tools/list in a fixed order, so the prompt caching of Module 3 keeps working.
Tool output fills it too
A tool’s result goes into the context window, and into every later request of the task. A tool that returns 400 rows makes the model read 400 rows, and count them, which Module 2 showed models do badly. The lab makes this mistake on purpose and then fixes it. Claude Code warns when one MCP tool’s output passes 10,000 tokens, and it cuts output at 25,000 tokens by default (Claude Code MCP docs).
Every server is code you run
A stdio server runs on your machine with your user’s rights. The spec says that tools are arbitrary code execution, and that a host must get the user’s consent before it calls one (specification).
A server’s tool descriptions also reach the model. In April 2025, Invariant Labs described tool poisoning (Invariant Labs, April 1, 2025). In their example, a tool’s description tells the model to read a private key and pass it along as an argument. The user never sees that text, and the model reads all of it.
A real failure followed in May 2025 (Invariant Labs, May 26, 2025). An agent with the GitHub MCP server read a malicious issue in a public repository. Following its text, the agent leaked data from a private repository into a public pull request. The researchers said this was not a flaw in the server’s code.
You would catch it by reading each tool call before you approve it, and by giving the server a token for one repository only. Module 9 covers this family of attacks.
The alternative: a command-line tool and a Markdown doc
A coding agent with a shell can already run commands. If a good command-line tool exists, the agent can run it through run_command, and a short Markdown file can tell it how. Several developers argue for this route:
- Armin Ronacher found the
ghcommand-line tool used context more efficiently than the GitHub MCP server for his task (Tools: Code Is All You Need, July 3, 2025). - Mario Zechner measured the Playwright MCP server at 13,700 tokens for its 21 tools. He replaced a browser server with a few scripts and a README of 225 tokens (What if you don’t need MCP at all?, November 2, 2025).
- Simon Willison wrote that GitHub’s MCP server alone uses tens of thousands of tokens of context, and that a CLI can do most of what an MCP server does (Claude Skills are awesome, October 16, 2025).
- Eric Holmes pointed out that commands compose with pipes and reuse the login a person already has. He also wrote, “If a tool genuinely has no CLI equivalent, MCP might be the right call” (MCP is dead. Long live the CLI, February 28, 2026).
One measurement compares the two. Arize AI ran 25 GitHub tasks, five times each, with Claude Opus 4.6 and the Claude Agent SDK (MCP vs. CLI Skills for agents, May 2026). Correctness was close, with 0.834 for the official GitHub MCP server and 0.845 for a bare shell.
On the hardest tasks, the MCP route cost more than six times as much. That study has limits it states itself. It tested one MCP server, one model and one domain, with gh, a command the model already knows well. An internal tool the model has never seen would need a doc or a server either way. Figure 6 sums up when each choice fits.
| Choice | Fits when | Costs |
|---|---|---|
| A tool inside the agent (Module 4) | one agent needs it, and no one else will | written again for every other agent |
| An MCP server | several hosts need it; the host has no shell; users sign in remotely | definitions in every request; a program to run and trust |
| A command-line tool and a Markdown doc | the agent has a shell, and the command exists or the model knows it | the agent gets the shell’s full power; output parsing is up to the model |
Figure 6: the same capability three ways, and what each costs.
The choice flips on the host and the user. For a developer’s agent with a shell and a well-known command, try the command first. For a tool that several hosts need, or a host without a shell, such as a chat app, or a service where each user signs in, write an MCP server. Nina and Omar have two hosts and a queue with no command, so the lab writes a server.
Rule: Every connected tool costs tokens on every request; connect the few a task needs, and prefer a command the model knows when the agent has a shell.
Software built for agents
MCP is one way to make software usable by an agent. Karpathy points at a wider change. More and more, the user of your software is someone’s agent, not a person at a screen.
In his June 2025 talk “Software Is Changing (Again)”, he called agents a new kind of consumer of digital information (video, published June 18, 2025). Before them, there were people using screens and programs using APIs.
He said docs that tell the reader to click through a screen are a problem for an agent, which needs a command it can run instead. He named MCP as one way of talking to agents directly.
His posted summary of his Sequoia Ascent 2026 talk makes it a checklist (Sequoia Ascent 2026 summary, April 30, 2026). It says “The user is the human’s agent”, and it lists what products need. That list includes Markdown docs, CLIs, APIs, MCP servers, structured logs, machine-readable schemas and headless setup flows.
The literal fact behind it is that an agent reads text and runs commands. So a page it can read and a command it can run serve it better than a button.
For the TinyTickets job queue, that checklist means three surfaces:
- A Markdown doc.
docs/jobs.mdsays what the queue is, what its columns mean, and which errors mean what. - A command-line tool.
node jobs.ts failed --limit 20prints failed jobs, for any agent with a shell. - An MCP server.
jobs-server.tsoffers the same data to any MCP host, including hosts without a shell, for one entry in a config file.
llms.txt
llms.txt is a proposed Markdown file at the root of a website, /llms.txt, that tells a language model what the site is and links to its most useful pages. Jeremy Howard proposed it on September 3, 2024, and the llms.txt site published a second version in August 2026. The format has one required part, an H1 with the site’s name, then an optional summary in a blockquote and sections of links:
# TinyTickets
> A ticket site for shows. These docs explain the code and the job queue, for developers and their agents.
## Docs
- [Job queue](https://tinytickets.example/docs/jobs.md): the jobs table, the worker, and what each error means
- [Job server](https://tinytickets.example/docs/mcp.md): the tinytickets-jobs MCP server and its one tool
## Optional
- [Deploy notes](https://tinytickets.example/docs/deploy.md)
The proposal also asks sites to offer each page as Markdown at the same address with .md added. Karpathy suggested a file like this in his June 2025 talk, but Howard wrote the proposal. Claude Code’s docs, the Claude API docs, the MCP site, Stripe’s docs and Vercel publish one (each returned HTTP 200 on 2026-11-22).
What changed recently is version 2, in August 2026, which added standard ways for an HTML page to point to its Markdown version. Chrome’s Lighthouse also has an audit that flags a server error on /llms.txt and treats a missing file as fine (Lighthouse audit).
Does any model read it? That depends on which reader you mean. In June 2025, Google’s John Mueller wrote that “no AI system currently uses llms.txt”, about crawlers and answer engines that pick sites to show (Search Engine Roundtable, June 18, 2025).
A coding agent is a different reader. When it fetches a docs URL during a task, it reads whatever comes back. Clean Markdown costs it fewer tokens than HTML with menus and scripts.
So treat llms.txt as a cheap convenience for agents that are already on your docs, not as a way to be found. Nothing reads it on its own; a model sees it only if a tool fetches it into the context window (Module 2). We found no published measurement of how often agents fetch it. Its cost is upkeep, because a stale link list sends agents to the wrong page.
Rule: Give agents text they can read and commands they can run; a button or a “click here” helps only people.
One question through agent.ts and an MCP server
This trace follows one question through the finished lab: agent.ts with the MCP client, and jobs-server.ts with the fixed tool. You type “How many jobs failed, and what was the most common error?” from the tinytickets-mini folder.
First, where the new part sits. Figure 7 redraws Module 4’s agent loop on the same layout. Only the MCP part is new.
context window
+-------------------+
| tool definitions | tool_use tools
| system prompt |--> [Model] ---------> [list_files]
(Developer) task -->| user: task | [read_file]
^ | assistant: calls | [edit_file]
| | user: results |<---- tool_result ---- [run_command]
| | ... more steps | | |
+--- answer ---| assistant: answer | | v
+-------------------+ | [[project files]]
|
NEW [MCP client]
| tools/call
v over stdio
[jobs-server]
|
v
[[jobs.json]]
The context window, the tools and the MCP client live in agent.ts.
jobs-server is a separate program that agent.ts starts.
Figure 7: an MCP tool joins the same loop; its calls go through the MCP client to a server, and its results come back as tool_result.
Figure 8 shows the messages in order, from the start of agent.ts to the answer.
(Developer) [agent.ts] [jobs-server] [Claude API]
| |-- starts it ------->| |
| |-- server/discover ->| |
| |<- 2026-07-28, tools-| |
| |-- tools/list ------>| |
| |<- list_failed_jobs -| |
|-- task --->| | |
| |-- 1 POST: 5 tool definitions, task --------->|
| |<-- tool_use jobs__list_failed_jobs {} -------|
| |-- tools/call ------>| |
| |<- total 400, ... ---| |
| |-- 2 POST: + tool_use, + tool_result -------->|
| |<-- end_turn: the answer ---------------------|
|<- answer --| | |
Figure 8: the host talks MCP to the server and the Messages API to the model, and the model never sees MCP.
Start. agent.ts reads .mcp.json, starts node jobs-server.ts, and asks server/discover. The server supports 2026-07-28, so the pinned client goes on. It asks tools/list and gets one tool. agent.ts wraps it as a Tool named jobs__list_failed_jobs and prints MCP: jobs (modern) gave 1 tool(s): list_failed_jobs.
Step 1. The request carries five tool definitions: Module 4’s four and the new one, with the server’s description and schema. The description says to use total and by_error for counts. So the model is likely to answer with stop_reason: "tool_use" and a call to jobs__list_failed_jobs, with {} or a limit.
The MCP call. runTool finds the Tool by name and runs it. Its run function sends tools/call with the name list_failed_jobs and the model’s arguments. The server reads jobs.json, counts in code and answers with about 2,900 characters of JSON: total 400, by_error with 380 and 20, and the 20 newest jobs. agent.ts prints <- {"total":400,"by_error":... and sends the text back as a tool_result.
Step 2. The model reads the result and answers in text, with stop_reason: "end_turn". The right answer is 400 failed jobs, 380 of them with “421 too many connections, try again later”.
When you run the lab, you see your own trace, with input_tokens on each [step] line. A model may take another path, such as calling the tool twice with a kind, and your trace can differ.
Pause and predict. The model asked for jobs__list_failed_jobs. Which name does agent.ts send in tools/call, and why do the two names differ?
Answer
It sends list_failed_jobs, the name the server gave the tool. The jobs__ prefix is the host’s own, from the server’s key in .mcp.json, so two servers that both offer a search tool don’t collide in the model’s tool list. The server knows nothing about the prefix. Claude Code does the same with its own format, mcp__jobs__list_failed_jobs.
Lab: give one tool to two agents through MCP
Time: about 30 minutes. You’ll write a small MCP server over a copy of the job queue and look at its messages by hand. Then you’ll connect it to agent.ts, watch a careless tool flood the context, fix the tool, and give the same server to Claude Code.
You need:
- Module 4’s folders.
agent-lab/with the finishedagent.ts, andtinytickets-mini/, side by side in one parent folder. This lab adds a third folder beside them. - Node.js 26 LTS (v26.13.1), as in Module 4. It runs
.tsfiles directly. - The API key from Module 2, which costs money per token (pricing), or Ollama (see the note at the end of the lab).
- Optional: Claude Code, for step 7 only. It needs a paid plan or API use. Module 6 sets it up and teaches it, so skip step 7 if you don’t have it yet.
Model used: claude-opus-5-5 through MODEL, checked on 2026-11-22. MCP packages: @modelcontextprotocol/server and @modelcontextprotocol/client 2.4.0, for the 2026-07-28 spec. With a later model, only MODEL changes. With a later spec revision, the pinned version in agent.ts and the _meta lines in step 3 would change.
The steps describe what to look for, not a recorded run, so check each one against your own output.
Step 1: make the server folder
Why: a server is a program of its own, which any host can start. From the parent folder of agent-lab:
mkdir jobs-server
cd jobs-server
npm init -y
npm pkg set type=module
npm install @modelcontextprotocol/server@2.4.0 zod@4
You should see a package.json with "type": "module" and both packages under dependencies.
Step 2: seed a copy of the queue
Why: the real queue is a PostgreSQL table, and the lab uses a JSON file with the table’s main columns, so you need no database. Create jobs-server/seed-jobs.ts:
// seed-jobs.ts: write jobs.json with 1,000 jobs from Friday's 10:00 sale, 400 of them failed for good.
import fs from "node:fs/promises";
const start = Date.parse("2027-03-05T10:00:00Z");
const jobs: Record<string, unknown>[] = [];
for (let id = 1; id <= 1000; id++) {
const failed = id % 5 < 2;
const kind = id % 10 === 3 ? "send_text_message" : "send_email";
let lastError: string | null = null;
if (failed) {
lastError = id % 50 === 0 ? "550 mailbox unavailable" : "421 too many connections, try again later";
}
jobs.push({
id,
kind,
payload: {
orderId: 5000 + id,
to: kind === "send_email" ? `buyer${id}@example.com` : "+10000000000",
template: "order_confirmation",
},
attempts: failed ? 5 : 1,
max_attempts: 5,
last_error: lastError,
failed_at: failed ? new Date(start + id * 7_000).toISOString() : null,
});
}
await fs.writeFile(new URL("./jobs.json", import.meta.url), JSON.stringify(jobs, null, 2));
const failedCount = jobs.filter((j) => j.failed_at !== null).length;
console.log(`wrote ${jobs.length} jobs, ${failedCount} failed`);
Run node seed-jobs.ts. You should see wrote 1000 jobs, 400 failed. Remember the numbers: 380 of the failed jobs have the 421 error, and 20 have the 550 one.
Step 3: write a first server, and look at the wire
Why: this is the smallest MCP server, with one tool, and you’ll see its messages before any host is involved. This first tool returns every failed job, which is a mistake you’ll see in step 5. Create jobs-server/jobs-server.ts:
// jobs-server.ts, version 1: an MCP server with one tool over the job queue.
import { McpServer } from "@modelcontextprotocol/server";
import { serveStdio } from "@modelcontextprotocol/server/stdio";
import * as z from "zod/v4";
import fs from "node:fs/promises";
import path from "node:path";
// Hosts start the server from their own folder, so find the data next to this file.
const JOBS_FILE = path.join(import.meta.dirname, "jobs.json");
type Job = {
id: number;
kind: string;
payload: Record<string, unknown>;
attempts: number;
max_attempts: number;
last_error: string | null;
failed_at: string | null;
};
async function readJobs(): Promise<Job[]> {
return JSON.parse(await fs.readFile(JOBS_FILE, "utf8"));
}
function createServer(): McpServer {
const server = new McpServer(
{ name: "tinytickets-jobs", version: "1.0.0" },
{ instructions: "Read-only access to the TinyTickets background job queue." },
);
server.registerTool(
"list_failed_jobs",
{
title: "List failed jobs",
description: "List the background jobs that failed for good.",
inputSchema: z.object({}),
},
async () => {
const jobs = await readJobs();
const failed = jobs.filter((j) => j.failed_at !== null);
return { content: [{ type: "text", text: JSON.stringify(failed) }] };
},
);
return server;
}
serveStdio(() => createServer());
// stdout carries the protocol, so logs go to stderr.
console.error("tinytickets-jobs MCP server running on stdio");
Notice three things. registerTool takes the tool’s name, its definition and the function that runs it, much like a Module 4 Tool object. The input schema is a Zod object, and the SDK turns it into the JSON Schema that tools/list sends. And serveStdio takes a function that builds the server, so the SDK can build one per connection.
Now play the client by hand. Create jobs-server/wire.jsonl with three requests, one per line:
{"jsonrpc":"2.0","id":1,"method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientInfo":{"name":"by-hand","version":"1.0.0"},"io.modelcontextprotocol/clientCapabilities":{}}}}
{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientInfo":{"name":"by-hand","version":"1.0.0"},"io.modelcontextprotocol/clientCapabilities":{}}}}
{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientInfo":{"name":"by-hand","version":"1.0.0"},"io.modelcontextprotocol/clientCapabilities":{}},"name":"list_failed_jobs","arguments":{}}}
Send them through the server’s stdin. The sleep keeps stdin open until the answers arrive, because the server drops requests that are still running when stdin closes. cut shows the first 200 characters of each answer:
(cat wire.jsonl; sleep 1) | node jobs-server.ts | cut -c 1-200
You should see the banner from stderr, then three JSON lines with ids 1, 2 and 3. The first has "supportedVersions" with "2026-07-28" in it. The second lists list_failed_jobs with its inputSchema.
The third starts with {"jsonrpc":"2.0","id":3,"result": and is cut. The tool’s text is about 97,000 characters, and the whole line is longer, because the text sits inside a JSON string with every quote escaped.
Pause and predict. Change 2026-07-28 to 1900-01-01 in the first line and run the command again. What comes back for id 1?
Answer
An error, not a result: code -32022, “Unsupported protocol version”, with data.supported listing the versions the server speaks and data.requested showing 1900-01-01. The server checks the version on each request on its own, because there is no handshake to remember. Check which versions your server lists in data.supported.
Change the version back before the next step.
Step 4: connect agent.ts as a host
Why: the host turns each MCP tool into a Module 4 Tool, so the loop and runTool don’t change. In agent-lab, install the client:
npm install @modelcontextprotocol/client@2.4.0
Add two imports at the top of agent.ts, after the others:
// Add to the imports of agent.ts (step 4)
import { Client } from "@modelcontextprotocol/client";
import { StdioClientTransport } from "@modelcontextprotocol/client/stdio";
Then add this block right after the line const TOOLS: Tool[] = [listFiles, readFile, editFile, runCommand];:
// Add after TOOLS in agent.ts (step 4): tools that MCP servers offer.
type McpConfig = { mcpServers?: Record<string, { command?: string; args?: string[] }> };
type McpTool = Awaited<ReturnType<Client["listTools"]>>["tools"][number];
// Turn one tool from an MCP server into a Tool, like the four above.
function mcpTool(server: string, mcp: Client, tool: McpTool): Tool {
return {
definition: {
// The prefix keeps apart two servers that both offer, say, a "search" tool.
name: `${server}__${tool.name}`,
description: tool.description ?? "",
input_schema: tool.inputSchema as Anthropic.Tool.InputSchema,
},
async run(input) {
const result = await mcp.callTool({ name: tool.name, arguments: input });
const parts = result.content.map((c) => (c.type === "text" ? c.text : `[${c.type} content]`));
const text = parts.join("\n");
if (result.isError) {
throw new Error(text); // runTool turns this into is_error: true
}
if (text.length > 20_000) {
return text.slice(0, 20_000) + "\n[cut at 20000 characters]";
}
return text;
},
};
}
// Start each stdio server listed in the project's .mcp.json, and add its tools to TOOLS.
async function connectMcpServers(): Promise<void> {
let config: McpConfig = {};
try {
config = JSON.parse(await fs.readFile(path.join(ROOT, ".mcp.json"), "utf8"));
} catch (err) {
if ((err as { code?: string }).code !== "ENOENT") {
throw err;
}
}
for (const [server, entry] of Object.entries(config.mcpServers ?? {})) {
if (entry.command === undefined) {
console.log(`MCP: skipped ${server}; this agent starts stdio servers only.`);
continue;
}
const mcp = new Client(
{ name: "agent.ts", version: "1.0.0" },
{ versionNegotiation: { mode: { pin: "2026-07-28" } } },
);
const transport = new StdioClientTransport({ command: entry.command, args: entry.args ?? [], cwd: ROOT });
await mcp.connect(transport);
const { tools } = await mcp.listTools();
for (const tool of tools) {
TOOLS.push(mcpTool(server, mcp, tool));
}
const names = tools.map((t) => t.name).join(", ");
console.log(`MCP: ${server} (${mcp.getProtocolEra()}) gave ${tools.length} tool(s): ${names}`);
}
}
Last, connect before the first prompt. Near the end of the file, add one line after const messages:
// Change near the end of agent.ts (step 4)
const messages: Anthropic.MessageParam[] = [];
await connectMcpServers();
console.log(`Coding agent on ${MODEL} in ${ROOT}. Press Ctrl+C to quit.`);
Notice four things. Each MCP tool becomes a Tool with a definition and a run, so runTool finds it, and still never throws. A server’s tool error becomes a thrown Error, which runTool turns into is_error: true, the same path as a missing file.
MCP output is cut at 20,000 characters, like read_file. And connect() starts the server, so you never start jobs-server.ts yourself.
Now tell the agent which servers the project uses. In jobs-server, run pwd to get the folder’s full path. Then create tinytickets-mini/.mcp.json, with that path in place of /home/you/jobs-server:
{
"mcpServers": {
"jobs": {
"command": "node",
"args": ["/home/you/jobs-server/jobs-server.ts"]
}
}
}
This is the project file format that Claude Code reads too, so one file configures both agents. Start the agent from the project folder:
cd tinytickets-mini
node ../agent-lab/agent.ts
You should see the server’s banner on stderr, perhaps twice because of the short-lived discovery copy, then MCP: jobs (modern) gave 1 tool(s): list_failed_jobs. Count how many times the banner prints on yours.
Step 5: ask a question the tool answers badly
Why: a tool’s output is context, and you should see what a careless tool does to it. Ask:
you: How many jobs failed, and what was the most common error?
You should see -> jobs__list_failed_jobs {}, then <- [{"id":1,"kind":"send_email","payload":.... The server sent about 97,000 characters, and agent.ts cut them at 20,000, so the model saw about 80 of the 400 jobs and a [cut at 20000 characters] line. The [step 2] line shows a much larger input_tokens than [step 1].
Compare the answer with the true numbers from step 2: 400 failed, 380 of them with 421. The model can’t count jobs it never received. It may say the output was cut, or report a count near 80, but it can’t give 400.
Without the cut, the model would get all 400 jobs and have to count them in text. Module 2 showed that counting is a weak spot for models, and every later step of the task would carry those 97,000 characters again.
Step 6: fix the tool, not the prompt
Why: code counts exactly and cheaply, so the server should send totals and a short sample. In jobs-server.ts, replace the whole server.registerTool(...) call with this one:
// jobs-server.ts, version 2 (step 6): counts in code, a limit, no payloads.
server.registerTool(
"list_failed_jobs",
{
title: "List failed jobs",
description:
"List background jobs that failed for good (no attempts left), newest first. " +
"Returns total, the number of failed jobs; by_error, how many failed with each error; " +
"and at most `limit` jobs, without their payloads. Read-only. " +
"Use total and by_error to answer questions about counts; do not count the jobs list.",
inputSchema: z.object({
limit: z.number().int().min(1).max(100).default(20).describe("How many jobs to return, newest first."),
kind: z.string().optional().describe("Only jobs of this kind, for example send_email."),
}),
annotations: { readOnlyHint: true },
},
async ({ limit, kind }) => {
const jobs = await readJobs();
const failed = jobs.filter((j) => j.failed_at !== null && (kind === undefined || j.kind === kind));
failed.sort((a, b) => (b.failed_at ?? "").localeCompare(a.failed_at ?? ""));
const byError: Record<string, number> = {};
for (const job of failed) {
const error = job.last_error ?? "(none)";
byError[error] = (byError[error] ?? 0) + 1;
}
const shown = failed.slice(0, limit).map((j) => ({
id: j.id,
kind: j.kind,
attempts: j.attempts,
last_error: j.last_error,
failed_at: j.failed_at,
}));
const result = { total: failed.length, by_error: byError, shown: shown.length, jobs: shown };
return { content: [{ type: "text", text: JSON.stringify(result) }] };
},
);
Notice three changes. total and by_error are counted in code, and the description tells the model to use them. limit has a default and a maximum, so the output stays small even if the model asks for more. And readOnlyHint tells hosts that the tool changes nothing, which is true here because it only reads a file.
Stop agent.ts with Ctrl+C and start it again, which restarts the server. Ask the same question.
You should see <- {"total":400,"by_error":{"550 mailbox unavailable":20,"421 too many connections, .... The result is about 2,900 characters, so the [step 2] line shows far fewer input_tokens than in step 5. The answer is likely to say 400 jobs, 380 of them with the 421 error.
Step 7: give the same server to Claude Code
Why: this is Omar’s request. One server, a second host, and no change to the server’s code. Skip this step if you don’t have Claude Code yet; Module 6 teaches it, and here you only add a server.
Claude Code reads .mcp.json from the project folder, the same file agent.ts reads. Without that file, this command in tinytickets-mini would write the same entry (Claude Code MCP docs, Claude Code v2.1.330, checked 2026-11-22):
claude mcp add --transport stdio --scope project jobs -- node /home/you/jobs-server/jobs-server.ts
Everything after -- is the command that starts the server. --scope project writes .mcp.json in the project, so the team shares it through Git. Run claude mcp get jobs to see the entry that Claude Code found.
Then start claude in tinytickets-mini. For safety, Claude Code asks you to approve a project’s servers from .mcp.json before it uses them. Approve jobs, type /mcp to see it connected, and ask the same question as in step 6.
Check that Claude Code asks your permission, then calls mcp__jobs__list_failed_jobs and answers from total and by_error.
That works whatever revision Claude Code speaks. Recent versions ask a server whether it supports 2026-07-28 and use it if so, and serveStdio also serves the older handshake.
Step 8 (stretch): make the queue readable without MCP
Why: an agent with a shell can use plain text and commands, as Karpathy’s checklist says. This step is labeled stretch, so the check questions don’t depend on it.
- Write
tinytickets-mini/docs/jobs.md: what a job is, what each column means, what421and550mean, where the queue’s file is, and a shell command that prints the failed jobs. - Add an
llms.txtat the project root, in the format from the “llms.txt” section, with one link todocs/jobs.md. - Start
agent.tswithout.mcp.json(rename it), and ask the same question. Watch whether the model readsdocs/jobs.mdand asks to run a command to readjobs.json.
Ollama note. The MCP part doesn’t change on Ollama, because the server never talks to a model. Start Ollama v0.40.17 with
OLLAMA_CONTEXT_LENGTH=64000 ollama serve, then runANTHROPIC_BASE_URL=http://localhost:11434 ANTHROPIC_API_KEY=ollama MODEL=qwen3-coder node ../agent-lab/agent.tsfromtinytickets-mini(qwen3:8bon a 16 GB machine).Expect a weaker agent. Smaller models pick tools less reliably and pass wrong argument types more often, such as
limitas a string; the server then answers with an input validation error. Ollama also ignoresis_error, which is whyrunToolstarts every error withError:. Check how your local model handles steps 4 to 6 before you trust its answers.
Going deeper
State without sessions
A tool that needs state across calls, such as a shopping cart, returns an id and lets the model pass it back as an argument. The tools page calls this a handle, and asks for ids that are hard to guess and have a stated lifetime.
Another change lets a server ask the user a question in the middle of a call. It returns a result with resultType: "input_required", and the client repeats the call with the answer (changelog, SEP-2322). Long-running work moved to an official extension, tasks.
One server for both eras
serveStdio serves both eras by default. A connection that opens with initialize gets a 2025-era server from the same factory, and one that opens with modern requests gets a 2026-07-28 one. For HTTP, createMcpHandler does the same. So a server written with the v2 SDK works with old and new hosts, while a client pinned to 2026-07-28 works only with new servers.
The Claude API’s MCP connector
The Messages API can call a remote MCP server itself: you list it in mcp_servers, under a beta header, and the API runs the calls (MCP connector, checked 2026-11-22). Two limits matter. It supports only tools, and the server must be reachable over HTTP from the internet, so a local stdio server like this lab’s can’t be used.
Code instead of tool calls
Anthropic described another way to use many servers: show each server to the agent as code it can import, and let it load only the definitions it needs (Code execution with MCP, November 4, 2025). In their example, the context fell from 150,000 tokens to 2,000. The cost is that the agent’s code must run in a sandbox with limits and monitoring.
The SDK’s helper
@anthropic-ai/sdk 1.12.0 has beta helpers in @anthropic-ai/sdk/helpers/beta/mcp, such as mcpTools, that turn an MCP client’s tools into tools for the SDK’s tool runner (Module 4). They do what mcpTool does in the lab. Their code examples still import the v1 package, @modelcontextprotocol/sdk.
How the spec got here
Each revision is named by its release date:
- 2024-11-05: the first public version.
- 2025-03-26: OAuth 2.1 sign-in, Streamable HTTP, tool annotations.
- 2025-06-18: structured tool output, elicitation.
- 2025-11-25: icons, experimental tasks, JSON Schema 2020-12 as the default.
- 2026-07-28: stateless,
server/discover, three client features deprecated.
New proposals go through a public process, with each one a Markdown file in the spec repository. Since 2026-07-28, a deprecated feature stays for at least twelve months before removal.
Common mistakes with MCP
- Following a 2025 tutorial’s imports. Symptom: a server built on
@modelcontextprotocol/sdkworks in older hosts, but a client pinned to 2026-07-28 fails withERA_NEGOTIATION_FAILED. Fix: use@modelcontextprotocol/serverand@modelcontextprotocol/client2.x. - Leaving the v2 client at its default. Symptom:
getProtocolEra()printslegacy, and requests carry no_meta. Fix: pin2026-07-28, or setautofor servers you don’t control. - Logging to stdout in a stdio server. Symptom: some hosts drop the connection, because stdout must hold only MCP messages. Fix: log with
console.error. The v2 client skips lines that aren’t JSON, so the bug may stay hidden inagent.tsand show up in another host. - Relative paths. Symptom:
ENOENTforjobs.json, or the server never starts, because hosts start servers from their own folder. Fix: find data withimport.meta.dirname, and use full paths in.mcp.json. - A tool that returns everything. Symptom:
input_tokensjumps, output is cut, and counts are wrong. Fix: count in the server, add alimitwith a default, and leave out fields the model doesn’t need. - Connecting every server you find. Symptom: a large
input_tokenson the first step, and calls to the wrong tool. Fix: connect the servers a task needs, and use a host with tool search when you need many. - Trusting a server’s annotations and descriptions. Symptom: none until something goes wrong. Fix: read a server’s code, or use one from a source you trust; Module 9 covers the threats.
Check yourself
Scenario. Omar copies a server from a 2025 tutorial that imports @modelcontextprotocol/sdk, and adds it to tinytickets-mini/.mcp.json. Claude Code, started in that folder, uses the server without a problem. agent.ts stops at startup with ERA_NEGOTIATION_FAILED. Why does one host work and the other fail, and what are two ways to fix it?
Answer
The v1 package implements the spec only up to 2025-11-25, so the server knows only the initialize handshake. agent.ts pins its client to 2026-07-28, which has no fallback, so it fails when the server doesn’t answer server/discover. Claude Code asks whether a server supports the new revision and falls back to the old handshake when it doesn’t.
Two fixes: set agent.ts‘s client to auto, so it falls back too, or move the server to @modelcontextprotocol/server 2.x, whose serveStdio serves both eras. The second fixes it for every pinned client.
- In the lab, which program is the host, which is the client, and which is the server?
- Under 2026-07-28, what does every request carry in
_meta, and why? jobs.jsonis missing when the model callslist_failed_jobs. What does the server send back, and what does the model see?- When is a command-line tool with a Markdown doc a better choice than an MCP server, and what makes the choice flip?
- What is
llms.txt, and which kind of reader gets value from it today?
Answers
agent.tsis the host, theClientobject inside it is the client, andjobs-server.tsis the server.- The protocol version, the client’s name and the client’s capabilities, because there is no handshake and the server answers each request on its own.
- A normal result with
isError: trueand the error text;agent.tsthrows it inrun, andrunToolsends the model atool_resultwithis_error: trueand “Error: …”. - When the agent has a shell and the command exists or the model already knows it. The choice flips to MCP when several hosts need the tool, the host has no shell, or users must sign in to a remote service.
- A Markdown file at a site’s root that describes the site and links its useful pages. It helps an agent that is already fetching your docs; there’s no public evidence that crawlers use it.
Cheat sheet
MCP and software built for agents
- Roles: the host holds the conversation; one MCP client per server; the server offers tools.
- Wire: JSON-RPC;
server/discover,tools/list,tools/call;_metaon every request. - Errors: a protocol error is a JSON-RPC
error; a tool error is a result withisError: true. - Transports: stdio for a local server the host starts; Streamable HTTP for a shared, remote one.
- SDK:
@modelcontextprotocol/serverand/client2.x for 2026-07-28; pin the version or useauto. - Kinds: tools (the model picks), resources (the app picks), prompts (the user picks).
- Cost: every definition and every result goes into the context window; count in the server.
- Choice: one agent, a tool inside it; many hosts or no shell, MCP; shell and a known command, a CLI.
- For agents: Markdown docs, commands instead of “click”,
llms.txtas an index.
Figure 9 is the whole module in one picture: one server, two hosts, one config file.
host server
(Nina) --> [agent.ts]
[MCP client] ---- stdio ----+
+--> [jobs-server] --> [[jobs.json]]
[MCP client] ---- stdio ----+ list_failed_jobs
(Omar) --> [Claude Code] (read-only)
Both hosts read .mcp.json, start the same server and call the same tool.
Its definition and every result still go into each host's context window.
Figure 9: write the tool once as an MCP server, and every host with an MCP client can list it and call it.
Next, Module 6 moves from your small agent to a real coding agent, Claude Code, and to the habits that separate vibe coding from agentic engineering.
Sources
- MCP specification 2026-07-28, checked 2026-11-22: overview, changelog, architecture, transports, versioning, authorization, server features, tools, deprecated features, schema.
- MCP proposals: SEP-2575, stateless MCP; SEP-2577, deprecating Roots, Sampling and Logging.
- MCP TypeScript SDK, v2 (
@modelcontextprotocol/serverand@modelcontextprotocol/client2.4.0), and its protocol versions guide. - Anthropic: Introducing the Model Context Protocol, November 25, 2024; Donating MCP and establishing the Agentic AI Foundation, December 9, 2025; Code execution with MCP, November 4, 2025; Introducing advanced tool use, November 24, 2025.
- Claude docs, checked 2026-11-22: Claude Code MCP, MCP connector, pricing.
- Microsoft, Language Server Protocol overview.
- Andrej Karpathy, Software Is Changing (Again), June 2025; Sequoia Ascent 2026 summary, April 30, 2026.
- Jeremy Howard, llms.txt, first published September 3, 2024, version 2 August 2026; Chrome, Lighthouse llms.txt audit; John Mueller, post on Bluesky, June 17, 2025.
- The MCP and command-line debate: Armin Ronacher, Tools: Code Is All You Need, July 3, 2025; Mario Zechner, What if you don’t need MCP at all?, November 2, 2025; Simon Willison, Claude Skills are awesome, maybe a bigger deal than MCP, October 16, 2025; Eric Holmes, MCP is dead. Long live the CLI, February 28, 2026; Arize AI, MCP vs. CLI Skills for agents, May 2026.
- Security: Invariant Labs, tool poisoning attacks, April 1, 2025, and the GitHub MCP exploit, May 26, 2025; MCP security best practices.