Fail the pull request when an MCP tool changes under your agent.
A tool you approved on Monday can read differently on Friday.
An MCP server can reword a tool description, add a parameter or mark a tool as destructive after your agent was approved. The agent then follows instructions nobody reviewed. Coriqo records a hash of each tool you approved, and your CI job fails when the server’s tool no longer matches.
It runs on your machine or in your pipeline. It needs no Coriqo account.
Python 3.10 or newer. Apache-2.0. Version 1.1.0 is on PyPI.
Lock the tools, then watch a change fail the check.
A small file says how to start each MCP server: its command, the names of the environment variables it may read, and a timeout. lock starts the server, reads every tool it lists, and writes a hash of each tool the agent may call into your mandate file.
Commit the three files. Now a pull request, or a new release of the server, rewords one tool:
Note: output shortened. The command names the changed tool and shows the old and new text side by side in the pull request comment. Accepting a change is a commit that edits the pins, so your normal review is the approval.
The check fails on the changes that give a tool more reach.
Each pin covers two hashes: the tool’s name, description and schemas, and its title and hints (read-only, destructive, open-world). A tool that is new, reworded, wider or marked riskier fails the check. A hint made safer, a title change or a removed tool is listed and does not fail it. You can change what each kind of change does with a short policy file.
The description changed
The agent reads the description, so new text there can carry new instructions. Any change to it fails the check, and the old and new text appear side by side.
A parameter was added or widened
A new property, a looser type or a new allowed value gives the tool more reach than the one a person approved. A change the check cannot classify also fails.
A tool is new, or marked riskier
A tool the lock file has not seen, or a hint that now says the tool is destructive or open-world, fails. So does a changed launcher entry.
Your CI job fails the build, and the comment says what changed.
A ready GitHub job is in the public repository as ci/github-tool-pins.yml. Copy it to .github/workflows/ and call it from a workflow that runs on pull_request. It runs the check and posts what changed as a comment.
No change
Every pinned tool matches its pin. The job passes.
A tool changed
The job fails and names each change. Read it. If it is intended, run the accept command and commit.
The check could not ask
The server would not start, timed out, or a token variable is not set. A job that cannot ask fails too, so an outage never lets an unchecked tool through.
The check job has read-only access and no token, because it starts the server your pull request names. A second job, which runs no server code, posts the comment.
Your own runtime refuses the call, not just the build.
The open-source coriqo-mcp sits in front of an MCP server, on your machine. Give it the same mandate file and the server’s name. With mode: enforce it fetches the tool list itself, hashes each tool, hides a changed tool from the list and refuses calls to it. Coriqo’s service is not on the path of a call.
Note: output shortened. A pin check happens before the call is forwarded. It cannot see a change made after the check and before the server runs the tool, so a pin is not a guarantee about what executes. Install the runtime from GitHub; the version on PyPI is an older build.
What a pin proves, and what it does not.
- A pin says the tool is the same one a person looked at. It does not say the tool is safe, and Coriqo does not scan descriptions for prompt injection or score vulnerabilities.
- The check runs the server’s code. It starts the command in the launcher file, and on a pull request that file comes from the pull request. Put it under CODEOWNERS, and run the job on pull_request, not on an event that gives it your secrets. Removing variables from the server’s environment is not a sandbox.
- It proves the server the launcher starts, not the one you deploy. A launcher change fails the check by default for that reason.
- A server can answer one client differently from another. The hashes cover what the check was shown.
A pin accepted in your repository is a commit. It is not a named person’s approval, and it is not a record an outsider can check. If your partner bank, customer or auditor will ask who approved what your agent may call, and whether the log was changed afterwards, that is what Coriqo keeps.
Bring the agent you are about to ship and we will map it.