---
title: "Add All Your MCP Servers to VS Code — onemcp"
description: "Give VS Code's agent every MCP tool through one endpoint. One `code --add-mcp`, credentials kept host-side, and no context bloat from tool definitions."
url: "https://onemcp.dev/use-cases/vs-code/"
---

# Every MCP server in VS Code, from one endpoint.

Add a single onemcp portal to VS Code instead of registering each MCP server by hand. Your agent gets the whole toolset — and the context window stays free for your code.

## Connect VS Code in three steps

1. **Build a portal** — Collect your MCP servers into a onemcp portal and authenticate each one once.
2. **Run one command** — `code --add-mcp` with your portal URL registers everything at once.
3. **Let the agent work** — VS Code discovers and calls your tools through Code Mode in a single round-trip.

Run in your terminal:

```
code --add-mcp '{"name":"onemcp","type":"http","url":"https://portal.onemcp.dev/mcp"}'
```

## Why route VS Code through onemcp

- **One endpoint to maintain** — Add or swap servers in the portal without touching VS Code settings again.
- **Host-side credentials** — OAuth and tokens live in the portal, never in your workspace config.
- **Room to think** — Three meta-tools replace hundreds of definitions, freeing the model's context.

## Register every tool with one command.

Create a portal, run one command, and let VS Code's agent take it from there.
