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 分