GitHub Copilot CLI Integration

Updated today

โ€ข

1 min read

Connect Perfect Wiki to GitHub Copilot CLI, and Copilot reads your runbooks, specs and conventions from the terminal, and updates them when things change.

How to connect

  1. Run the command below, or type /mcp add inside a Copilot session for the interactive flow:
    copilot mcp add --transport http perfect-wiki https://api.perfectwiki.xyz/mcp
  2. Start copilot and ask something that needs your wiki. Follow the sign-in prompt the first time the server is used.
  3. Sign in to Perfect Wiki, choose the knowledge bases and the access level, then click Allow access.
  4. For a single repository, put the server in .mcp.json or .github/mcp.json instead of the user-wide config.

With an API token

copilot mcp add --transport http perfect-wiki https://api.perfectwiki.xyz/mcp \
    --header "Authorization: Bearer $PERFECT_WIKI_TOKEN"

Generate the token in the Perfect Wiki settings of the knowledge base you want to expose. Each token covers one knowledge base and has read & write access.

Tip: Copilot CLI 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

Was this page helpful?