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.
Configure MCP Skill for Agent
- 01
Navigate to agent skills in the Raia UI.
- 02
Select the MCP skill and click "Set up MCP Skill".
- 03
Generate a unique API key (UUID) for your agent.
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
Configure MCP Connection in IDE
Add the raia MCP server to your IDE with the name, server URL, and Authorization header:
"raia": {
"disabled": false,
"headers": {
"Authorization": "uuid-dsfsdfsdfasdfasdfasdfasdf"
},
"serverUrl": "https://api.raia2.com/mcp"
}Windsurf
Cursor
mcp.servers with the URL and Authorization header.Generic
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:
- 01
The IDE analyzes user input for agent-related queries.
- 02
It checks available MCP servers for matching capabilities.
- 03
Requests are routed to your raia agent through the configured MCP endpoint.
- 04
The agent processes the request and returns responses through MCP.
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."