Skip to content
VS Code

duke-book for VS Code

io.github.githubdujianfeng/duke-book

Manage Duke Bookmark notes, categories, and plan-enabled knowledge search over MCP.

client:VS Code transport:stdio runtime:npm

Install duke-book in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "duke-api-base-url",
      "description": "DUKE_API_BASE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "duke-api-token",
      "description": "DUKE_API_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "duke-book": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "duke-book"
      ],
      "env": {
        "DUKE_API_BASE_URL": "${input:duke-api-base-url}",
        "DUKE_API_TOKEN": "${input:duke-api-token}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

duke-book in other clients