AI knowledge base for VS Code.

Add Perfect Wiki to VS Code and GitHub Copilot's agent mode can search your team's runbooks, API specs and how-to guides without leaving the editor — and turn what it figures out into documentation others can reuse.

No credit cardSetup in under 10 minutesCancel anytime
01MCP setup

Connect VS Code in two minutes.

Drop the Perfect Wiki server into .vscode/mcp.json or run MCP: Add Server from the Command Palette. VS Code registers with Perfect Wiki automatically and asks you to sign in.

  • →Works with GitHub Copilot agent mode
  • →Workspace config or user-wide config — your choice
  • →Automatic OAuth client registration, no app setup
.vscode/mcp.json · VS Code
{
"servers": {
"perfect-wiki": {
"type": "http",
"url": "https://api.perfectwiki.xyz/mcp"
}
}
}
02Read & write

Copilot answers from your docs — and fills the gaps.

In agent mode, Copilot can ask Perfect Wiki how your team does things, open the relevant runbook or spec, and — once you approve — create the page that was missing so the next person doesn't have to ask.

  • →Team know-how available in Copilot Chat
  • →Specs and runbooks read directly from the source
  • →Missing docs created from the conversation
VS Code · Copilot agent mode
How do we rotate the staging database credentials? Write it up if there’s no doc.
⚙ ask · rotate staging credentials⚙ create_page ✓
There was no runbook, only a mention in the Infra FAQ. I followed the steps in your Terraform module and created “Rotate staging DB credentials” in the Engineering knowledge base.
Setup guide

How to connect Perfect Wiki to VS Code.

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

More details in the Perfect Wiki MCP server guide and VS Code's MCP documentation.

Prefer a static API token?
.vscode/mcp.json · 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. Use ${input:…} rather than ${env:…} for headers.

Use cases

What your team does with Perfect Wiki in VS Code.

Answers without switching tabs

Deployment steps, feature-flag conventions, who owns which service — Copilot pulls it from Perfect Wiki while you stay in the file you’re working on.

> What’s our process for shipping behind a feature flag?

Capture tribal knowledge

When Copilot works something out that isn’t documented, have it write the page. Knowledge stops living only in one senior engineer’s head.

> Document how the local dev environment is bootstrapped.

Postmortems linked to code

Before changing a fragile area, Copilot checks past incident postmortems so the same failure doesn’t come back.

> Any postmortems related to the checkout service I should know about?
The full toolset
ask()

Ask a natural-language question and get an AI answer with sources.

list_pages()

List every page in the connected knowledge base.

get_page()

Read the full content of a specific page.

create_page()

Create a new page — draft SOPs straight from chat.

update_page()

Update an existing page, so SOPs never go stale.

delete_page()

Remove pages that are no longer needed.

get_knowledgebase()

Get info about the connected knowledge base.

Free SOP templates

Start from a ready-made SOP. Keep it alive here.

Download any of our 284 standard operating procedure templates in Word, PDF, Excel or CSV, no sign-up needed. Then put it in Perfect Wiki so your team can find it and ask about it.

Browse all 284 SOP templates →
Common questions

Frequently asked questions

Didn't find what you're looking for? Contact our support →

Ready when you are

Put your SOPs to work in VS Code.

Keep your SOPs, manuals and FAQs in Perfect Wiki — and give your whole team answers right where they work.

No credit cardSetup in under 10 minutesCancel anytime