What MCP is
MCP is one common plug, like USB. Connect the agent to Jira or GitLab and it takes the data from there itself. More
The picture shows two data paths. In the first a person retells the task to the agent, and details are lost on the way. In the second the agent reads the system itself through MCP and sees everything a person sees. MCP (Model Context Protocol) is an open standard that connects AI applications with external systems. The agent has an MCP client, the system has an MCP server, and the server tells the agent which data and actions are available.
The agent’s context and other systems
The agent’s context is everything the agent sees at once (the conversation with the agent, project files). Other contexts are everything else (GitLab, Jira, meeting recordings, a knowledge base). The bridge between them is MCP: the agent has an MCP client and the system has an MCP server.
On the left of the picture is the agent’s context: the conversation with it and the project files it sees at once. On the right are other systems: GitLab, Jira, tldv with meeting recordings, Confluence with a knowledge base. Until MCP is connected, the agent does not see them. The bridge between them has two parts: an MCP client on the agent’s side and an MCP server on the system’s side.
What context is
Context is everything the model sees at the moment. What is not in the context, the agent does not know.
Context can be pictured as a desk holding everything the model sees right now: conversation messages, open files, call results. What is not on the desk does not exist for the model until it is put there. So the main question when working with an agent is what is on its desk.
| Where the fact lives | The agent sees it | What happens |
|---|---|---|
| The agent’s context: the conversation, project files | at once | an answer from data |
| Other context: GitLab, Jira, meeting recordings | through MCP | the agent fetches what it needs |
| Nowhere: in heads, in a closed system | no | a guess instead of a fact |
The table shows what happens to a fact depending on where it lies. A fact in the agent’s context (the conversation, project files): the agent answers from data. A fact in another system (GitLab, Jira, meeting recordings): the agent fetches it itself, but only through MCP. A fact written nowhere (in people’s heads, in a closed system): the agent will not see it and will replace it with a guess. Hence the practical rule: write decisions down where the agent can take them from.
How the agent fetches other context: ReAct
The agent works in a ReAct loop: it reasons, acts, reads the result and reasons again. MCP is the “act” step: the call result lands in the agent’s context.
An example of the cycle: the agent reasons (“I need the steps of bug PAY-142”), acts (calls the Jira MCP server), reads the answer (it lands in the context) and answers from the data. The three cards show what happens when the cycle breaks. Reasoning alone gives an invented answer, acting alone gives extra calls and token spend, and alternating gives an answer exactly from the data.
Grounding: every part of the answer has support
An answer is grounded when every part of it comes from the context. Such a matching with no empty spots is called an epimorphism.
| Part of the answer | Support |
|---|---|
| Reproduction steps | Jira, ticket PAY-142 |
| Where the code fails | GitLab, file and line |
| Why it was decided | tldv, meeting recording |
The table shows a check of support on an example. The reproduction steps come from the Jira ticket, the place where the code fails from GitLab, the reason for the decision from a meeting recording. If a part of the answer has no such support, it is rechecked by hand.
Hallucination: a part with no support
A hallucination is a confident guess where there is no support. It looks as smooth as an answer from data. Details and Anthropic advice are in the hallucinations section below.
A hallucination looks as smooth as an answer from data, so they cannot be told apart by tone. Only the support tells them apart: it is there or it is not.
Why these
Without it: The agent guesses the code from other contexts and is often wrong, which is how hallucinations appear; a person copies files and diffs into the conversation by handOfficial MCPMore
Without it: There is a lot to copy by hand and the change history gets lostOfficial Atlassian MCPMore
Without it: The visualisation and display of requirements every developer is used to disappear. It is important to limit the agent and not let it wander far: old requirements may be outdated. Make it check the factual picture in GitLabSame Atlassian MCPMore
Without it: Decisions stay in heads, and meeting notes and requirements get written from memory hours later, with errorsRecording and open APIMore
Without it: Same as without tldv: decisions from meetings get lostMCPMore
These systems were chosen because they hold four kinds of facts: code, tasks, rules and decisions from meetings. Each row says what is lost without the connection. Confluence comes with a caveat: connect it only if the pages are polished (an owner and a check date), and let the agent check the actual picture against the code in GitLab. It is even more reliable to keep requirements and specs in Git: there an edit has an author, a date and a reason.
How to connect Jira
The agent and its harness can connect on their own. Guides: Atlassian and Claude Code.
The picture compares two ways. By hand: you look up the instructions, type commands, sign in and check the result. Delegate to the agent: you say one phrase, the agent connects Jira itself, and all you do is sign in through the browser.
Tell the agent
Connect the Jira MCP server following the Atlassian guide and test it on task PAY-142: read it and summarise the comments.
The agent runs the commands itself. All you do is log in via the browser (OAuth): the agent never gets your password. If the agent asks you to do it.
What will happen
- 1The agent connects Jirawith one command, you type nothing
- 2A Jira page opens — the key stepit offers to give the agent access to Jira; you sign in and approve, and the agent never sees the password
- 3The agent reads PAY-142opens the task with its comments and retells them
The key step here is the second: you give the access yourself, by signing in through the browser. The agent does not see your password and gets only the rights you confirmed on the Jira page. The agent does the first and third steps itself.
Read-only. You may not always be able to choose read-only access on that page. That is safe: the agent tends to read and hardly writes anything until you ask it to.
How it is done by hand
claude mcp add --transport http atlassian https://mcp.atlassian.com/v2/mcp
/mcp # log in via browser (OAuth)
claude mcp list # status: connected / needs login / failedWhere the setup lives and who sees the server: MCP scopes in Claude Code.
By hand it is three commands: add the server, sign in through the browser with /mcp and check the status. The status comes in three kinds: connected, needs sign-in or error. The diagram above shows it step by step, and the scopes below say where the setting is stored.
Savings
The saving comes from accuracy. A vague request gets a vague answer, a fix spawns a new request, and errors pile up from step to step; when copying and retelling by hand a person adds such slips unnoticed. The agent takes data straight from the source, so the chain is shorter and has fewer errors. The price is growing token use over a long run, and there are limiters for it.
On the left is the path with manual copying: every step adds an inaccuracy, and by the third pass the errors have piled up. On the right is the path from the source: one exact request and one answer, with no chain of retellings.
Spending limits
A connected system’s reply lands in the conversation and takes up room there, and room is measured in tokens. So Claude Code watches reply size and sets two thresholds.
The scale shows the size of a system’s reply in tokens. Up to 10,000 tokens a reply passes without remarks. After 10,000 Claude Code warns that the reply is large. After 25,000 the reply does not enter the conversation whole and is saved to a file.
The 25,000 cap can be raised with the MAX_MCP_OUTPUT_TOKENS environment variable, while the warning threshold is fixed.
More.
Fewer hallucinations
Hallucination: the model produces text that looks right but is wrong or does not follow from the data. The model sounds equally confident in two situations. More
The agent’s answer is matched against the data: every part of it should have support. In mathematics such a matching is called an epimorphism. Parts without support are filled in by the model as a guess, and they look just as confident.
What this means in practice. If systems are not connected, the agent fills the gaps with a guess and states it in the same confident tone: the text does not show a guess from a fact. If systems are connected, real data with a link stands where the guess was, and checking takes one click. The three Anthropic tips work together: allow the agent to say “I don’t know” when there is no data, ask it to rely on the verbatim text of the source, and demand a link for every claim.
What Anthropic recommends
The three Anthropic tips close the gaps in the data. Allow “I don’t know”: otherwise the model fills the gap with a guess. Rely on a quote: the verbatim text of a source can be checked. Give a link for every claim: it can be opened and compared.
Risks and rules
In most cases the protection is already built into how MCP works in Claude Code. What remains is to pick trusted servers and not grant extra rights. More
Three risks are worth remembering. Excess rights: a server that was given write access can change or delete data, so rights are given at a minimum. An untrusted server: an MCP server from third parties gets access to what you opened to it, so connect verified ones. Text from systems: a task or a comment may contain a phrase aimed at the agent, which is covered in the article on the data plane and control plane.
The ladder in the picture shows the order of granting rights. First read: the agent only looks. Then write with confirmation: the agent proposes, a person approves every write. Write without confirmation waits until trust has built up. Move up one step only when you have checked that the previous one works.
Where to start
It is better to start small: one source, one person who checks, and read-only mode. Connect Jira, ask the agent five questions about real tasks and compare the answers with what you see yourself. That shows how far the agent can be trusted before you give it write rights.
Other cases
One approach works across tasks: the agent reads the sources and a person checks the result.
| Case | Sources | What the agent does | What a human checks |
|---|---|---|---|
| QA | Jira, stand, browser | reproduces a bug, narrows the path, writes a report | the steps by hand on the stand |
| Reports and analytics | database, sheets, documents | calculates with queries, assembles a summary | one number another way |
| Incidents | Sentry, Grafana | matches errors, metrics and release time | the hypothesis against charts and events |
How to read the table. Every row follows one order: the agent reads the sources, does the main work and brings a result, and a person checks it with one short action. In QA the steps of the report are repeated by hand on the stand. In analytics one number is recalculated another way. In incidents the hypothesis is compared with graphs and events. Details are in the articles behind the links.