@everystack/mcp

中文文档
0.4.22发布于 2026/11/13AGPL-3.0-onlyTypeScriptCommonJS零依赖近 30 天下载 2038

Governance layer that governs how any agent builds everystack — grounding, cheat gates, and Model-aware tooling over MCP

原始使用文档
文档目录9 节
  1. Setup
  2. What It Provides
  3. Resources (Knowledge)
  4. Governance (hooks)
  5. Tools (Project Introspection)
  6. Prompts (Guided Workflows)
  7. Design
  8. Development
  9. License

@everystack/mcp

The governance layer that governs how any agent builds everystack. Beyond architecture knowledge and guided prompts, it keeps the build on-script: a grounding gate (read the project contract before editing) and cheat gates (block the training-consensus shortcuts — bundling data instead of using the DB, hand-writing migrations, leaking a secret into the client bundle), with telemetry that records what the agent tried. The teeth run as Claude Code hooks; the same logic is importable so the operator CLI can self-gate at deploy.

Governance setup (hooks + telemetry): docs/governance-setup.md.

Setup

Add to your project's .mcp.json:

{
  "mcpServers": {
    "everystack": {
      "command": "npx",
      "args": ["@everystack/mcp"]
    }
  }
}

Or for a monorepo workspace:

{
  "mcpServers": {
    "everystack": {
      "command": "npx",
      "args": ["tsx", "packages/mcp/src/index.ts"]
    }
  }
}

What It Provides

Resources (Knowledge)

Claude reads these to understand everystack architecture and conventions.

Core (loaded first):

  • everystack://core — Architecture, package map, tiers, conventions, handler reference
  • everystack://security — Three-layer security model, AWS IAM profiles, RLS policies

Detail (loaded on demand):

  • everystack://handler-options — Complete createHandler() options reference
  • everystack://query-protocol — PostgREST filter syntax, embedding, aggregates
  • everystack://client-api — Typed client, query builder, mutations
  • everystack://auth — JWT auth flows, OAuth, token lifecycle
  • everystack://schema-patterns — Drizzle schema design, migrations, RLS
  • everystack://deployment — SST config, secrets, stages, resource linking
  • everystack://admin — Declarative admin dashboard
  • everystack://jobs — SQS background workers
  • everystack://storage — S3 file uploads, presigned URLs
  • everystack://logging — Structured logging, crash reports, analytics
  • everystack://security-device — Device attestation, biometric auth
  • everystack://testing — Jest setup, TDD workflow, mocking patterns
  • everystack://plugins — Plugin system for composing handlers
  • everystack://ssr — Server-side rendering, loaders, SEO
  • everystack://images — Sharp image processing, CDN delivery
  • everystack://events — Real-time events via LISTEN/NOTIFY + WebSocket
  • everystack://cli — CLI command reference

Governance (hooks)

The teeth. Run as Claude Code hooks via the everystack-mcp bin — see docs/governance-setup.md.

SubcommandHookRole
contextSessionStartinject the contract to read
gatePreToolUseblock until grounded; block cheat gates
markPostToolUse(Read)record a contract read
validatePostToolUse(Write|Edit)surface a cheat the write landed
report—summarize the per-session telemetry

Tools (Project Introspection)

ToolPurpose
check_environmentVerify dev/deploy prerequisites (Node, pnpm, git, Expo, SST, AWS CLI, PostgreSQL)

The legacy regex tools (project_status, schema_analyze, project_validate) were removed: they predated the v3 Model/Module surface and returned wrong answers on Model-based apps. They are being rebuilt on @everystack/model (the pure compiler) so introspection matches reality.

Prompts (Guided Workflows)

Structured prompts that guide Claude through multi-step tasks.

PromptPurpose
new-appScaffold a new everystack app (V1/V2/V3)
add-featureAdd auth, jobs, storage, images, admin, logging, security, SSR, or events
design-schemaPlain English → Drizzle schema + RLS policies + handler config
deployStage-specific deployment walkthrough
debugSystematic debugging based on symptoms
secureAWS IAM profiles + RLS + JWT auth setup

Design

Framework-aware. Depends on @everystack/model and @everystack/cli (plus @modelcontextprotocol/sdk and zod). An enforcement layer must track the framework version — it cannot float free of it. The cheat detectors reuse the CLI's shipped scanners (e.g. the canonical secret-shape patterns from @everystack/cli/audit) rather than duplicating them, loaded lazily so the common tool call stays fast.

Local-only. No network, no AWS. The grounding gate and cheat gates observe tool-call metadata and the proposed file content; they never write files themselves. Telemetry is a local JSONL under ~/.everystack/governance.

Fail-open. A governance bug never bricks tool use — only the explicit "ungrounded" and "cheat detected" conditions fail closed.

Curated resources. The markdown files are optimized for Claude consumption — organized by task, not by package. Each follows a consistent structure: When to Use, Setup, API Reference, Common Patterns, Gotchas.

Development

pnpm --filter @everystack/mcp test     # Run tests (206 passing)
pnpm --filter @everystack/mcp lint     # Type check

License

AGPL-3.0-only © Scalable Technology, Inc.

A commercial license is available for organizations that cannot or do not wish to comply with the AGPL-3.0 terms. For commercial licensing, contact [email protected].

版本与发布记录

@everystack/mcp 共发布 31 个版本,首次发布于 2026/05/22;过去 12 个月发布了 31 个版本。

版本发布日期距今
0.4.22latest2026/11/131 天前
0.4.212026/11/131 天前
0.4.202026/11/122 天前
0.4.192026/11/103 天前
0.4.182026/11/068 天前
0.4.172026/11/068 天前

关于 @everystack/mcp 的常见问题

@everystack/mcp 是什么?

Governance layer that governs how any agent builds everystack — grounding, cheat gates, and Model-aware tooling over MCP

如何安装 @everystack/mcp?

在项目目录运行 npm install @everystack/mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 everystack-mcp,可以用 npx everystack-mcp 直接运行。

@everystack/mcp 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@everystack/mcp 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@everystack/mcp 可以商用吗?

@everystack/mcp 使用 AGPL-3.0-only 许可。最严格的 Copyleft:除分发外,通过网络向用户提供基于它的服务也需要开源对应源码。闭源 SaaS 使用前务必评估。以上为概括,不构成法律意见,请以许可原文为准。

@everystack/mcp 的下载量有多少?

根据 npm 官方下载统计,@everystack/mcp 在 2026/10/14 – 2026/11/12 这 30 天内被下载 2,038 次,日均约 68 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@everystack/mcp 还在维护吗?

最新版本 0.4.22 发布于 2026/11/13(1 天前);至今共发布 31 个版本,其中过去 12 个月发布了 31 个;首次发布于 2026/05/22。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。