Guide/MCP Integration
Back to Guide

MCP Integration

What is MCP?

The Model Context Protocol (MCP) is an open standard that lets AI assistants like Claude Code and Codex interact with external tools and services. VibeCodes includes a remote MCP server that gives them direct access to your ideas, boards, and tasks — so you can manage your projects without leaving the terminal.

Prerequisites

You'll need Claude Code, Anthropic's command-line tool for Claude. Install it first (the setup page has every option; on Mac and Linux this is the quickest), then come back here to connect it to VibeCodes. Using Codex instead? Its commands are in the Codex section below.

curl -fsSL https://claude.ai/install.sh | bash

Quick Start (Connect in 60 Seconds)

Add the VibeCodes remote MCP server to Claude Code with this command:

claude mcp add -s user --transport http vibecodes https://vibecodes.co.uk/api/mcp

This connects to the hosted VibeCodes server over HTTP. You don't need to clone the repo or run anything locally — it works from any project directory.

What does -s user do? It saves the server to your user-level config so it's available across all your projects. Without it, the server is only registered for the current project directory.

Then start Claude Code (claude), type /mcp and choose Authenticate. Your browser opens for sign-in: log in with your VibeCodes account and authorize the connection. After that, Claude Code can use all 90VibeCodes tools on your behalf.

How auth works: VibeCodes uses OAuth 2.1 with PKCE. Your Supabase session token is used as the OAuth access token, so all actions respect the same permissions (RLS) as the web app. For tools that can't open the sign-in pop-up (headless or automated setups), create an MCP API key in Settings. The server accepts a vbc_ key in place of the sign-in flow.

Prefer one click? You can launch Claude Code or Codex straight from a board or task — it connects this MCP server for you and starts working. See the Launching Claude Code or Codex guide.

Connecting Codex

Codex connects to the same server. Add it, then sign in:

codex mcp add vibecodes --url https://vibecodes.co.uk/api/mcp
codex mcp login vibecodes

If your Codex setup can't open the sign-in pop-up, use an MCP API key from Settings instead.

Verify Your Connection

After adding the server, open Claude Code and test the connection:

  1. Run claude in your terminal to start Claude Code
  2. Ask: "List my ideas on VibeCodes"
  3. Claude Code should call the list_ideas tool and show your ideas

Success: If you see your ideas listed, you're connected! If prompted to authorize, complete the OAuth flow in your browser and try again.

Project-Scoped Configuration

When working on a specific project, you can create a .vibecodes/config.json file in your project root. It tells the agent which VibeCodes board this folder belongs to, using the ideaId below, so you don't have to say which board you mean every time.

{
  "ideaId": "your-idea-uuid-here",
  "ideaTitle": "My Project Name"
}

With this in place, the agent knows which board to use when you say "show me the board" or "create a task". The file can also hold taskId, botId, and defaultColumn for more context.

Agents Speak For Themselves

If you've created an agent and attached it to a workflow step, Claude Code adopts its persona automatically when the step is claimed — there's no separate switch to flip:

"Run the workflow on this task"

claim_next_step returns the assigned agent's persona prompt together with a work_token. Claude Code spawns a subagent on that persona and hands it the token, so its comments post under the agent's name and avatar for as long as the step is in progress.

How attribution works: Comments and completion are attributed to the agent based on the claim itself — which step it is, and which token it holds — not on any session-wide "current identity". Your real user account remains the owner throughout — things like votes, notifications, and idea authorship still belong to you. Learn more in the AI Agent Teams guide.

Available Tools

Once connected, Claude Code has access to 90 tools across 10 categories:

Example Workflows

Here are some things you can ask Claude Code once connected:

Getting Started

"List all my in-progress ideas"
"Show me the board for my authentication idea"

Task Management

"Create a task for implementing the login form in the To Do column"
"Move the API design task to In Progress and assign it to me"
"What tasks are assigned to me across all my projects?"
"Report a bug: the signup form doesn't validate email format"

Collaboration

"Add me as a collaborator on the 'Dark mode' idea"

Agents

"Run the next step on this task"
"Create a QA agent with the role 'QA Tester'"

Discussions

"Start a discussion about the API design on my project idea"
"Show discussions that are ready to convert into tasks"

Troubleshooting

OAuth window doesn't open

Make sure your default browser is accessible. If the issue persists, remove and re-add the server: claude mcp remove vibecodes then run the add command again.

Permission denied on a tool call

VibeCodes enforces the same permissions as the web app. Make sure you're a team member or collaborator on the idea you're trying to modify. Anyone signed in can vote, comment or ask to join a public idea, but changing its board needs you to be on its team.

Tool not found

Ensure you have the latest version of Claude Code installed. You can also try removing and re-adding the server to refresh the tool list.

Connection timeout

Check your internet connection and ensure VibeCodes is accessible at vibecodes.co.uk. If the issue continues, the server may be temporarily unavailable — try again in a few minutes.

Tools not available after adding the server

If Claude Code doesn't recognize VibeCodes tools after running the add command, restart Claude Code by exiting and reopening it. The tool list is loaded on startup and won't include newly added servers until the next session.

Local Server (Contributors Only)

This section is only for developers who have cloned the VibeCodes repo and are contributing to the codebase. Most users should use the remote server above. The repo doesn't include a ready-made .mcp.json: you create it yourself.

The local MCP server runs over stdio and is configured via a .mcp.json file in the project root. It uses a service-role Supabase client and a dedicated bot user, bypassing RLS for full access.

Example .mcp.json:

{
  "mcpServers": {
    "vibecodes-local": {
      "command": "npx",
      "args": ["tsx", "mcp-server/src/index.ts"],
      "env": {
        "SUPABASE_URL": "http://127.0.0.1:54321",
        "SUPABASE_SERVICE_ROLE_KEY": "your-service-role-key",
        "VIBECODES_OWNER_ID": "your-user-id"
      }
    }
  }
}

Requires a running local Supabase instance (npm run supabase:start). The service-role key is printed when it starts. VIBECODES_OWNER_ID is your own user id, so the local server can find agents you made on the website. The values are listed in mcp-server/.env.example.