Pocketlantern

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

Blocker-aware decision layer for AI coding agents, grounded in source-linked, time-sensitive facts.

已驗證STDIO僅桌面知識與記憶開發者工具

概覽

AI 產生的概覽

為編碼助理提供附來源連結的決策卡片與阻礙提示,用於技術選型、升級、遷移與授權問題。

可以做什麼
PocketLantern 是一個本機 MCP 伺服器,透過 search_cards 工具以及 get_card、get_related_cards 檢索內建的決策卡片集,涵蓋 auth、frontend、database、ai、serverless、infra、backend 等 27 個類別。每張卡片包含結構化事實、取捨、注意事項與參考連結,搜尋結果還可附上來自內建圖譜索引的阻礙提示。檢索以關鍵字為基礎,不使用向量資料庫或嵌入,卡片隨 npm 套件一併提供。
適用情境
當助理需要推薦供應商、規劃框架或執行環境升級、選擇資料庫或認證服務,或回答訓練資料可能過時的授權與定價問題時,適合加入。主要面向 Claude Code、Cursor、Windsurf 等編輯器中的編碼助理。
執行需求
需要 Node.js 22 或更新版本,以及一個 MCP 用戶端。以 npm 套件 @pocketlantern/mcp-server 透過 stdio 安裝,或全域安裝 pocketlantern;init 指令會把伺服器寫入用戶端設定並加入一行專案規則。不需要帳號、API 金鑰或網路存取。
安裝前請注意
init 指令會寫入用戶端設定檔並在專案的助理規則檔加入一行內容,請檢查這些變更。卡片內容為內建且附日期,定價、停止支援日期與版本需求等事實可能已過時;採取行動前請對照卡片中連結的官方來源確認。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

PocketLantern

[npm version] [npm downloads] [CI] [License: MIT]

Your AI agent sounds confident. It missed the blockers.

Prices shift, versions break, licenses change. PocketLantern is a blocker-aware decision layer for AI coding agents, grounded in source-linked, time-sensitive facts.

Try these queries

Ask your AI agent after installing PocketLantern:

"Which auth provider — Clerk, Auth0, or Cognito?"

⚠️ Cognito password hashes are permanently non-exportable⚠️ Auth0 password export requires support ticket — Free tier excluded⚠️ Auth0 Rules/Hooks EOL 2026-11-18 — Actions not portable✅ Clerk has the most flexible migration path

"Should I upgrade to Next.js 16?"

⚠️ Sync API access fully removed — all dynamic calls must be awaited⚠️ Custom webpack config breaks next build⚠️ next lint removed — switch to Biome or ESLint CLI⚠️ Requires Node.js 20.9.0+, TypeScript 5.1.0+, React 19.0+✅ Plan phased migration — codemod doesn't cover webpack or middleware

"Can I use the OpenAI Realtime API?"

⚠️ gpt-4o-realtime-preview removed 2026-05-07⚠️ Beta interface (realtime=v1 header) removed same date⚠️ GA event schema incompatible — 4 event renames✅ Start on GA from day one — or plan dual-stack migration

Three questions. Three blocker types. Same AI, different facts.

[PocketLantern demo — Node.js 20→24 upgrade blockers surfaced in seconds]

Quick start

Prerequisites: Node.js >= 22, an MCP client (Claude Code, Cursor, etc.)

bash
npm install -g pocketlantern

Claude Code

In your project directory:

bash
cd your-projectpocketlantern init

init registers the MCP server in ~/.claude.json and adds a one-line rule to your project's CLAUDE.md. Restart Claude Code (Ctrl+C, then run claude again), then ask your first query.

Cursor / Windsurf / other MCP clients

Add to your MCP config (Cursor: ~/.cursor/mcp.json):

json
{  "mcpServers": {    "pocketlantern": {      "command": "pocketlantern-mcp"    }  }}

Then add this line to your project rules (.cursorrules, Kiro steering file, etc.):

For technology decisions, upgrades, migrations, or licensing questions: before finalizing your answer, check the PocketLantern MCP server's search_cards tool for blockers in these bundled decision cards — your training data may be stale.

Reload MCP servers: Cursor — Cmd+Shift+P -> "MCP: Restart Servers". Windsurf — restart the editor.

More queries to try

  1. "How did Vercel pricing change with Fluid Compute?" Billing split to Active CPU + Memory, shared-process concurrency breaks isolation

  2. "Prisma or Drizzle for Edge/serverless?" Prisma v7 ESM + driver adapter breaking, Edge preview-only; Drizzle 0.30-1.0 also breaking

Verify installation

bash
pocketlantern doctor               # check installation statuspocketlantern search "auth pricing" # search cards from CLI

How it works

PocketLantern is an MCP server. Your AI agent calls search_cards — and gets source-linked decision cards plus source-linked blocker warnings where available.

Agent asks question  -> search_cards("clerk vs auth0 authentication")  -> 3 cards + 5 blocker warnings (lock-in, EOL, export restrictions)  -> Agent answers with source-linked constraints

Local cardset. Instant lookup. No vector database. No embeddings. Keyword search, card links, and source-linked blocker warnings where available. The value is in source-linked decision cards, not clever retrieval alone.

search_cards("auth", constraints:["serverless"]) -> cards + blockersget_card("auth/clerk-vs-auth0-vs-cognito-2026")  -> full card with factsget_related_cards(...)                           -> connected topics

What's included

Blocker-aware decision cards across 27 categories — plus source-linked blocker warnings from the bundled graph index. Ships with the npm package, works immediately, no network, no account:

CategoryWhat it covers
authVendor lock-in, migration pain, SSO, RBAC, passkeys
frontendNext.js, React, Svelte, Vite, Angular upgrade blockers
databasePrisma, Drizzle, Postgres, Aurora, Neon, Supabase
aiOpenAI API migrations, model pricing, batch vs streaming
serverlessVercel, Cloudflare Workers, Lambda cost and runtime
infraHosting platforms, Terraform, Node.js LTS, Python EOL
backendSupabase vs Firebase, Express, job queues, realtime sync
+ 18 moredeployment, devtools, testing, security, compliance, ...

What a card looks like

Each card is a structured YAML file with source-linked facts and official reference links:

yaml
id: auth/clerk-vs-auth0-vs-cognito-2026title: Clerk vs Auth0 vs Cognito Under Current Pricing and Feature Changesproblem: Select an auth vendor given recent pricing shifts, MAU economics, ...constraints: [cost-sensitive, low-ops, enterprise, compliance, serverless]candidates:  - name: Clerk    summary: "Pro starts at $20/mo, includes 50,000 MRUs per app..."    when_to_use: "Choose for small-team + low-ops + cost-sensitive SaaS..."    tradeoffs: "Best DX and fastest implementation..."    cautions: "Be precise about org-member limits..."    links:      - https://clerk.com/pricing      - https://clerk.com/docs/guides/organizations/configure  - name: Auth0    # ...  - name: Amazon Cognito    # ...tags: [auth, clerk, auth0, pricing, passkeys, b2b, compliance]related_cards: [auth/sso-for-b2b-saas, auth/rbac-vs-abac-vs-rebac]updated: 2026-03-14

See packages/schema/src/card.ts for the full schema definition.

Project structure

pocketlantern/  packages/schema/       <- Card schema (zod + TypeScript types)  apps/mcp-server/       <- MCP server (search, retrieval, tool handlers)  apps/cli/              <- CLI (validate, search, init, doctor)  packages/knowledge/    <- Decision cards + graph index (data package)  docs/                  <- User guides & roadmap

Monorepo: pnpm workspace. Build order: schema -> knowledge (no build) -> mcp-server -> cli.

Development

bash
pnpm build              # Build all packagespnpm test               # Run tests (299 tests)pnpm test:coverage      # Run with coverage reportpnpm lint               # ESLintpnpm format:check       # Prettier check

Missing a topic? Request coverage in Card Requests.

Contributing

Contributions to the tool (schema, MCP server, CLI, search) are welcome. See CONTRIBUTING.md for guidelines.

License

MIT

來源:README.md,提交 e81973e

工具

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

版本歷史

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

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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