Tool type: Code editor (desktop) Website: code.visualstudio.com Transport support: stdio, SSE (legacy), Streamable HTTP
| Scope | Path |
|---|---|
| Workspace | .vscode/mcp.json in your project root |
| User (global) | Via Settings > search "MCP Servers" |
VS Code uses a servers root key (not mcpServers). The transport type is set with a type field.
Recommended when PiecesOS and VS Code are on the same machine.
{
"servers": {
"pieces": {
"type": "http",
"url": "http://localhost:39300/model_context_protocol/2025-03-26/mcp"
}
}
}{
"servers": {
"pieces": {
"type": "sse",
"url": "http://localhost:39300/model_context_protocol/2024-11-05/sse"
}
}
}{
"servers": {
"pieces": {
"type": "stdio",
"command": "npx",
"args": ["-y", "some-mcp-package"],
"env": {}
}
}
}Use this when VS Code is running on a different machine from PiecesOS. For setup, see: Connecting to PiecesOS from the Outside World via Ngrok.
{
"servers": {
"pieces": {
"type": "http",
"url": "https://YOUR_NGROK_URL.ngrok.app/model_context_protocol/2025-03-26/mcp"
}
}
}- Open Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
- Search for "MCP: Add Server"
- Select HTTP or SSE as the transport type
- Enter the Pieces MCP URL
- Name it "pieces"
To update the URL: edit .vscode/mcp.json and save. VS Code picks up changes without a restart.
To update via Command Palette: "MCP: Edit Server" > select "pieces" > update the URL.
- Open Command Palette and run "MCP: List Servers"
- Confirm "pieces" shows as connected
- Open GitHub Copilot Chat and ask about available MCP tools
| Issue | Solution |
|---|---|
| Server not connecting | Check that PiecesOS is running and the port is correct |
type field not recognized |
Update VS Code to latest; MCP support requires recent versions |
| Tools not visible in Copilot | Ensure the GitHub Copilot Chat extension is installed and active |
| Config at wrong location | The file must be .vscode/mcp.json (not .cursor/mcp.json or mcp.json at root) |
- Pieces MCP and LTM Tools Reference — Complete reference for all 39 tools available to your agents
- Connecting to PiecesOS via Ngrok — Expose your local Pieces server for remote access
| ← Back to All Agent Setup Guides |