Tool type: AI coding assistant (VS Code extension) Website: github.com/features/copilot Transport support: stdio, SSE, Streamable HTTP (via VS Code's MCP support)
GitHub Copilot uses VS Code's built-in MCP server configuration. Create or edit .vscode/mcp.json in your project:
{
"servers": {
"pieces": {
"type": "http",
"url": "http://localhost:39300/model_context_protocol/2025-03-26/mcp"
}
}
}Or using SSE:
{
"servers": {
"pieces": {
"type": "sse",
"url": "http://localhost:39300/model_context_protocol/2024-11-05/sse"
}
}
}Use this when VS Code / Copilot 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 VS Code with the GitHub Copilot Chat extension active
- Run "MCP: List Servers" from the Command Palette
- Confirm "pieces" is connected
- In Copilot Chat, ask about your work history
| Issue | Solution |
|---|---|
| MCP tools not available | Ensure GitHub Copilot Chat extension is up to date |
| Server not connecting | Check PiecesOS port; try both http and sse types |
| Agent mode needed | MCP tools may only be available in Copilot's agent mode, not inline suggestions |
- 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 |