Sanity
Query and edit Sanity content, schemas and releases through Sanity's MCP server.
Connect it with: MCP. Sanity's own documentation: https://www.sanity.io/docs/compute-and-ai/mcp-server.
What agents can do
Connect Sanity so the agents working your tasks can reach it. With it connected, they can:
- Query documents with GROQ and read a project's schema.
- Create or patch documents, and draft content into a release for review.
- Translate or rewrite content in place, keeping it as a draft.
Before you start
- A Sanity project and a user with access to its datasets.
- A Jaah account. Anyone can add a personal secret; an organization secret needs an Org Owner or Admin.
Connect with Sanity
Sanity's MCP server signs you in itself, so connecting needs no key and no app of your own.
- In Jaah, open Secrets and select New.
- Search for Sanity and select its card.
- Name the secret and choose who can use it (see Who can use it).
- Select Connect Sanity, sign in to Sanity in the window that opens, and approve the access it lists.
- You land back in Jaah on the new secret. Then link it to the projects whose agents should use it (see Use it in an agent session).
Connect with an API key
Sanity has no API key option in Jaah: connect with the sign-in above.
Use your own OAuth app
Not needed: Sanity's MCP server registers Jaah itself when you connect, so there is no app of your own to create.
Test the connection
Select Test on the secret. Jaah makes one read-only call to Sanity with the stored values and shows the result on the secret's page. Jaah also tests automatically when you save or reconnect.
Who can use it
Every secret has an owner, and the owner decides who can use it:
- Personal — only your own tasks can use it. This is the default.
- Organization — every task in the organization can use it. Only Org Owners and Admins can choose this.
- Attached to a project — every task on that project can use it, whoever started the task. See Attach a secret to a project.
More on owners and access: How secrets work.
Use it in an agent session
An agent asks for the secret with its credential_get tool, by the secret's path, when it needs it, and gets the values for that one call. The path is the owner's prefix and the secret's name:
org/<name>for an organization secret,projects/<project>/<name>for one attached to a project,me/<name>for your personal one.
A signed-in connection hands the agent a live access_token, with access_token_expires_at. Jaah refreshes it before it expires, so an agent never handles a refresh token.
Tell the agent in your task description which secret to use, for example “use the Sanity secret org/sanity”.
Link Sanity's MCP server to a project
Sanity also runs an MCP server, which gives agents ready-made Sanity tools instead of raw API calls. A project's agents get those tools only once you link the secret to the project:
- Open the project and its MCP tab.
- Select Link, pick the Sanity secret, and confirm.
- New tasks on the project start with the Sanity tools. Tasks already running keep the tools they started with.
Jaah connects agents to the server through a local bridge, so the token never appears in the agent's configuration or its transcript. A Google Antigravity session in the terminal runtime runs without these tools; on ACP it gets them.
Manage, rotate or disconnect
Everything is on the secret's page under Secrets:
- Reconnect: when Sanity ends the grant (a password change, a revoked app, an expired refresh), the secret shows Needs reconnect. Select Reconnect and sign in again; agents get the new token on their next call.
- Disconnect: select Delete. The stored values are destroyed and agents lose access on their next call. To end access at Sanity's side too, revoke Jaah in Sanity's settings.
Limitations
- Agents act as the signed-in user, with that user's role in each project.
- Edits land as drafts or in releases you can review in Sanity Studio before publishing; publishing is a separate step.
- Agents can do only what the connected Sanity account and its granted scopes allow.
Troubleshooting
Test says Sanity rejected the token (401)
The sign-in expired or was revoked at sanity.io/manage. Select Reconnect.
Agents cannot see a project
Your Sanity user is not a member of it. Ask a project admin to invite you at sanity.io/manage, then Reconnect.
The secret shows Needs reconnect
Sanity ended the grant (a password change, a revoked connection or a long idle period). Select Reconnect on the secret and sign in to Sanity again.
New tasks on the project have no Sanity tools
Link the secret on the project's MCP tab, then start a new task. Tasks already running keep the tools they started with, and an agent marked Not supported on that tab cannot load MCP servers.
Still stuck? Select Test and read the result: it names the value Sanity refused and the status it answered.
FAQ
Does Jaah need an app registered at Sanity?
No. Jaah registers itself with Sanity's sign-in server the first time anyone connects, and every later connection reuses that registration.
What does Test do?
It opens an MCP session with Sanity's server and lists its tools, then closes the session. It reads and changes nothing in your Sanity account.
Can Jaah or an admin see the key or token?
No. Jaah stores it encrypted and never shows it again. Only the tasks allowed to use the secret receive it, at the moment they ask for it.
Can I connect more than one Sanity account?
Yes. Add one secret per account, each with its own name, and tell the agent which one to use.