VS Code / GitHub Copilot

Configure VS Code and GitHub Copilot to use docpenny’s MCP tools for PDF generation.

Note: VS Code uses the root key servers (not mcpServers).

Prerequisites

  • A docpenny API key (create one in Settings → API Keys in the dashboard)

Configuration

Add to .vscode/mcp.json in your project root:

{
  "servers": {
    "docpenny": {
      "type": "http",
      "url": "https://mcp.docpenny.com/mcp",
      "headers": {
        "x-api-key": "YOUR_API_KEY"
      }
    }
  }
}

Using Secure Token Input

To avoid hardcoding your API key in the config file, VS Code supports ${input:...} prompts:

{
  "servers": {
    "docpenny": {
      "type": "http",
      "url": "https://mcp.docpenny.com/mcp",
      "headers": {
        "x-api-key": "${input:api-key}"
      }
    }
  }
}

VS Code will prompt you to enter the API key when the server starts. The value is not stored in the config file.

Troubleshooting

ProblemSolution
Auth required or 401Check your x-api-key value. Keys can be managed in the dashboard.
Connection refusedVerify the URL is https://mcp.docpenny.com/mcp.
Server not startingEnsure the config file uses "servers" (not "mcpServers") as the root key.
Copilot not using toolsMake sure GitHub Copilot Chat is enabled and you have the latest VS Code update.
en