Pocketnook

io.github.shotintoeternity由 GitHub 帳號 shotintoeternity 發布v0.1.0更新於 Oct 24, 2026

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

概覽

AI 產生的概覽

Pocketnook 讓助手在 MCP 用戶端內把 GitHub 儲存庫或本機資料夾部署到私有的 Pocketnook 網址,並列出、檢視與下線這些部署。

可以做什麼
部署 GitHub 儲存庫預設分支的最新提交,回傳其私有網址;或直接上傳本機目錄目前磁碟上的內容,包含尚未提交的變更,不需要儲存庫。列出此帳號已部署的所有 nook,含網址與狀態。讀取建置輸出,用來排查部署失敗的原因。將某個 nook 下線,同時保留其網址、授權與密鑰。
適用情境
適合助手寫好靜態網站或應用程式後,使用者希望不離開對話就把它發布到私有位置;也適合在推送到儲存庫之前先分享本機資料夾。排查部署失敗或下線預覽時同樣有用。
執行需求
透過 npm 套件以 stdio 在本機執行,需要 Node 22.18 或更新版本。需要在 POCKETNOOK_TOKEN 中提供 agent token,該 token 須在 Pocketnook 網站的 Agent access 頁面以瀏覽器建立。可用 POCKETNOOK_URL 覆寫預設基礎網址。deploy_directory 需要 PATH 中有 tar,且需要能連線到 Pocketnook 的網路。
安裝前請注意
此 token 以建立它的帳號身分操作該帳號自己的 nook,90 天後過期,且只顯示一次,需妥善保存。部署會把程式碼上傳到第三方服務,deploy_directory 會送出尚未提交的本機內容;上傳上限為 32 MB,且此工具會拒絕包含家目錄的目錄。建置日誌來自建置流程,可能含有看似指令的文字。建置是同步的,用戶端中斷連線會導致建置被取消。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Pocketnook,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

pocketnook MCP server

Deploy a repository to a private URL without leaving the agent that wrote it.

> deploy this somewhere private
  owner/studio-board is deployed: https://pocketnook.dev/s/nook-…/  It is private — only you can open it until you share it. (static, 42 files)

The deploy step belongs inside the tool where the software is being written, which is both the distribution and the product.

Install

1. Get a token. Sign in at pocketnook.dev, open Agent access on the home page, and create one. It is shown once.

2. Add the server.

sh
claude mcp add pocketnook \  --env POCKETNOOK_TOKEN=pnka_… \  -- npx -y @pocketnook/mcp

Or, from a checkout of this repository, point at the entry directly:

sh
claude mcp add pocketnook \  --env POCKETNOOK_TOKEN=pnka_… \  -- node /absolute/path/to/apps/mcp/bin/pocketnook-mcp.mjs

The server has no dependencies and runs on Node 22.18 or newer — the floor package.json declares, so an older Node warns rather than silently half-works. Any MCP client works; the commands above are Claude Code's.

3. Optionally add the skill, which teaches the agent the things the tool descriptions cannot say on their own — that a deploy builds what is pushed rather than what is on disk, and that sharing does not notify anyone:

sh
cp -r skills/pocketnook ~/.claude/skills/

Or install both at once, as a Claude Code plugin

This repository is also a Claude Code plugin: the skill above and the MCP server, wired together, with the token read from your environment.

sh
claude plugin marketplace add shotintoeternity/pocketnook-mcpclaude plugin install pocketnook@pocketnook-mcp

Then check it: claude plugin details pocketnook@pocketnook-mcp should report one skill and one MCP server.

That check is worth running, because the obvious one does not cover it. claude plugin validate reads plugin.json and the skills, and does not read .mcp.json at all — it reports ✔ Validation passed on a plugin whose .mcp.json is not even parseable JSON. details is what counts the components, and it reports MCP servers (0) for exactly that plugin.

The marketplace manifest and the plugin manifest are both here, in one repository, because a plugin-only repository is not installable: plugin marketplace add fails with Marketplace file not found, and plugin install answers not found in any configured marketplace. .claude-plugin/marketplace.json lists this repository's root as its one plugin.

Configuration

VariableMeaning
POCKETNOOK_TOKENAn agent token. Required.
POCKETNOOK_URLBase URL, if not https://pocketnook.dev.

Tools

ToolWhat it does
deployDeploy a GitHub repository — the tip of its default branch — and return its private URL.
deploy_directoryDeploy a directory from this machine as it is on disk. No repository needed.
list_nooksEverything this account has deployed, with URLs and status.
nook_logsBuild output — the first thing to read when a deploy went wrong.
stop_nookTake a nook offline, keeping its URL, grants, and secrets.

The two deploys, and why they are two tools

deploy builds what GitHub has. deploy_directory uploads what is on the disk, including uncommitted work, and needs no repository at all. It exists because the person an agent is writing for may never make a push.

They are not merged into one tool with a heuristic, because the heuristic has two silent failure modes: guess towards the repository and an afternoon of work is quietly not deployed; guess towards the directory and half-finished local edits go live. Neither announces itself, which is what makes the guess unaffordable: a wrong answer that stays quiet is worse than a question.

What is deliberately absent

There is no delete tool. Deleting a nook destroys its grants and secrets and cannot be undone, so it stays a decision made on a page that can say so; stop is the recoverable version of the same intent. There is nothing for managing tokens either — the gateway refuses a token on /api/tokens entirely, so an agent cannot extend its own credential or revoke the one being used to stop it.

share_nook and set_nook_secret were removed on 2026-08-01. They shipped here on 2026-07-27 and then a design decision made both routes session-only — a token deploys, a session administers. They did not become ill-advised, they became impossible: sessionOnly in the gateway answers any bearer token with 401. A tool that can never succeed is worse than no tool, because an agent reads the refusal as transient and retries it. Setting a secret, sharing a nook and deleting one all happen in the browser now, and the server's MCP instructions say so, so a model sends its person there rather than inventing a workaround such as committing the secret into the project.

What the token can and cannot do

An agent token acts as the account that minted it, on that account's own nooks. Three limits are enforced by pocketnook's gateway, and tested there — they are properties of the server, not of this client, so a modified copy of this code cannot widen them:

  • It cannot mint or revoke a token. Only a browser session can, so a leaked token cannot renew itself, and revoking always has somewhere to happen from.
  • It carries no email or GitHub username claim. Access to someone else's nook is granted to a username or a verified email domain, and a token holds neither — so it can act as an owner but can never become a viewer.
  • It cannot open a nook. /s/:id/ reads the session cookie and nothing else. A token is one more way to deploy and no new way to read.

Tokens are stored as a SHA-256 hash, expire after 90 days, and can be revoked from the same panel that created them.

Known limits

  • Builds are synchronous. A deploy holds the request until the build finishes, and this client waits up to 15 minutes. Clients apply their own tool timeout on top of that; if a build outlasts it, the build still completes — check list_nooks or pocketnook.dev/home rather than deploying again.
  • A disconnecting client cancels a build. Same root cause: there is no queue, so the build lives in the request.
  • Root-relative assets. A nook is served under /s/:id/, so an app that requests /logo.png escapes its own prefix. Apps that use relative paths (for example Vite's base: './') are unaffected.
  • deploy_directory needs tar on the PATH, and refuses a directory that contains your home directory — packing ~ would upload SSH keys and cloud credentials along with the project. Uploads are capped at 32 MB by the gateway; node_modules, .git and build caches are left out.
  • A build log is somebody else's output. Control characters are stripped before it reaches the agent, and it arrives inside --- begin build output --- markers that say whose text it is. That is a mitigation, not a fix: an instruction written into a build log is ordinary text and no escaping removes it. The markers give the model the context to discount it.

Development

sh
npm test          # node --test, no dependencies

To drive the protocol by hand:

sh
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | node bin/pocketnook-mcp.mjs

來源:README.md,提交 3c75087

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分