VS Code MCP tutorial

Connect VS Code to DocuWriter.ai with MCP so you can browse spaces, search documents, and generate or update documentation without leaving your editor.

Prerequisites

  • A DocuWriter.ai account
  • A recent version of VS Code with MCP support enabled

Add DocuWriter.ai to a workspace

For a project-specific setup, create .vscode/mcp.json in your workspace.

{
  "servers": {
    "docuwriter": {
      "url": "https://app.docuwriter.ai/mcp",
      "headers": {}
    }
  }
}

If you already have other MCP servers configured, add docuwriter inside the existing servers object.

Start and authorize

  1. Open the MCP server list in VS Code.
  2. Start the docuwriter server.
  3. When prompted, sign in to DocuWriter.ai.
  4. Approve access.
  5. Return to VS Code.

No manual API token is required. OAuth is handled by the MCP client.

Verify the connection

Ask VS Code chat:

List my DocuWriter spaces with IDs.

If the connection is successful, VS Code will return the spaces available to your account.

Useful prompts

Search all my DocuWriter spaces for "authentication".
Search space 22854 for "MCP".
Generate documentation for this file and save it to space 22854 as "API overview".
Create a document called "Deployment guide" in space 22854.
Update document 12345 in space 22854 with this Markdown content: ...