Skip to content
← Developer Hub

Developer Hub

MCP with Windsurf

Configure the raia MCP Server in Windsurf and other IDEs — including agent skill setup, API key generation, and chat integration.

01

Overview

This guide provides step-by-step instructions for configuring the raia MCP (Model Context Protocol) Server to connect with your raia agent through IDEs like Windsurf or Cursor.

Windsurf Docs → MCP configuration

02

Configure MCP Skill for Agent

  1. 01

    Navigate to agent skills in the Raia UI.

  2. 02

    Select the MCP skill and click "Set up MCP Skill".

  3. 03

    Generate a unique API key (UUID) for your agent.

03

Get API Key and Server URL

  • Copy the generated API key from the MCP skill page.
  • Use the server URL: https://api-dev.raia2.com/mcp
04

Configure MCP Connection in IDE

Add the raia MCP server to your IDE with the name, server URL, and Authorization header:

json
"raia": {
  "disabled": false,
  "headers": {
    "Authorization": "uuid-dsfsdfsdfasdfasdfasdfasdf"
  },
  "serverUrl": "https://api.raia2.com/mcp"
}

Windsurf

Add a server configuration with name, serverUrl, and an Authorization header.

Cursor

Configure mcp.servers with the URL and Authorization header.

Generic

Use YAML format with name, url, and Authorization header.
05

How the IDE Knows When to Call MCP

The IDE automatically detects and calls your MCP server when:

  • User asks questions — when you type questions or prompts in the IDE's chat/interface.
  • Tool invocation needed — when the AI determines it needs external tools or capabilities.
  • Context requires agent interaction — when the conversation requires your specific agent's knowledge or skills.
  • Explicit MCP calls — when you directly reference MCP-enabled features in the IDE.

Detection process:

  1. 01

    The IDE analyzes user input for agent-related queries.

  2. 02

    It checks available MCP servers for matching capabilities.

  3. 03

    Requests are routed to your raia agent through the configured MCP endpoint.

  4. 04

    The agent processes the request and returns responses through MCP.

06

Ask Questions About Your Agent

To ask Raia for coding help in your IDE:

Direct questions in chat

Type your coding question directly in the IDE's MCP-enabled chat interface:

  • "How do I implement a React component for user authentication?"
  • "Can you help me debug this TypeScript error?"
  • "What's the best way to structure this API endpoint?"

Context-aware requests

The IDE will automatically route to Raia when:

  • You're working on code related to your agent's domain expertise.
  • You need help with Raia-specific implementations.
  • Your question matches the agent's configured capabilities.

Explicit agent reference

Mention Raia specifically:

  • "Raia, can you help me optimize this database query?"
  • "Ask Raia about the best practices for this use case."