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}/requestExamples:
- Local development:
http://localhost:8787/v1/mcp/my-project/request - Production:
https://gateway.routermcp.com/v1/mcp/my-project/request
Open Copilot Settings
- Open Command Palette (
Cmd/Ctrl + Shift + P) - Search for "Copilot: Open Settings" or go to:
- File → Preferences → Settings
- 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:
| Setting | Value |
|---|---|
| Type | Remote/HTTP (Streamable) |
| URL | https://gateway.routermcp.com/v1/mcp/your-project/request |
| Authorization | Bearer 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
| Issue | Solution |
|---|---|
| 404 Method not found | Ensure URL has /request suffix and /v1/ prefix |
| 401 Unauthorized | Add Authorization: Bearer {key} header |
| Timeout/connection fail | Verify 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}/sseOnly 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"
}
}
}
}