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
- Create
.vscode/mcp.jsonin your workspace, or run MCP: Open User Configuration to add it for every workspace. - Add a
perfect-wikientry underservers, or run MCP: Add Server and choose HTTP:{ "servers": { "perfect-wiki": { "type": "http", "url": "https://api.perfectwiki.xyz/mcp" } } } - 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.
- 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โฆ)