pocketnook

v0.1.0
io.github.shotintoeternity/pocketnook Checked 19 hours ago Published 3 months ago

Deploy repositories or local folders to private Pocketnook URLs from any MCP client.

Values you need

VariableWhat it is
POCKETNOOK_TOKENrequired secret An agent token minted at pocketnook.dev/home under "Agent access". Acts on its owner's own nooks only; 90-day expiry.
POCKETNOOK_URLoptional Base URL, if not https://pocketnook.dev.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add pocketnook -e 'POCKETNOOK_TOKEN=<POCKETNOOK_TOKEN>' -- npx -y --package=@pocketnook/mcp@0.1.0 pocketnook-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "pocketnook": {
      "args": [
        "-y",
        "--package=@pocketnook/mcp@0.1.0",
        "pocketnook-mcp"
      ],
      "command": "npx",
      "env": {
        "POCKETNOOK_TOKEN": "<POCKETNOOK_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "pocketnook": {
      "args": [
        "-y",
        "--package=@pocketnook/mcp@0.1.0",
        "pocketnook-mcp"
      ],
      "command": "npx",
      "env": {
        "POCKETNOOK_TOKEN": "<POCKETNOOK_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "POCKETNOOK_TOKEN",
      "id": "pocketnook-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "pocketnook": {
      "args": [
        "-y",
        "--package=@pocketnook/mcp@0.1.0",
        "pocketnook-mcp"
      ],
      "command": "npx",
      "env": {
        "POCKETNOOK_TOKEN": "${input:pocketnook-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.pocketnook]
command = "npx"
args = ["-y", "--package=@pocketnook/mcp@0.1.0", "pocketnook-mcp"]
env = { "POCKETNOOK_TOKEN" = "<POCKETNOOK_TOKEN>" }

For AI agents

  1. Ask the user for: POCKETNOOK_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: deploy, deploy_directory, list_nooks, nook_logs, stop_nook.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json