VS Code (GitHub Copilot) Integration

Updated today

โ€ข

1 min read

Connect Perfect Wiki to VS Code, and GitHub Copilot in agent mode reads and updates your team's docs from the editor.

How to connect

  1. Create .vscode/mcp.json in your workspace, or run MCP: Open User Configuration to add it for every workspace.
  2. Add a perfect-wiki entry under servers, or run MCP: Add Server and choose HTTP:
    {
      "servers": {
        "perfect-wiki": {
          "type": "http",
          "url": "https://api.perfectwiki.xyz/mcp"
        }
      }
    }
  3. When VS Code starts the server, accept the sign-in prompt, log in to Perfect Wiki, choose the knowledge bases and the access level, then click Allow access.
  4. Open Copilot Chat, switch to Agent mode and ask about your docs.

With an API token

{
  "inputs": [
    { "type": "promptString", "id": "perfect-wiki-token", "description": "Perfect Wiki API token", "password": true }
  ],
  "servers": {
    "perfect-wiki": {
      "type": "http",
      "url": "https://api.perfectwiki.xyz/mcp",
      "headers": { "Authorization": "Bearer ${input:perfect-wiki-token}" }
    }
  }
}

VS Code prompts for the token the first time the server starts and stores it securely, so it never appears in mcp.json.

Tip: Copilot agent mode can also move your old wiki or a docs folder into Perfect Wiki: ๐Ÿค– Import with an AI agent (ChatGPT, Claude, Codexโ€ฆ)

More: ๐Ÿ”Œ Perfect Wiki MCP Server ยท VS Code MCP docs

Was this page helpful?