MCP with VS Code

Overview

This guide walks you through installing and configuring the raia MCP (Model Context Protocol) Server in Visual Studio Code.

Once configured, VS Code can connect to raia’s MCP endpoint and expose raia tools directly inside your editor.


Prerequisites

Before starting, make sure you have:

  • ✅ Visual Studio Code installed (v1.103+ recommended)

  • ✅ A valid raia MCP endpoint URL

  • ✅ A valid raia API key

  • ✅ Internet access to reach:

    https://api.raia2.com/mcp

Step 1 — Install Required MCP Support in VS Code

VS Code requires MCP support to connect to HTTP-based MCP servers.

1. Open Extensions

  • Click the Extensions icon in the left sidebar.

  • Search for:

2. Install an MCP-Compatible Extension

You can use:

  • Azure MCP Server (Microsoft)

  • Or another MCP-compatible extension that supports HTTP servers

Click Install.

Note: If prompted about Restricted Mode, click Trust to enable full functionality.


Step 2 — Add the raia MCP Server

1. Open Command Palette

Mac:

Windows:

2. Type:

3. Choose Server Type

Select:

4. Enter the Server URL

When prompted, enter:

Press Enter.


Step 3 — Configure Authorization Header

The raia MCP server requires an API key.

Open User MCP Configuration

In Command Palette:

This opens your mcp.json file.


Update mcp.json

Replace or update the configuration so it looks like this:

🔑 Important

  • Use the Key provided in the raia MCP Skill (not the Agent API Ket)

  • Do not include Bearer before your API key.

  • Do not include extra spaces.


Step 4 — Restart MCP Server

After saving:

  1. Open Command Palette

  2. Run:

  1. Select raia-mcp

  2. Click Start Server


Step 5 — Verify It’s Running

Go to:

Select:

You should see logs similar to:

If you see:

✅ Setup is successful.


Optional: Enable Auto-Start

In VS Code Settings:

  1. Search:

  1. Set to:

This prevents having to manually restart the MCP server.


Example of it working:

Common Error:

This error happens due to CORS. To fix follow these instructions:

Put these instructions into the AI Chat in VS Code

Last updated