# GitHub Copilot

### GitHub Copilot (VS Code)

> **TL;DR** dd the Plurality MCP Server through VS Code's native MCP configuration with a Plurality PAT, then use it from Copilot Chat in Agent mode.

#### Prerequisites

* VS Code **1.99 or later**
* A paid GitHub Copilot subscription
* GitHub Copilot extension installed in VS Code

**Setup**

1. Open VS Code and press `Cmd+Shift+P` (macOS) or `Ctrl+Shift+P` (Windows/Linux).
2. Run **MCP: Add Server**.
3. Select **HTTP (HTTP or Server-Sent Events)**.
4. Enter the server URL: `https://app.plurality.network/mcp`
5. Name the server: `plurality-memory`
6. Choose **User settings** (all projects) or **Workspace settings** (this project only).
7. It will then ask to authenticate from your account and open the app.plurality.network webpage. After authentication you return back to vscode.
8. If you want you can also edit the created mcp.json to authenticate via PAT.&#x20;

**Verify**

In Copilot Chat (Agent mode), ask: *"Search my Plurality memory for anything about \[topic]."* If Copilot calls `search_memory` and returns results, you're connected.

**Troubleshoot**

* *`MCP: Add Server` command not found.* Update VS Code to 1.99 or later.
* *Tools missing in Copilot Chat.* Make sure you're in Agent mode, not Ask or Edit mode.
* *401 Unauthorized from the server.* Your PAT is invalid, expired, or missing required scopes — regenerate it in Plurality, then run **MCP: List Servers**, pick the server, and reset stored inputs to re-enter it.
* *Tools fail to load after entering the PAT.* Reload the VS Code window (`Cmd/Ctrl+Shift+P → Developer: Reload Window`).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.plurality.network/the-plurality-mcp-server/connect-your-agents-via-mcp/github-copilot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
