GitHub Copilot writes great code inside your active file, but it suffers from severe short-term memory loss the moment you leave your editor. You spend thirty minutes combing through authentication documentation in Chrome, debugging an error in a terminal tab, or referencing an architecture discussion in Slack. When you return to your IDE, Copilot knows none of it. It generates completions based strictly on open buffers and repository files.
At 365Finds, we look at the integration between Pieces and GitHub Copilot not as an "either/or" tool contest, but as an intentional architectural stack. Pieces acts as the long-term contextual memory engine across your operating system; GitHub Copilot acts as the primary in-editor code generation engine. Bridging the two solves the persistent context fragmentation that slows developers down.
Here is the exact technical path to wire Pieces and GitHub Copilot together, why the integration architecture recently shifted, and how to operate the combined workflow effectively.
The Architecture: Why MCP Changed the Integration
Until recently, pairing Pieces with GitHub Copilot required running separate, competing IDE extensions side by side. Pieces has sunset its standalone editor plugins for environments like Visual Studio Code and JetBrains. Instead, Pieces transitioned its entire integration architecture to Anthropic's open Model Context Protocol (MCP).
Under this modern setup:
- PiecesOS runs as a local background daemon on macOS, Windows, or Linux. It hosts an on-device Long-Term Memory (LTM) engine and exposes a local MCP server endpoint (defaulting to port
39300). - Pieces Web Extension and desktop capture tools ingest context outside your IDE—such as technical documentation pages, Stack Overflow threads, API references, and terminal outputs.
- GitHub Copilot (running in VS Code or MCP-compatible environments) acts as the MCP client. Copilot Chat in Agent mode queries the Pieces MCP server as an external tool, retrieving relevant snippets, previous architectural decisions, and documentation snippets directly into your prompt context.
[Browser Docs / Terminal / Snippets]
│
▼
[Pieces Web / Desktop]
│
▼
[PiecesOS (Local LTM)]
│
(Local MCP Endpoint: 39300)
│
▼
[GitHub Copilot (Agent Mode)]
│
▼
[Active Codebase & Editor Buffer]
Step-by-Step: Connecting Pieces to GitHub Copilot
Step 1: Initialize PiecesOS and Enable Long-Term Memory
Before GitHub Copilot can query external context, PiecesOS must be running locally and actively capturing context.
- Download and install PiecesOS and the Pieces Desktop App.
- Launch PiecesOS and verify that the background service is running in your system tray or menu bar.
- Open the Pieces Desktop App, navigate to Settings, and confirm that Long-Term Memory (LTM) is toggled on. This activates the background contextual pattern engine that links snippets to source URLs, tags, and timestamps.
Step 2: Ingest External Documentation and Research
GitHub Copilot can only retrieve what Pieces has indexed or saved. To preserve cross-tool context from outside your IDE:
- Install the Pieces Web Extension for your primary browser (Chrome, Firefox, or Edge).
- As you browse official API documentation or pull requests, use Pieces to save code blocks or let the extension record your research sessions.
- You can also drag code snippets, configuration files, or error logs into Pieces Desktop to enrich your long-term library.
Step 3: Configure the Pieces MCP Server in VS Code
You can link GitHub Copilot to Pieces either automatically via the Pieces desktop interface or manually through configuration files.
Option A: One-Click Connection (Recommended)
- Open the Pieces Desktop App.
- Click your profile icon in the upper-left corner, go to Settings, and select Model Context Protocol (MCP) (or view the MCP Connections panel).
- Find GitHub Copilot in the supported client list and click Connect. Pieces writes the required configuration to your local VS Code environment automatically.
Option B: Manual Configuration
If you configure your environment manually or use a customized MCP registry, add the PiecesOS endpoint to your VS Code MCP configuration file (mcp.json):
{
"mcpServers": {
"Pieces": {
"url": "http://localhost:39300/model_context_protocol/2025-03-26/mcp"
}
}
}
Note: If port 39300 is occupied, PiecesOS dynamically selects an available port between 39300 and 39333. Verify your exact active endpoint URL under Pieces Desktop MCP settings.
Restart Visual Studio Code after saving your configuration.
Step 4: Query Across Tools via GitHub Copilot Agent Mode
Standard inline ghost-text completions operate on local buffer heuristics and do not make active RPC tool calls to MCP servers. To leverage the cross-tool context:
- Open GitHub Copilot Chat in VS Code (
Ctrl+Alt+Ion Windows/Linux,Cmd+Ctrl+Ion macOS). - Switch the interaction mode from Ask to Agent. Agent mode gives Copilot permission to invoke external MCP tools registered on your machine.
- Direct Copilot to reference your external knowledge base with explicit prompts:
- "Find the OAuth refresh token pattern I saved in Pieces earlier today and implement it in this auth service."
- "Query my Pieces long-term memory for the PostgreSQL connection timeout bug we solved last week."
- "Check my Pieces documentation history for the Stripe webhook signing verification steps and apply them to
webhookHandler.ts."
Copilot executes a background call to the Pieces MCP server, receives the stored documentation excerpts or code snippets, and generates project-adapted code without forcing you to switch windows.
Workflow Trade-Offs: The 365Finds Assessment
| Dimension | GitHub Copilot Standalone | Pieces + GitHub Copilot Integration |
|---|---|---|
| Context Scope | Active workspace, open tabs, local repository files | Entire developer workflow: browser docs, past snippets, terminal logs |
| Integration Architecture | Native IDE extension | Native Copilot extension querying local PiecesOS via MCP |
| Memory Persistence | Session-bound; clears across workspaces and restarts | Persistent local Long-Term Memory (LTM) indexed on disk |
| Resource Overhead | Low-to-moderate editor memory footprint | Requires PiecesOS daemon running continuously alongside editor |
| Query Mechanism | Inline ghost text and in-repo chat | Inline completions plus MCP tool-calling in Agent Chat |
365Finds recommends this combined setup specifically for developers juggling multi-repo architectures or heavy API documentation workflows. The friction of copying context between browser tabs and IDE prompts disappears.
However, be candid about two operational constraints:
- Agent Mode Dependency: Your cross-tool memory does not automatically inject itself into real-time tab-autocomplete keystrokes. You must trigger Agent Chat when you need Copilot to query your Pieces memory pool.
- Local Machine Overhead: Running PiecesOS contextual indexing in the background alongside VS Code and GitHub Copilot demands dedicated system resources. We advise setting clear retention boundaries in Pieces settings on developer laptops with less than 16 GB of RAM.
PiecesOS binds to http://localhost:39300 upon system startup and maintains its MCP schema endpoint for client discovery.