Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

feat(docs): add Sanity MCP integration to the registry (#4073)

Matt Lewisf8bf204d65b5
diff --git a/.changeset/sanity-mcp-registry.md b/.changeset/sanity-mcp-registry.md
new file mode 100644
index 000000000..00a950413
--- /dev/null
+++ b/.changeset/sanity-mcp-registry.md
@@ -0,0 +1,5 @@
+---
+"eve": patch
+---
+
+Add the Sanity MCP integration to the registry. Use `eve add connection/sanity` to connect an existing Sanity account through Vercel Connect OAuth.
diff --git a/apps/docs/lib/integrations/connection-setup.test.ts b/apps/docs/lib/integrations/connection-setup.test.ts
index 56a14bf40..aca8db4cd 100644
--- a/apps/docs/lib/integrations/connection-setup.test.ts
+++ b/apps/docs/lib/integrations/connection-setup.test.ts
@@ -6,6 +6,7 @@ import {
renderConnectionVariants,
} from "./connection-setup";
import { getIntegration } from "./data";
+import { integrationMarkdown } from "./discovery";
describe("Browser Use connection setup", () => {
it("generates server-side header authentication without Connect", () => {
@@ -70,6 +71,20 @@ describe("Neon connection setup", () => {
});
});
+describe("Sanity connection setup", () => {
+ it("documents automatic MCP registration and user OAuth for Sanity", () => {
+ const integration = getIntegration("sanity")!;
+ const setup = buildConnectionSetup(integration);
+
+ expect(buildConnectionInstall(integration)).toContain("eve add connection/sanity");
+ expect(setup.variants["mcp:user"]).toContain('url: "https://mcp.sanity.io"');
+ expect(setup.variants["mcp:user"]).toContain('auth: connect("sanity/sanity")');
+ expect(integrationMarkdown(integration)).toContain(
+ "vercel connect create sanity --name sanity --connection-method mcp",
+ );
+ });
+});
+
describe("Shopify connection setup", () => {
it("uses hand-authored sections without generating authentication variants", () => {
const integration = getIntegration("shopify")!;
diff --git a/apps/docs/lib/integrations/data.ts b/apps/docs/lib/integrations/data.ts
index cac2c7e8e..b2cfbb310 100644
--- a/apps/docs/lib/integrations/data.ts
+++ b/apps/docs/lib/integrations/data.ts
@@ -2202,6 +2202,42 @@ const connectionPresentations: Record<string, ConnectionPresentation> = {
keywords: ["mcp", "payments", "settlements", "oauth", "connect"],
authModes: ["user"],
},
+ sanity: {
+ logo: "sanity",
+ docsHref: "https://www.sanity.io/docs/ai/mcp-server",
+ keywords: ["mcp", "cms", "content", "groq", "schemas", "releases", "oauth", "connect"],
+ authModes: ["user"],
+ connectors: { user: { uid: "sanity/sanity", service: "sanity", name: "sanity" } },
+ quickStart: `Create \`agent/connections/sanity.ts\`:
+
+\`\`\`ts
+import { connect } from "@vercel/connect/eve";
+import { defineMcpClientConnection } from "eve/connections";
+
+export default defineMcpClientConnection({
+ url: "https://mcp.sanity.io",
+ protocolVersionDiscovery: false,
+ description:
+ "Sanity: query content with GROQ, edit documents, inspect schemas, and manage releases.",
+ auth: connect("sanity/sanity"),
+});
+\`\`\`
+
+Sanity requires the \`initialize\` handshake, so keep \`protocolVersionDiscovery: false\`. See [MCP protocol discovery](/docs/connections/mcp#configure-protocol-discovery).
+
+Each authenticated user authorizes their Sanity account in the browser before the first tool call.`,
+ configure: `Link your project, register the MCP connector, and pull OIDC locally:
+
+\`\`\`bash
+vercel link
+vercel connect create sanity --name sanity --connection-method mcp
+vercel env pull
+\`\`\`
+
+The MCP method registers the OAuth client automatically. Sign in with a Sanity account that has access to the projects and datasets your agent needs, and copy the returned connector UID into \`connect()\`.
+
+The MCP server can edit and publish content; use [tool filters and approval gates](/docs/connections/mcp#tool-filters) to control these actions.`,
+ },
sentry: {
logo: "sentry",
docsHref: "/docs/connections/mcp",
diff --git a/apps/docs/registry.json b/apps/docs/registry.json
index cbda3743b..b3ff9f02c 100644
--- a/apps/docs/registry.json
+++ b/apps/docs/registry.json
@@ -1303,6 +1303,41 @@
}
]
},
+ {
+ "name": "connection/sanity",
+ "type": "registry:item",
+ "title": "Sanity",
+ "description": "Query and edit Sanity content, inspect schemas, and manage releases.",
+ "meta": {
+ "eve": {
+ "setup": {
+ "command": "eve",
+ "package": "eve",
+ "bin": "eve",
+ "args": [
+ "integration",
+ "connect",
+ "sanity",
+ "sanity",
+ "sanity",
+ "--connection-method",
+ "mcp"
+ ]
+ },
+ "requires": ">=0.55.0"
+ }
+ },
+ "dependencies": [
+ "@vercel/connect"
+ ],
+ "files": [
+ {
+ "path": "registry/connections/sanity.ts",
+ "type": "registry:file",
+ "target": "agent/connections/sanity.ts"
+ }
+ ]
+ },
{
"name": "connection/sentry",
"type": "registry:item",
diff --git a/apps/docs/registry/connections/sanity.ts b/apps/docs/registry/connections/sanity.ts
new file mode 100644
index 000000000..644d0cf43
--- /dev/null
+++ b/apps/docs/registry/connections/sanity.ts
@@ -0,0 +1,10 @@
+import { connect } from "@vercel/connect/eve";
+import { defineMcpClientConnection } from "eve/connections";
+
+export default defineMcpClientConnection({
+ url: "https://mcp.sanity.io",
+ protocolVersionDiscovery: false,
+ description:
+ "Sanity: query content with GROQ, edit documents, inspect schemas, and manage releases.",
+ auth: connect("sanity"),
+});
diff --git a/apps/docs/scripts/validate-connection-registry.ts b/apps/docs/scripts/validate-connection-registry.ts
index 3663f1e67..0b32a78e0 100644
--- a/apps/docs/scripts/validate-connection-registry.ts
+++ b/apps/docs/scripts/validate-connection-registry.ts
@@ -59,6 +59,7 @@ const CONNECT_CREATION_TYPES: Readonly<Record<string, string>> = {
};
const CONNECT_METHODS: Readonly<Record<string, "mcp" | "oauth">> = {
agentcard: "mcp",
+ sanity: "mcp",
vercel: "mcp",
};
const CONNECT_PRINCIPAL_TYPES: Readonly<Record<string, "app" | "user">> = {
diff --git a/packages/eve-catalog/src/index.ts b/packages/eve-catalog/src/index.ts
index 7e624003f..48ba01d4a 100644
--- a/packages/eve-catalog/src/index.ts
+++ b/packages/eve-catalog/src/index.ts
@@ -753,6 +753,18 @@ export const INTEGRATIONS: readonly IntegrationEntry[] = [
mcp: { url: "https://mcp.razorpay.com/mcp" },
},
},
+ {
+ slug: "sanity",
+ name: "Sanity",
+ kind: "connection",
+ tagline: "Query and edit Sanity content, inspect schemas, and manage releases.",
+ surfaces: { scaffoldable: false, registry: true, gallery: true },
+ connection: {
+ description:
+ "Sanity: query content with GROQ, edit documents, inspect schemas, and manage releases.",
+ mcp: { url: "https://mcp.sanity.io" },
+ },
+ },
{
slug: "sentry",
name: "Sentry",