# VS Code

Add the server to the workspace's `.vscode/mcp.json`. VS Code asks for the key once and stores it securely:

```json title=".vscode/mcp.json"
{
  "inputs": [{ "type": "promptString", "id": "postflow-key", "description": "PostFlow API key", "password": true }],
  "servers": {
    "postflow": {
      "type": "http",
      "url": "https://postflow.biz.id/api/mcp",
      "headers": { "Authorization": "Bearer ${input:postflow-key}" }
    }
  }
}
```

Or run **MCP: Add Server** from the command palette, choose **HTTP**, paste the URL and let VS Code sign in with OAuth.
Then open Copilot Chat in **Agent** mode and enable the PostFlow tools.