mcp
v0.1.5MCP server for Certago - ask an AI assistant about your own GRC workspace
Agent access to a Certago workspace over the Model Context Protocol. Design and rationale in docs/mcp.md; this file is how to run it. So it can file a task, raise a risk, log an incident, raise a finding and comment on things. It cannot mark a control effective, close a finding, approve a document, acknowledge a policy on your behalf, or delete anything at all. Raising versus closing a finding is the clearest illustration of how the limit works.
Summary extracted from the README.
Certago MCP server
Agent access to a Certago workspace over the Model Context Protocol. Design and
rationale in docs/mcp.md; this file is how to run it.
Mostly reads. Six tools write, and only if the token was issued with the matching permission and the workspace has enabled agent writes. The rule they obey is narrower than "agents can write":
An agent may add work and observations. It may not delete, and it may not make a compliance assertion.
So it can file a task, raise a risk, log an incident, raise a finding and comment on things. It cannot mark a control effective, close a finding, approve a document, acknowledge a policy on your behalf, or delete anything at all.
Raising versus closing a finding is the clearest illustration of how the limit
works. The same findings.write permission admits POST /findings and refuses
PATCH /findings/:id, because filing a finding is an observation and closing
one is a statement that it was dealt with. So an agent can read an audit report
and import its findings, each linked to the engagement and each starting open,
and a human still owns every verdict.
Enabling it on a workspace
Two independent things have to be true, and either one turned off stops all agent access immediately:
- Agent access is switched on for the workspace. Off by default, including for workspaces that already existed. Checked when the token is resolved, so turning it off takes effect on the next call rather than the next token.
- A live token exists, issued from Settings by someone holding
members.manage.
For the write tools, a third:
- Agent writes are switched on, a separate toggle that is also off by default. Turning it off leaves every token working as read-only on its next call - nothing is revoked, so you can switch writes off during an incident without blinding the agents.
# issue a token (returns the plaintext once - it is not retrievable again)
curl -X PUT https://api.certago.dev/api/v1/agent-access \
-H "Authorization: Bearer <your session token>" -H 'x-tenant: acme' \
-H 'content-type: application/json' -d '{"enabled":true}'
curl -X POST https://api.certago.dev/api/v1/agent-access/tokens \
-H "Authorization: Bearer <your session token>" -H 'x-tenant: acme' \
-H 'content-type: application/json' -d '{"label":"Claude Desktop","expiresInDays":90}'
Running it
Published to npm, so there is nothing to clone or build. For Claude Desktop,
in claude_desktop_config.json:
{
"mcpServers": {
"certago": {
"command": "npx",
"args": ["-y", "@certago/mcp"],
"env": {
"CERTAGO_API_URL": "https://api.certago.dev",
"CERTAGO_MCP_TOKEN": "certago_mcp_..."
}
}
}
}
For Claude Code:
claude mcp add certago \
--env CERTAGO_API_URL=https://api.certago.dev \
--env CERTAGO_MCP_TOKEN=certago_mcp_... \
-- npx -y @certago/mcp
Settings -> AI agent access shows both of these with your own host filled in, next to the button that issues the token.
Which deployment am I talking to?
One package serves every Certago deployment, and CERTAGO_API_URL is the only
thing that differs - so it is worth knowing how to tell them apart:
api.certago.io |
production |
api.certago.dev |
staging |
| anything else | treated as non-production |
Three things surface it, because an answer from the wrong system is worse than no answer and a compliance question is one somebody may act on:
- The server's display title is
Certago (api.certago.io). - The session instructions tell the model which deployment it is reading, and say plainly when it is not production.
whoamireturnsdeploymentas its first field.
The Settings snippet also names the server certago-staging rather than
certago on a non-production host, so the two do not collide in one
claude_desktop_config.json and the client lists them separately.
From a checkout
Only needed if you are changing the server itself:
pnpm --filter @certago/mcp build
CERTAGO_API_URL=https://api.certago.dev \
CERTAGO_MCP_TOKEN=certago_mcp_... \
node apps/mcp/dist/main.js
Publishing a new version
Through the Publish MCP connector workflow (manual, with a version-bump
choice). Its NPM_TOKEN lives in the npm-publish GitHub Environment, not as
a repository secret: the token publishes code that runs on customers' machines,
which is a wider blast radius than the deploy key, and an environment secret is
invisible to every other workflow.
By hand, if you need to:
pnpm --filter @certago/mcp build # prepublishOnly does this too
cd apps/mcp && npm version patch && npm publish
files limits the tarball to dist and the README, so nothing from the
monorepo leaks into it. The package has no dependency on any other workspace
package, which is what makes publishing it alone possible.
What an agent can actually see
Less than the person who issued the token, never more. The permission set is
the intersection of three things, computed in app.resolve_mcp_token on
every call:
- the scopes the token was issued with - ticked per token, so one for triaging
tasks carries
tasks.writeand nothing else; - what the issuing user holds today, not when the token was minted, so demoting them narrows their tokens immediately;
- the
agent_readonlyandagent_writeroles, which are the most any token may ever hold.
A tenant admin's agent gets the ticked subset of the agent roles rather than
*. A token issued with nothing ticked is read-only across everything its
issuer can read.
Writes have a fourth gate that is not a permission: a route allowlist. The same
tasks.write that lets an agent file a task does not let it update or delete
one, because the permission is coarser than the action and the issuer meant the
first. A call refused that way answers 403 even though the token holds the
permission.
The workspace comes from the token. No tool takes a tenant argument and there is no way to ask for a different one.
Revoking the issuing user's membership kills their tokens, because the resolve step requires a live membership. Offboarding someone therefore offboards their agent, which is the behaviour you want and the one that is easy to get wrong.
Tools
Twenty-seven, shaped like questions rather than endpoints. Twenty read; seven
write and are annotated so a client can confirm with you before calling one -
a courtesy, since permission is decided in the API and not here. get_posture_overview and
list_upcoming_deadlines are the two that answer most things - the latter spans
seven registers in one call. whoami reports the permissions actually granted,
which is the fastest way to understand a 403.
Six registers (controls, evidence, policies, vendors, audits, assessments) take
no query parameters on the API, so those tools fetch and filter in process.
Every list caps its output and reports total and truncated, because silently
returning the first 50 rows reads as "that is all of them".
Transport
stdio today. Remote (Streamable HTTP + OAuth 2.1) is Phase 1 in docs/mcp.md
and needs Zitadel's token-exchange and dynamic-client-registration support
confirmed first. stdio needs a local credential either way, so none of this is
throwaway.