 
Get Started
Connecting Pieces MCP to GitHub Copilot enhances context-aware coding by linking your current task with past work.
This integration allows GitHub Copilot to provide insights like past implementations and peer-reviewed solutions.
You can ask context-rich questions, and Copilot can find answers from your local development history without searching through commits or messages.
Follow the steps below to integrate the Pieces MCP with GitHub Copilot for smarter, personalized AI assistance.
Prerequisites
There are [2] prerequisites for integrating Pieces with GitHub Copilot as an MCP—an active instance of PiecesOS and the fully-enabled Long-Term Memory engine.
  
    Make sure that PiecesOS is installed and running. This is *required* for the MCP server to communicate with your personal repository of workflow data and pass context through to the GitHub Copilot chat agent.
If you do not have PiecesOS, you can download it alongside the [Pieces Desktop App](/products/desktop/download) or [install it standalone](/products/core-dependencies/pieces-os/manual-installation#manual-download--installation) here.
  
  
    For the MCP server to interact with your workflow context, you must enable the Long-Term Memory Engine (LTM-2.7) through the Pieces Desktop App or the [PiecesOS Quick Menu](/products/core-dependencies/pieces-os/quick-menu) in your toolbar.
  
Installing PiecesOS & Configuring Permissions
Follow the detailed set-up instructions below for a detailed guide on setting up and configuring PiecesOS to correctly pass captured workflow context to the Pieces MCP server.
SSE Endpoint
To use Pieces MCP with GitHub Copilot, you first need the Server-Sent Events (SSE) endpoint from PiecesOS:
http://localhost:39300/model_context_protocol/2024-11-05/sse
  Keep in mind that the **specific port** (i.e., `39300`) PiecesOS is running on **may vary**.
To find the current SSE endpoint with the active instance of POS (including the current port number), open the PiecesOS Quick Menu and expand the Model Context Protocol (MCP) Servers tab.
There, you can copy the SSE endpoint with one click, which includes the active PiecesOS port number.
 
You can also do this in the Pieces Desktop App by opening the Settings view and clicking Model Context Protocol (MCP).
 
Setting Up GitHub Copilot
You can now use the Pieces MCP with both Visual Studio Code and Visual Studio Code (Insider Edition).
Follow the steps below to get started—or watch the video below for a set-up tutorial and live demo.