原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Stratum MCP

作者:smartmemory版本 0.7.3i★ –i在你的电脑上运行
注册名称ai.smartmemory/stratum-mcp

安装

概览

作者提供的说明(英文原文)

Structured execution for coding agents: contracts, postconditions, gates, guardrails.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "stratum": {
      "command": "npx",
      "args": [
        "-y",
        "@smartmemory/stratum"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add stratum -- npx -y @smartmemory/stratum

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "stratum": {
      "command": "npx",
      "args": [
        "-y",
        "@smartmemory/stratum"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "stratum": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@smartmemory/stratum"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过域名 smartmemory.ai 验证(注册中心会核实域名所有权)

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32464 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32464 个服务器的 51% 更新
  • 基础检查结果等于或优于此分类中其他 32464 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Stratum MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.7.3)于38天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, yontu

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211昨天更新
安装

yontu

作者:senrecep

Türkçe yazı denetimi: TDK kuralları, yapay zekâ izleri, metin türüne göre üslup.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Stratum

State machine dispatch server for AI agent workflows.

*Your agent proposes the step. Stratum decides whether it actually finished.*

Stratum gives AI coding agents (Claude Code, Codex, etc.) a formal execution model. Instead of improvising a plan and retrying blindly, the agent writes a typed spec, the server tracks state, enforces postconditions, and returns structured failure context on retry. Every step produces an auditable trace record.

Where it sits. Stratum is the execution kernel, one layer below the thing most people run day to day. Compose drives the product lifecycle (design, blueprint, plan, review gates) and calls Stratum to execute each step. Reach for Stratum directly when you want the state machine and the postconditions without a lifecycle on top of them.

The founding intent behind this machinery is recorded in docs/VISION.md: a spec language that keeps LLMs on rails invisibly, so the same conversation yields stronger results than freeform execution.

One shipped component:

  • `ts/` — the TypeScript engine (@smartmemory/stratum): IR validation (version: 1 specs), flow execution with ensure postconditions, MCP server for Claude Code, query/gate/guard CLI, background flows and background agent runs. Published to npm as @smartmemory/stratum (bins: stratum, stratum-mcp) and listed in the MCP registry as ai.smartmemory/stratum-mcp.

Engine status (2026-07-18, STRAT-PY-RETIRE): the TS engine is the ONLY engine.

The Python library (stratum-py) and Python MCP server (stratum-mcp) are retired.

Their source is archived on the python-legacy branch, and PyPI packages are

frozen at their final releases. The engine executes `version: 1` specs exclusively.

Legacy v0.x specs are rejected by validate and classified (report-only) by

stratum migrate --check. The authoritative v1 shape is the Zod IR schema in

ts/src/ir/ plus stratum validate output.

Governed workflows as auditable flows — on any agent, not just one vendor. Unlike a single-vendor in-context orchestrator, Stratum runs as an MCP server and a library under Claude Code, Codex, or any MCP host; enforces typed contracts and ensure postconditions on every flow execution; stops at real human gates; dispatches Claude *and* Codex agents in one flow (so an independent reviewer can be a different model from the implementer); and persists flow state across sessions. Where you want raw in-context fan-out, reach for an in-host workflow runtime; where you want the run governed, portable, and auditable, that's a Stratum workflow.


Table of Contents

  • Installation
  • Quick Start
  • Core Concepts
  • YAML Spec Reference
  • MCP Tools API
  • Step Types
  • Ensures (Postconditions)
  • Contracts and Output Validation
  • Gates (Human-in-the-Loop)
  • Flow Composition
  • Routing
  • Iterations
  • Checkpoints
  • Recovery and Retry Logic
  • Workflows
  • Task Compiler
  • Skills
  • CLI Reference
  • Configuration
  • Python Library (Track 1)
  • Examples
  • Development
  • License

Installation

Install from npm (Node >= 22):

npm install -g @smartmemory/stratum    # provides `stratum` (CLI) and `stratum-mcp` (MCP server)

Or run from a checkout for development:

git clone https://github.com/smartmemory/stratum

cd stratum/ts && npm install # or pnpm install

Requires node >= 22 (erasable-syntax type stripping; node >= 24 needs no flags — the CLI bootstrap gates --experimental-transform-types automatically).

MCP Server (for Claude Code)

Register the server in your project's .mcp.json. From the npm package:

{

"mcpServers": { "stratum": { "command": "npx", "args": ["-y", "-p", "@smartmemory/stratum", "stratum-mcp"] } } }

From a checkout:

{

"mcpServers": { "stratum": { "command": "node", "args": ["/absolute/path/to/stratum/ts/src/mcp/bin.mjs"] } } }

Restart Claude Code to activate. Optionally append the Stratum execution model block to your CLAUDE.md.

CLI
stratum help                    # validate | migrate | query | gate | guard | watch  (npm install)

node ts/src/cli/bin.mjs help # same, from a checkout

From a checkout, a thin wrapper script (e.g. ~/bin/stratum-ts) pointing at ts/src/cli/bin.mjs avoids a PATH collision with the installed stratum bin.


Quick Start

When Claude Code has Stratum installed, it uses it automatically for non-trivial tasks:

  1. Claude writes a .stratum.yaml spec internally (never shown to you)
  2. Calls stratum_plan to validate the spec and get the first step
  3. Executes each step using its own tools (reading files, writing code, running tests)
  4. Calls stratum_step_done after each step -- the server checks postconditions
  5. If a postcondition fails, Claude gets back the specific violation and retries
  6. Calls stratum_audit at the end for a full execution trace

You see plain English narration throughout. The spec, state management, and postcondition enforcement happen behind the scenes.


Core Concepts

Specification vs Flow

A specification is the authored, version-controlled .stratum.yaml document. It declares contracts and one or more flows. The flows.entry field selects the flow that starts a run.

A flow is an executable directed acyclic graph of steps. Running the entry flow creates a persisted run with a runId. The v0.x top-level workflow: registration block and stratum_list_workflows were retired with the Python server.

Flows

A flow declares typed input fields, a typed output, optional limits, and steps. References and after lists form data and ordering edges. Gate routing and on_fail add explicit routing edges.

Steps

A step has an id, optional after dependencies, an optional when condition, and exactly one construct: do, set, gate, fanout, or run.

Tasks

A do step is an agent-dispatched task. The task text is declared inline, and ${...} references inject flow input or prior step output values. The v0.x functions: registry and function: steps have no place in a v1 document.

Contracts

Contracts define named output shapes. A do or set step declares its output contract with out. A flow declares both the step-output reference that supplies its result and the contract used to validate that result.

Ensures

Ensures are structured postconditions on do, set, and fanout stage results. V1 supports expression, file existence, file content, and judged predicates.

Retries

A do or fanout step can set the positive integer attempts limit. The default is two attempts. Contract failures, ensure failures, task failures, and exhausted iterations use the same failure path. A deterministic set failure terminates the flow without retrying.

Gates

Gate steps pause execution for an external approve, revise, or kill decision. Approve and kill routes may name a later step or use null. A revise route may name a strict ancestor and requires a flow-level max_rounds limit.


YAML Spec Reference

The Zod IR schema in ts/src/ir/ and the errors produced by stratum validate are authoritative. The root is strict and has exactly three fields: version, contracts, and flows. Unknown fields are rejected.

Minimal Example
version: 1

contracts: SentimentResult: label: string confidence: number flows: entry: classify classify: input: text: string output: from: "${classify_text.output}" contract: SentimentResult steps:

  • id: classify_text do: "Classify the sentiment of ${input.text}" agent: claude out: SentimentResult ensure:
  • expr: "result.label != ''"
  • expr: "result.confidence > 0.7" attempts: 2
Full Example with a Gate
version: 1

contracts: WorkOutput: result: string quality_score: number flows: entry: reviewed_work reviewed_work: input: text: string output: from: "${work.output}" contract: WorkOutput max_rounds: 3 steps:

  • id: work do: "Produce the deliverable requested in ${input.text}" agent: codex out: WorkOutput ensure:
  • expr: "result.quality_score >= 0.8" attempts: 3
  • id: review after: [work] gate: on_approve: null on_revise: work on_kill: null max_rounds: 2
Full Field Reference
version (required)

The only accepted value is the number 1. Quoted strings such as "1" and all v0.x values are rejected.

contracts (required)

Each contract maps field names to type strings. Objects are strict at runtime, so undeclared output fields are rejected.

Type formMeaning
string, integer, number, booleanScalar value
object, arrayUntyped JSON object or array
string[], Result[]Typed array
`draftfinal`String enum
`(draftfinal)[]`Array of string enum values
ResultAnother named contract
string?, Result[]?Optional field

Named contract references use an initial capital letter. Recursive contract references and unknown contract names are rejected.

flows (required)

flows.entry must name a flow in the same mapping. Every flow has these fields:

FieldRequiredShape
inputyesField-to-type mapping using the contract type language
outputyes{from: "${step_id.output}", contract: ContractName}
stepsyesArray of strict step objects
budgetnoPositive limits for one or more of usd, tokens, dispatches, or ms
max_roundsnoPositive integer required when a gate can revise to an ancestor
carrynoNamed loop-carried flow values; entry flow only

The output.from value must be one full reference to a step output with a known contract. A fanout output is an array, so a flow output must select an item such as ${fan.output[0]}.

Steps

Step IDs start with a lowercase letter and may contain lowercase letters, digits, underscores, and hyphens. IDs are unique within a flow. Every step accepts id, optional after, and optional when, then exactly one construct with only the fields listed below.

ConstructPurposeAdditional fields
doDispatch an inline taskagent, out, ensure, attempts, iterate, budget, on_fail
setBuild an output object from expressionsrequired out, optional ensure
gatePause for a decisionno fields outside the nested gate object
fanoutRun stages over an arrayattempts, budget, on_fail
runInvoke a subflowrequired with, optional budget, on_fail

agent is either claude or codex. attempts is a positive integer. An iterate object requires positive integer max and string expression until.

The nested gate object requires nullable on_approve, on_revise, and on_kill fields. It may also set a positive integer max_rounds.

The nested fanout object requires over, one or more steps, positive integer concurrency, isolation of worktree or none, require of all, any, or a positive in

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx