> ## Documentation Index
> Fetch the complete documentation index at: https://docs.toolrouter.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# VS Code / Copilot Integration

> Learn how to integrate VS Code with ToolRouter

This guide will walk you through integrating VS Code with ToolRouter to enable tool use capabilities.

## Setup

Create a ToolRouter Stack -> Create SSE Client -> Copy VS Code Implementation code

<img src="https://mintcdn.com/toolrouter-d229a439/7tOBXW7qY4jq-dnn/images/integration/vscode/0.png?fit=max&auto=format&n=7tOBXW7qY4jq-dnn&q=85&s=d724a7173a566f8cd87b53d04e280a61" alt="VS Code 1" width="1306" height="1342" data-path="images/integration/vscode/0.png" />

Open VS Code and press `Cmd+Shift+P` (Mac) or `Ctrl+Shift+P` (Windows/Linux) to open the Command Palette. Search for "MCP: Add Server" and select it.

<img src="https://mintcdn.com/toolrouter-d229a439/7tOBXW7qY4jq-dnn/images/integration/vscode/1.png?fit=max&auto=format&n=7tOBXW7qY4jq-dnn&q=85&s=1671f2397fb8995178629b6e8c4bcbe8" alt="VS Code 2" width="2048" height="1536" data-path="images/integration/vscode/1.png" />

Choose MCP: Add Server -> HTTP (server-sent events)

<img src="https://mintcdn.com/toolrouter-d229a439/7tOBXW7qY4jq-dnn/images/integration/vscode/2.png?fit=max&auto=format&n=7tOBXW7qY4jq-dnn&q=85&s=ad08804a8cb6cc08dfdac665da9b8485" alt="VS Code 3" width="2050" height="1538" data-path="images/integration/vscode/2.png" />

Enter the SSE URL copied from the ToolRouter Implementation code

<img src="https://mintcdn.com/toolrouter-d229a439/7tOBXW7qY4jq-dnn/images/integration/vscode/3.png?fit=max&auto=format&n=7tOBXW7qY4jq-dnn&q=85&s=81b58db7e6fdda3ece7a1f948c746f41" alt="VS Code 4" width="1394" height="302" data-path="images/integration/vscode/3.png" />

Enter a suitable name for the server

<img src="https://mintcdn.com/toolrouter-d229a439/7tOBXW7qY4jq-dnn/images/integration/vscode/4.png?fit=max&auto=format&n=7tOBXW7qY4jq-dnn&q=85&s=0a864a12cc0223ba3c86a4905c153840" alt="VS Code 5" width="1322" height="270" data-path="images/integration/vscode/4.png" />

You should now see all the tools available in the ToolRouter stack.
