GitHub Copilot is extraordinary at completing the sentence you have already started typing. What it cannot do is remember why you typed a similar helper function in a completely different repository three weeks ago, or what Stack Overflow thread solved the exact compiler bug you hit before lunch. It lives inside your current workspace. The moment you switch projects, its short-term memory clears.
This is where developer fatigue sets in. At 365Finds, we spend our days jumping across microservices, testing scripts, web apps, and terminal logs. The friction is rarely writing raw code; the friction is context switching and snippet recovery.
Pieces approaches developer intelligence from the opposite end: personal long-term memory (LTM), intelligent snippet capture, and cross-application context tracking. By connecting Pieces to GitHub Copilot via the open Model Context Protocol (MCP), you turn GitHub Copilot from an isolated repository auto-complete tool into an assistant with full recall of your personal workflow history.
Here is 365Finds' guide on how this integration works, how to configure it cleanly, and where it genuinely pays off.
Why Pair Pieces with GitHub Copilot?
For a long time, developer communities treated Pieces and GitHub Copilot as competitors. Pieces shipped its own desktop copilot, and GitHub Copilot expanded into workspace chat. But at 365Finds, we always felt that was the wrong comparison.
GitHub Copilot dominates in-editor ghost text and IDE chat ergonomics. But GitHub Copilot is workspace-scoped: it inspects your active project tree, open tabs, and index files. It knows nothing about:
- The Python scraping script you saved to your desktop three weeks ago.
- The terminal curl command you tested against staging that fixed an obscure auth error.
- An OCR'd code block from a technical conference slide or a video tutorial.
- Cross-project utility functions you repeatedly rewrite because finding them takes longer than retyping them.
Pieces runs locally via PiecesOS as a continuous workflow engine. It indexes your clipboard, tracks saved snippets with automated metadata (origin URLs, language tags, dependencies), and maintains an opt-in Long-Term Memory (LTM) stream.
Recently, Pieces made a decisive architectural move: it sunset its standalone IDE plugins to bet entirely on the Model Context Protocol (MCP). Instead of forcing you into a proprietary sidebar, PiecesOS acts as a local MCP server that GitHub Copilot queries directly inside VS Code's Copilot Chat.
How the Pieces MCP Architecture Works
The integration operates across three layers:
- PiecesOS Engine: Runs quietly in the background on macOS, Windows, or Linux, maintaining your local vector store, snippet database, and LTM index.
- Local MCP Endpoint: PiecesOS serves an open SSE (Server-Sent Events) endpoint, typically over
http://localhost:39300/model_context_protocol/2024-11-05/sse. - GitHub Copilot Chat (Agent Mode): Visual Studio Code communicates with the Pieces MCP server using standardized tool calls (such as
ask_pieces_ltmand snippet retrieval queries). When you ask a question in Copilot Chat, Copilot can call Pieces to pull relevant context before generating code.
Step-by-Step Setup Guide
Getting Pieces and GitHub Copilot talking to each other takes about five minutes.
1. Ensure PiecesOS and LTM are Active
First, confirm that PiecesOS is installed and running on your system.
- Open the Pieces Desktop App or click the PiecesOS icon in your system tray/menu bar.
- Verify that Long-Term Memory (LTM) is turned on if you want time-based workflow retrieval.
- Open Settings > Model Context Protocol (MCP) inside Pieces Desktop to verify the local SSE endpoint URL. In most standard setups, it is:
http://localhost:39300/model_context_protocol/2024-11-05/sse
2. Configure MCP in Visual Studio Code
Visual Studio Code allows you to configure MCP servers globally or per workspace for GitHub Copilot.
Option A: Workspace Configuration (.vscode/mcp.json)
If you want the integration active within a specific project repository, create or edit .vscode/mcp.json:
{
"servers": {
"Pieces": {
"type": "http",
"url": "http://localhost:39300/model_context_protocol/2024-11-05/sse"
}
}
}
Option B: Global User Configuration
If you prefer Pieces available across all projects in VS Code, open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P), run MCP: Open User Configuration, and add Pieces under mcpServers:
{
"mcpServers": {
"Pieces": {
"type": "http",
"url": "http://localhost:39300/model_context_protocol/2024-11-05/sse"
}
}
}
3. Verify in GitHub Copilot Chat
- Reload your VS Code window (
Developer: Reload Window). - Open the GitHub Copilot Chat panel.
- Switch Copilot Chat into Agent Mode (or check that MCP tool integration is active in your chat picker). MCP tool discovery requires agent interaction, not basic completion.
- Verify that Pieces tools (such as
ask_pieces_ltm) appear in the available tools list or invoke@piecesdirectly in supported builds.
Real-World Workflows That Actually Save Time
Integrating the two tools pays dividends in specific, high-friction scenarios:
| Friction Point | GitHub Copilot Alone | GitHub Copilot + Pieces MCP |
|---|---|---|
| Cross-repo helper reuse | Fails; Copilot only knows current repository files. | Copilot queries Pieces snippet library and ports the exact helper logic. |
| Terminal error traces | Copilot lacks context of commands run 10 minutes ago in terminal. | Pieces LTM captures terminal context; Copilot references exact stack traces. |
| Snippet curation | Requires pasting gists or maintaining markdown notes manually. | Pieces auto-enriches saved snippets with tags, origins, and explanations. |
| Visual documentation | Copilot cannot read diagrams or screenshot snippets directly from IDE. | Pieces OCR extracts code from screen clips, then surfaces them to Copilot. |
Practical Prompt Examples
- "Look at the database connection snippet I saved in Pieces last week and adapt it to use asyncpg in this current service."
- "Based on my recent terminal errors indexed in Pieces, why did the OAuth callback fail during staging tests?"
- "Retrieve the regex pattern for parsing semver strings from my Pieces snippets and write unit tests for it in this file."
Copilot invokes Pieces behind the scenes, pulls the exact code or memory string, and applies it to your active file.
Honest Trade-offs: What We Like and What Annoys Us
At 365Finds, our standard recommendation is never unconditional praise. Combining these tools creates genuine superpowers, but it comes with real operational nuances you should know beforehand:
What We Like
- True context portability: You stop losing your train of thought when jumping between repositories.
- Zero vendor lock-in on chat: Adopting MCP was a smart move by Pieces. You do not need to abandon GitHub Copilot's seamless editor workflow to get the benefits of Pieces' contextual memory.
- Automated snippet enrichment: Pieces doesn't just store snippets; it tags them by language, links their origin documentation, and makes them semantically searchable.
What Annoys Us
- Resource overhead: Running PiecesOS in the background alongside VS Code, GitHub Copilot, and Docker containers eats noticeable RAM (typically several hundred megabytes) and background CPU cycles while indexing.
- Chat vs. Ghost Text boundary: MCP tools operate strictly inside GitHub Copilot Chat / Agent Mode. Pieces context will not automatically inject itself into inline tab-completion Ghost Text unless Copilot explicitly queries the tool during an interactive agent turn.
- Privacy management: Pieces Long-Term Memory captures broad desktop activity. If you work on sensitive client code or handle private keys, you must actively configure Pieces exclusion rules and private mode to avoid indexing proprietary credentials.
The 365Finds Verdict
If your daily development is confined to a single, monolithic codebase, GitHub Copilot on its own is plenty. Adding Pieces will merely feel like unnecessary plumbing.
However, if you juggle multiple microservices, switch between client repositories, or spend hours searching through old terminal tabs and Discord snippets for code you solved two weeks ago, pairing Pieces with GitHub Copilot via MCP is an outstanding upgrade. GitHub Copilot writes the code; Pieces provides the long-term memory Copilot was always missing.