RouterMCP
Client Integrations

VS Code + GitHub Copilot

Connect VS Code with GitHub Copilot to RouterMCP for enhanced AI-assisted development.

VS Code + GitHub Copilot

GitHub Copilot in VS Code supports remote MCP servers via Streamable HTTP. Connect it to RouterMCP to extend Copilot's capabilities.

Prerequisites

  • VS Code with GitHub Copilot extension
  • MCP support enabled in Copilot (check extension settings)
  • RouterMCP project configured

Server URL

https://gateway.routermcp.com/v1/mcp/{project_slug}/request

Examples:

  • Local development: http://localhost:8787/v1/mcp/my-project/request
  • Production: https://gateway.routermcp.com/v1/mcp/my-project/request

Open Copilot Settings

  1. Open Command Palette (Cmd/Ctrl + Shift + P)
  2. Search for "Copilot: Open Settings" or go to:
    • FilePreferencesSettings
    • Search for "GitHub Copilot"

Find MCP Section

Look for the "Model Context Protocol (MCP)" section in Copilot settings.

Add RouterMCP Server

Add a new server with these settings:

SettingValue
TypeRemote/HTTP (Streamable)
URLhttps://gateway.routermcp.com/v1/mcp/your-project/request
AuthorizationBearer your_api_key (if required)

Save and Reload

Save settings and reload VS Code if prompted.

Verify Connection

Ask Copilot to "list available MCP tools" or similar. RouterMCP returns namespaced tools plus meta-tools if enabled.

Troubleshooting

IssueSolution
404 Method not foundEnsure URL has /request suffix and /v1/ prefix
401 UnauthorizedAdd Authorization: Bearer {key} header
Timeout/connection failVerify you're using the Worker host, not Dashboard

SSE Transport

Copilot primarily uses Streamable HTTP. RouterMCP also exposes an SSE bridge at:

GET/POST /v1/mcp/{project_slug}/sse

Only use this if your client explicitly requires SSE transport.

Configuration via settings.json

You can also configure directly in VS Code's settings.json:

{
  "github.copilot.mcp.servers": {
    "routermcp": {
      "type": "streamable-http",
      "url": "https://gateway.routermcp.com/v1/mcp/my-project/request",
      "headers": {
        "Authorization": "Bearer rmc_your_key"
      }
    }
  }
}

On this page