GitHub Copilot is fast at completing lines of code in an active editor tab. What it fails at is remembering what you did yesterday.
Every developer knows the friction: you spent three hours on Tuesday researching auth patterns, debugging esoteric edge cases in terminal output, and saving snippets from official docs. You open your IDE on Thursday, fire up GitHub Copilot Chat, and realize you are starting from zero. Copilot has no native memory of your previous session, no visibility into other repositories on your disk unless actively open, and no clue what you just read in your browser. Its context window resets, and your mental model resets with it.
At 365Finds, we look at developer workflows through a practical lens: generative speed means nothing if you spend half your morning manually re-feeding context to your AI assistant. The most effective way to solve this session amnesia right now is combining GitHub Copilot with Pieces through the Model Context Protocol (MCP).
Instead of treating Pieces as another competing chat assistant, treat it as an external hippocampus for GitHub Copilot. Here is how the integration works, how to set it up cleanly, and where its limits lie.
The Architecture: Why Pair Pieces with GitHub Copilot?
To understand why this pairing matters, you need to understand how the two tools divide labor:
- GitHub Copilot is the execution engine. It handles in-editor auto-completions, inline refactoring, and agentic code synthesis across your open workspace.
- Pieces (powered by PiecesOS) is the local contextual memory engine. Running as a lightweight background service, it passively indexes your development workstream: saved snippets, browser documentation, terminal errors, and historical coding sessions across projects.
- Model Context Protocol (MCP) is the open bridge connecting them. Rather than relying on fragile, proprietary editor extensions, Pieces exposes its Long-Term Memory (LTM) as a standardized local MCP server that GitHub Copilot can query on demand.
A critical point many developers miss: Pieces previously maintained separate IDE extensions for VS Code, JetBrains, and Sublime Text. Pieces has since transitioned its integration strategy away from legacy plugins in favor of native MCP servers. If you are still attempting to stitch them together using deprecated marketplace extensions, you are running an outdated setup.
Step-by-Step: Connecting Pieces to GitHub Copilot via MCP
The modern workflow connects PiecesOS directly into GitHub Copilot inside Visual Studio Code using MCP.
Step 1: Prepare PiecesOS and Enable Long-Term Memory
- Download and install PiecesOS and the Pieces Desktop App from the official site.
- Launch PiecesOS and verify that it is running in your background system tray or menu bar.
- Open the Pieces Desktop App, go to your settings, and confirm that Long-Term Memory (LTM) and workstream pattern tracking are switched on. This allows Pieces to build local context from your cross-app activities.
Step 2: Retrieve the Pieces MCP Server Endpoint
- In the Pieces Desktop App, open Settings and navigate to Model Context Protocol (MCP) (or Connected Applications).
- Pieces displays your local MCP server configuration. You can use the One-Click Connect option for supported clients, or copy the local HTTP/SSE server endpoint URL.
- The local endpoint typically takes the following structure:
http://localhost:39300/model_context_protocol/2025-03-26/mcp(Your port or specific schema string may vary slightly depending on your PiecesOS build).
Step 3: Configure VS Code and GitHub Copilot
- Open Visual Studio Code with the GitHub Copilot and GitHub Copilot Chat extensions installed and authenticated.
- Open the Command Palette (
Ctrl+Shift+Pon Windows/Linux,Cmd+Shift+Pon macOS) and run:MCP: Open User Configuration(Alternatively, edit.vscode/mcp.jsonat the root of your project workspace, or configure it via your usersettings.json). - Add the Pieces MCP server block to your configuration file:
{
"servers": {
"pieces": {
"type": "http",
"url": "http://localhost:39300/model_context_protocol/2025-03-26/mcp"
}
}
}
- Save the file. VS Code will display a security notification asking whether you trust the local MCP server running on your machine. Confirm and accept the prompt.
Step 4: Engage GitHub Copilot in Agent Mode
- Open the GitHub Copilot Chat panel (
Ctrl+Alt+Ion Windows/Linux,Cmd+Ctrl+Ion macOS). - Switch Copilot's interaction mode from standard Ask mode to Agent mode.
- Check the tools list icon inside Copilot Chat to verify that the Pieces MCP server is connected and its context tools are listed.
How to Reuse Context Across Sessions: Three Practical Patterns
Once the bridge is established, you do not need to alter how you write code. You alter how you prompt GitHub Copilot when switching tasks or resurrecting past work.
1. Resuming Past Work via Workflow Roll-ups
When you return to a feature branch after days away, avoid asking vague questions. Ask Copilot to leverage Pieces memory:
"Query Pieces for what I was working on yesterday regarding the OAuth token refresh bug. Summarize the approach we decided on and help me finish the token rotation test suite."
Copilot invokes Pieces over MCP, retrieves chronological activity summaries and relevant terminal logs, and constructs its solution around your actual past decisions rather than a generic textbook pattern.
2. Multi-Repository Snippet Portability
Copilot's built-in workspace context cannot see files in other repositories closed on your machine. If you implemented an API retry interceptor in an internal billing service three months ago, you usually have to open that project, locate the file, and copy-paste it. With Pieces capturing your historical snippets and repositories:
"Look up how we structured the Axios retry interceptor in Pieces from last month and adapt that exact pattern for this new gateway client."
Copilot pulls the verified snippet directly from Pieces local memory and adapts variable names and types to the active workspace.
3. Bridging Documentation Research to Editor Logic
When working with bleeding-edge APIs or internal documentation that Copilot's foundation model was never trained on, read the documentation with Pieces running. Pieces captures the browser context and code blocks. Inside Copilot Chat:
"Pull the API schema notes and endpoints I reviewed earlier this morning from Pieces, and generate a typed TypeScript client matching that spec."
365Finds Assessment: Practical Value and Trade-offs
365Finds recommends this pairing, but with clear-eyed expectations.
What we appreciate about this setup:
- True local privacy: PiecesOS stores your workstream and snippet memory locally on-device. Your cross-application logs are not dumped into an external vector database on a third-party cloud. Only the specific snippets or context summaries requested by Copilot during an active MCP tool call are fed into the prompt.
- Separation of concerns: GitHub Copilot remains focused on low-latency text completion. Pieces handles long-term storage and retrieval. This avoids forcing one monolithic tool to solve every stage of the developer workflow.
What requires caution:
- Resource overhead: Running PiecesOS background watchers (OCR, workstream indexing) alongside a heavy VS Code workspace with GitHub Copilot consumes meaningful CPU and RAM. On a resource-constrained laptop, you will feel the fan spin up.
- Context pollution: If you prompt loosely without naming the feature, topic, or timeframe, Copilot may pull outdated snippets from months ago that conflict with your current architecture. Precision in your prompting remains essential.
365Finds suggests treating Pieces not as another chat window to bounce between, but as a silent contextual backend. Connect it via MCP, keep Copilot in Agent mode, and let your past coding sessions inform your current code automatically.