Sub topic 1
Why Assistants Need a Standard Way to Reach Tools
Prerequisites
This chapter assumes you can:
- Use a command line and run basic commands.
- Read and edit JSON files.
- Read short Python or JavaScript snippets.
- Use an AI coding assistant for everyday tasks such as asking it to explain or edit code.
No MCP knowledge is required. This chapter sets up the problem that the Model Context Protocol (MCP) solves. Later chapters cover the details.
What a model can and cannot do on its own
A language model reads text and produces text. By itself it cannot read your files, query your database, open a pull request, or check a ticket. It only knows what is in its training data and in the conversation so far.
A coding assistant gets around this by adding tools. A tool is a function the assistant can ask to run on the model's behalf, such as "read this file" or "run this search". The model emits a structured request, the assistant program runs the function, and the result goes back into the conversation.
The built-in tools of an assistant cover common needs: reading files, editing files, running shell commands. Your work also involves systems the assistant's authors never saw: your issue tracker, your internal API, your company's database. Those need tools too.
The integration problem
Suppose you want three assistants to reach three systems: a Git host, a database and a ticket tracker. Without a shared standard, every pairing needs its own connector.
With M assistants and N systems, the custom approach needs up to M × N connectors. A shared protocol needs M clients and N servers, which is M + N pieces of work. The gap grows quickly as either side grows.
Custom connectors also cause other problems:
- Duplicated effort. Each assistant vendor rebuilds the same Git or database integration.
- Inconsistent behavior. Each connector describes its tools differently, handles errors differently and asks for credentials differently.
- Lock-in. A connector written for one assistant does not work in another. Switching assistants means rewriting your integrations.
- Hard to review. There is no common place to inspect what a tool is allowed to do.
What MCP provides
The Model Context Protocol is an open standard that defines how an assistant talks to an external program that offers tools and data. That program is called an MCP server. The assistant side speaks the protocol as a client.
The idea resembles the Language Server Protocol, which lets one language analysis server work in many editors. In the same way, one MCP server for your tracker can work in any assistant that supports MCP.
MCP standardizes three things:
- Discovery. The assistant can ask a server what it offers, and the server answers with names, descriptions and input schemas.
- Invocation. The assistant calls a tool with arguments in a fixed message format and gets a result or an error back.
- Configuration. You tell the assistant which servers to start, usually with a short JSON entry, instead of installing a plugin built for that one assistant.
MCP does not decide whether a tool is a good idea, safe to run, or correct. It also does not change how the model reasons. It is plumbing between the assistant and the outside world, and the trust questions stay with you. A later chapter covers them.
What you will build in this tutorial
By the end you will have configured an existing server in your assistant, written a small server of your own, and debugged it with a dedicated inspector tool. You will also be able to judge whether a given server is worth the risk and the context it consumes.
The next chapter names the three roles involved (host, client and server) and shows who does what.
Exercise
Your team uses 4 different AI assistants and wants each one to reach 5 internal systems. How many connectors does the custom approach need at most, and how many pieces of work does a shared protocol need? Name one non-numeric benefit of the shared protocol.
Show answer
The custom approach needs up to 4 × 5 = 20 connectors. A shared protocol needs 4 clients plus 5 servers, so 9 pieces of work. Any of these is a valid benefit: a server is reusable across assistants, tool descriptions and errors behave consistently, or you avoid lock-in to one assistant.