Skip to main content
This guide walks you through setting up sudocode’s MCP (Model Context Protocol) server with various AI agents. The MCP server allows any agent to directly interact with your sudocode project—creating issues, managing specs, and providing feedback.

Prerequisites

Before setting up any agent, make sure you have:
  1. sudocode CLI installed globally (npm install -g sudocode)
  2. A sudocode project initialized (sudocode init)
If you haven’t completed these prerequisites, see the MCP Server Quick Setup guide first.

Select Your Agent

Choose your AI assistant to see specific setup instructions:

Claude Code

Claude Code has the simplest setup thanks to the plugin marketplace:
Version requirement: Make sure you’re running Claude Code version 2.0.35 or higher.Check your version:
claude --version
If your version is lower than 2.0.35, update Claude Code:
claude update
1

Add sudocode plugin from marketplace

claude plugin marketplace add sudocode-ai/sudocode
✓ Added sudocode-ai/sudocode to plugin marketplace
2

Install the plugin

claude plugin install sudocode
✓ Installed sudocode plugin
✓ MCP server configured
3

Verify installation

Start Claude Code and test the integration:
claude
Then ask Claude:
Can you create a "Hello World" issue?
If you see Claude using tools like plugin:sudocode:sudocode - upsert_issue, the setup is working!
Claude Code is now configured with sudocode! The plugin automatically handles MCP server configuration and working directory detection.

Codex

Codex is not currently supported, but we will support it soon!
If you’d like to see Codex support prioritized, please open a discussion to let us know. We’re actively working on expanding agent compatibility.

Cursor

Cursor uses an MCP configuration file in the .cursor directory of your project root.

Setup the MCP Server

1

Create .cursor directory

In your project root directory, create a .cursor directory if it doesn’t exist:
mkdir -p .cursor
2

Create or edit .cursor/mcp.json

Open or create .cursor/mcp.json and add the following configuration:
{
  "mcpServers": {
    "sudocode": {
      "command": "sudocode-mcp"
    }
  }
}
If you already have other MCP servers configured, just add the "sudocode" entry inside the existing "mcpServers" object.
3

Save the file

Save the .cursor/mcp.json file.

Enable the MCP Server

After creating the configuration (using either option above), you need to enable the MCP server in Cursor: Option A: Click Enable (when prompted) When Cursor detects the new MCP configuration, an Enable button will appear on the left side. Click it to activate the sudocode MCP server. Cursor showing Enable button for sudocode MCP server Option B: Enable via Settings Alternatively, you can manually enable the MCP server:
  1. Go to Cursor > Settings > Cursor Settings
  2. Enable the MCP server
Cursor Settings page showing MCP enable option
Restart may be required, to see the MCP Server under the list of tools! Once you enable the MCP server, it will be active immediately.

Verify Setup

Test that sudocode is working in Cursor by asking it to create an issue:
Can you create a "Hello World" issue using sudocode?
If the setup is working, you’ll see Cursor use the sudocode MCP tools: Cursor successfully creating an issue using sudocode MCP
Cursor is now configured with sudocode! The MCP server will automatically run when you use sudocode tools in Cursor.

VS Code

VS Code supports MCP through workspace configuration. You can set it up using the Command Palette or by creating a configuration file:

Setup the MCP Server

If you prefer to configure manually or want to automate setup:
1

Create or update configuration

Run this command in your project root to create/update the MCP configuration:
mkdir -p .vscode && \
if [ -f .vscode/mcp.json ]; then \
  jq '.servers["sudocode-mcp"] = {"type": "stdio", "command": "sudocode-mcp", "args": []}' .vscode/mcp.json > .vscode/mcp.json.tmp && \
  mv .vscode/mcp.json.tmp .vscode/mcp.json; \
else \
  echo '{"servers":{"sudocode-mcp":{"type":"stdio","command":"sudocode-mcp","args":[]}},"inputs":[]}' | jq '.' > .vscode/mcp.json; \
fi
  • Creates .vscode/ directory if it doesn’t exist
  • If mcp.json exists, uses jq to add the sudocode-mcp server
  • If mcp.json doesn’t exist, creates it with the sudocode-mcp configuration
  • Preserves any existing MCP servers in the file
Note: This command requires jq (JSON processor). Install it with:
  • macOS: brew install jq
  • Ubuntu/Debian: sudo apt-get install jq
  • Other: See jq installation
2

Alternative: Create file manually

Or simply create .vscode/mcp.json with this content:
{
  "servers": {
    "sudocode-mcp": {
      "type": "stdio",
      "command": "sudocode-mcp",
      "args": []
    }
  },
  "inputs": []
}
3

Reload VS Code

Reload VS Code to apply the configuration:
  • Press Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows/Linux)
  • Select “Developer: Reload Window”

Verify Setup

Test that MCP tools are available in VS Code:
1

Test sudocode integration

Open Github Copilot, and just ask:
Can you create a "Hello World" issue using sudocode?
You should see a tool call like the one below. You should be all set!Example of sudocode creating a hello world issue

Other MCP-Compatible Agents

For any MCP-compatible AI agent, you can configure the sudocode MCP server manually:
1

Locate your agent's MCP configuration

Find where your agent stores MCP server configuration. This is typically in:
  • A config file (JSON, YAML, or TOML)
  • Application settings UI
  • Command-line arguments
Consult your agent’s documentation for “MCP server configuration” or “tool integration”.
2

Add sudocode MCP server

Add the following configuration to your agent’s MCP servers:JSON format:
    {
        "mcpServers": {
            "sudocode": {
            "command": "sudocode-mcp"
            }
        }
    }
YAML format:
mcpServers:
  sudocode:
    command: sudocode-mcp
Remember that this MCP configuration needs to be placed at the root of your project directory.
3

Restart your agent

Restart your AI agent to load the MCP server configuration.
4

Verify the integration

Test by asking your agent to interact with sudocode:
Can you create a "Hello World" issue?
If you see Claude using tools like plugin:sudocode:sudocode - upsert_issue, the setup is working!

Troubleshooting

Cause: sudocode CLI not installed or not in PATHSolution:
  1. Install sudocode globally:
    npm install -g sudocode
    
  2. Verify installation:
    sudocode-mcp --help
    
  3. If still not found, check your PATH includes npm global bin:
    npm config get prefix
    
Cause: MCP server not configured correctly or agent not restartedSolution:
  1. Verify MCP configuration in your agent’s settings
  2. Ensure command is set to sudocode-mcp
  3. Restart your agent completely
  4. Check agent logs for MCP server errors
Cause: Project not initializedSolution:
  1. Verify your project has .sudocode/ directory:
    ls -la .sudocode/
    
  2. Initialize if needed:
    sudocode init
    
Cause: Database not synced after git operationsSolution:
  1. Manually sync:
    sudocode sync
    
  2. Check that .sudocode/cache.db exists and is not corrupted
Cause: MCP server can’t access project filesSolution:
  1. Check directory permissions:
    ls -la .sudocode/
    
  2. Ensure .sudocode/ directory is readable and writable
  3. Verify the user running your agent has file access
  4. On macOS, check System Settings → Privacy & Security
Cause: Plugin not found in marketplace or network issueSolution:
  1. Verify you added the marketplace source:
    claude plugin marketplace add sudocode-ai/sudocode
    
  2. Check network connectivity
  3. Check Claude Code logs for detailed errors

What’s Next?

After setting up your agent, explore these resources:
Need help with a specific agent? Open a discussion and let us know which agent you’re using. We’ll prioritize documentation based on community needs!