Agent Toolkit

v2.19.0Coding Agentsstable

Tool name: getUserId Description: Get the userId of the current authenticated user if signed in, otherwise return null. Use this tool when you need to identify the current user but don't need their pr

agent-rulesai-rulesclaude-codeclaude-code-plugincursor-ai
Share:
139
Stars
0
Downloads
0
Weekly
0/5

What is Agent Toolkit?

Agent Toolkit is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to tool name: getuserid description: get the userid of the current authenticated user if signed in, otherwise return null. use this tool when you need to identify the current user but don't need their pr

Tool name: getUserId Description: Get the userId of the current authenticated user if signed in, otherwise return null. Use this tool when you need to identify the current user but don't need their pr

This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • getUserId
  • getUser
  • getUserCount
  • updateUser
  • updateUserPublicMetadata

Use Cases

Identify authenticated users in MCP clients
Provide agent utilities and helpers
Integrate with Claude Code and Cursor
sanity-io

Maintainer

LicenseMIT
Languagejavascript
Versionv2.19.0
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @stripe/agent-toolkit

Manual Installation

npx -y @stripe/agent-toolkit

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Agent Toolkit

The Sanity Agent Toolkit MCP server connects AI coding assistants — Claude Code, Cursor, VS Code, and others — directly to your Sanity content platform, enabling full lifecycle content management through natural language. It exposes tools for querying documents with GROQ, creating and editing content, publishing and unpublishing documents, managing Content Releases, deploying schemas and studios, generating images, and reading Sanity documentation. Authentication uses OAuth by default, making setup a single command with no manual token management required.

Prerequisites

  • A Sanity project (create one free at https://www.sanity.io)
  • Node.js 18+ installed
  • The Sanity CLI installed (`npm install -g sanity`) for the recommended auto-configure flow
  • An MCP-compatible client such as Claude Code, Cursor, or VS Code with MCP support
1

Auto-configure MCP for your Sanity project (recommended)

Run the Sanity CLI's MCP configure command from your project root. It detects your client (Cursor, Claude Code, VS Code) and writes the configuration automatically.

npx sanity@latest mcp configure
2

Alternative: add manually to Claude Code

If you prefer manual setup or auto-configure does not cover your client, add the server directly via the Claude Code CLI.

claude mcp add Sanity -t http https://mcp.sanity.io --scope user
3

Alternative: add as a Claude Code plugin

You can also install the server as a Claude Code plugin for project-scoped access.

/plugin install sanity@claude-plugins-official
4

Authenticate with your Sanity account

On first use, the server will initiate an OAuth flow. Follow the browser prompt to log in with your Sanity account — no API token needs to be generated or pasted manually.

5

Verify access with a whoami check

Ask your AI assistant to call the whoami tool to confirm you are authenticated and the correct Sanity project is accessible.

Agent Toolkit Examples

Client configuration

claude_desktop_config.json entry for the Sanity MCP server using HTTP transport with OAuth (token-based auth shown as alternative).

{
  "mcpServers": {
    "Sanity": {
      "type": "http",
      "url": "https://mcp.sanity.io"
    }
  }
}

Prompts to try

Example prompts that exercise the Sanity agent toolkit's document, schema, and media tools.

- "Query all published blog posts in my Sanity project and list their titles and slugs"
- "Create a new blog post document with title 'Getting Started with Sanity' and a draft status"
- "Deploy my Sanity schema changes to the production dataset"
- "Generate an image of a sunset over mountains and upload it to my Sanity media library"
- "Show me the available content releases and create a new release called 'Summer Campaign'"

Troubleshooting Agent Toolkit

OAuth flow does not open a browser or authentication times out

Ensure your machine can reach https://mcp.sanity.io and that your browser is not blocking pop-ups. If running in a headless environment, use token-based authentication by adding an `Authorization: Bearer <token>` header — generate a token at https://www.sanity.io/manage under your project's API settings.

Tool calls return 'project not found' or wrong dataset

The Sanity MCP server infers the project ID from your authenticated account. If you have multiple projects, use the `get_project_studios` tool to list them and confirm the right project is selected. You may need to set the project context explicitly in your queries.

Schema deployment fails with permission error

The authenticated Sanity user must have Administrator or Developer permissions on the project. Check your role at https://www.sanity.io/manage under the project's Members section and request an upgrade if needed.

Frequently Asked Questions about Agent Toolkit

What is Agent Toolkit?

Agent Toolkit is a Model Context Protocol (MCP) server that tool name: getuserid description: get the userid of the current authenticated user if signed in, otherwise return null. use this tool when you need to identify the current user but don't need their pr It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Agent Toolkit?

Install via npm with the command: npx -y @stripe/agent-toolkit. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Agent Toolkit?

Agent Toolkit works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Agent Toolkit free to use?

Yes, Agent Toolkit is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Coding Agents MCP Servers

Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "agent-toolkit": { "command": "npx", "args": ["-y", "@stripe/agent-toolkit"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Agent Toolkit?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides