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

Ratchet

作者:thearchitect0x-glitch版本 0.3.0i★ –i电脑或云端
注册名称com.ratchetgate/ratchet

安装

概览

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

Your agent asks before it acts, so the same real-world action is attempted at most once.

PopNx MCP 的三大支柱

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

它能帮你做什么

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

  • 连接方式: 电脑或云端
  • 传输方式: stdio, Streamable HTTP
  • 分类: 其他
  • 你需要填写:RATCHET_API_KEY

安装

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

安装之前

  • 基础检查:1 项中通过 0 项
  • 在作者的服务器上运行:你向它提出的内容会经过他们的服务器。
  • 需要你自己填写: RATCHET_API_KEY, RATCHET_BASE_URL

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • 在云端运行无需安装任何东西,通过互联网连接
  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

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

适用于网页版、桌面版和手机版 Claude:

  1. 打开 Settings → Connectors
  2. 点击 Add custom connector
  3. 粘贴下面的地址,然后点击 Add
  4. 如果要求登录,请登录作者的服务
SettingsConnectors1+ Add2https://…3
https://ratchetgate.com/mcp

或者在你的电脑上运行

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

{
  "mcpServers": {
    "ratchet": {
      "command": "npx",
      "args": [
        "-y",
        "ratchet-mcp"
      ],
      "env": {
        "RATCHET_API_KEY": "your-value",
        "RATCHET_BASE_URL": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add --transport http ratchet https://ratchetgate.com/mcp

或者在你的电脑上运行

claude mcp add ratchet --env RATCHET_API_KEY=your-value --env RATCHET_BASE_URL=your-value -- npx -y ratchet-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

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

{
  "mcpServers": {
    "ratchet": {
      "url": "https://ratchetgate.com/mcp"
    }
  }
}

或者在你的电脑上运行

在 Cursor 中打开

或者自己复制设置

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

{
  "mcpServers": {
    "ratchet": {
      "command": "npx",
      "args": [
        "-y",
        "ratchet-mcp"
      ],
      "env": {
        "RATCHET_API_KEY": "your-value",
        "RATCHET_BASE_URL": "your-value"
      }
    }
  }
}

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

在 VS Code 中打开

或者自己复制设置

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

{
  "servers": {
    "ratchet": {
      "type": "http",
      "url": "https://ratchetgate.com/mcp"
    }
  }
}

或者在你的电脑上运行

在 VS Code 中打开

或者自己复制设置

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

{
  "servers": {
    "ratchet": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ratchet-mcp"
      ],
      "env": {
        "RATCHET_API_KEY": "your-value",
        "RATCHET_BASE_URL": "your-value"
      }
    }
  }
}

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

ChatGPT 只能连接互联网上的服务器:

  1. 打开网页版 ChatGPT → Settings → Connectors (Apps)
  2. 点击 Create 或 Add(部分套餐需要先在 Advanced 中开启 Developer mode)
  3. 粘贴下面的地址,起个名字,然后保存
  4. 如果要求登录,请登录作者的服务
SettingsConnectors1+ Create2https://…3
https://ratchetgate.com/mcp

菜单名称可能因套餐和版本不同而略有差异。

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

需要你填写的值

  • RATCHET_API_KEY 机密 必填 env
    Ratchet API key. Create one free at https://ratchetgate.com/console
  • RATCHET_BASE_URL env
    Override to point at a self-hosted instance.

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

它能做什么

我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。

基础检查i

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

  • ! 注意

    作者与仓库一致

    发布者(ratchetgate.com)不是仓库所有者(thearchitect0x-glitch);可能是其他人代为上架的

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • … 尚未检查

    端点有响应

    尚未检查;我们会轮流检查各个端点

  • … 尚未检查

    使用 OAuth 登录

    尚未检查;我们会轮流检查各个端点

  • … 尚未检查

    工具描述中没有隐藏指令

    尚未检查;我们会在检查端点时读取工具列表

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

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

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

常见问题

Ratchet 安全吗?

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

它需要哪些密钥或代码?

你需要填写:RATCHET_API_KEY

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

两种方式都可以:安装在你的电脑上,或者连接云端版本。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.3.0)于2个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, Kanal Varna — drains, leaks & plumbing (Varna, BG)

替代选择

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

如何看卡片:★ 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前天更新
安装

作者的 README

打开 README

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

An effect gate for AI agents. Your agent asks before it does anything it cannot take back — charge a card, ship a deploy, publish a package, send the email — and gets a durable decision, so the same real-world action is attempted at most once across crashes and retries. Agents can also read back what a run already did, and spend against a limit they cannot raise.

Agents retry. LLM control flow is non-deterministic, network calls fail ambiguously, and processes die mid-action. The result is duplicate emails, double charges, and repeated writes — and nothing in the stack knows which. Vendor idempotency keys help for the few vendors that offer them, and never across separate agent processes or model providers.

Ratchet does not execute your actions. It holds a durable decision record in front of them.

POST /v1/effects/begin  →  decision: execute | duplicate | in_flight

| blocked | approval_required | denied

Only execute authorises the caller to act.


Project documents

ArchitectureHigh-level design — what the gate is and what it deliberately is not
Assurance caseThreat model, trust boundaries, and the argument for each security requirement — including what is *not* defended
RoadmapWhat the next year holds, and what will never be built
GovernanceWho decides, and what happens if they stop
ContributingHow to report a bug or propose a change
Security policyHow to report a vulnerability, and how fast you hear back
Code of conductWhat is expected, and who to tell
Known limitationsEverything that is not true yet, stated plainly

The part that matters

If your process dies between "go" and "done", most systems quietly let the next caller retry. Ratchet won't. The lease expires and the effect becomes `indeterminate` — a known unknown, surfaced instead of buried. What happens next is the policy you declared for that effect type:

on_indeterminateBehaviourUse for
block (default)No automatic retry. A human or verifying agent resolves it.Anything irreversible
retryA fresh attempt is granted, up to max_attempts.Vendors that are genuinely idempotent
probeCaller must verify at the vendor and record evidence first.Charges, transfers, payouts

Exactly-once delivery is not achievable in a distributed system and this project does not claim it. What Ratchet guarantees is at-most-once initiation, a recorded outcome that later callers replay, and an explicit state for the case nobody else admits exists.


Quick start

Requirements: Node 20.11+, Docker (for local Postgres).

npm install

cp .env.example .env # defaults work for local development npm run dev:db # Postgres on :5433 via Docker npm run migrate npm run dev # control plane on :8787 npm run dev:worker # lease reaper + webhook delivery (separate terminal)

Then open http://localhost:8787, or drive it from the shell:

bash examples/curl/walkthrough.sh

npm run seed populates a workspace with realistic state — a completed effect, a duplicate, an indeterminate one, and one awaiting approval — so the console has something to show.

Or with Docker Compose
AUTH_SECRET=$(openssl rand -base64 32) docker compose up --build

The core loop

# 1. Ask, before you act.

curl -X POST http://localhost:8787/v1/effects/begin \ -H "Authorization: Bearer $RATCHET_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "effect_type": "email.send", "idempotency_key": "welcome:user_123", "payload": { "to": "sam@example.com" }, "estimated_cost_micros": 800 }'

→ { "decision": "execute", "effect_id": "eff_...", "lease_token": "lt_..." }

2. Do the real thing, yourself. Ratchet never touches it.

3. Say what happened.

curl -X POST http://localhost:8787/v1/effects/eff_.../report \ -H "Authorization: Bearer $RATCHET_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "lease_token": "lt_...", "outcome": "succeeded", "result": { "message_id": "msg_9f2" } }'

Any later caller with the same key now gets:

→ { "decision": "duplicate", "result": { "message_id": "msg_9f2" } }

The one rule: report failed only when you *know* the action did not reach the outside world. If you are unsure — a timeout, a dropped connection — report nothing. The lease lapses and Ratchet records an honest indeterminate. A false failed is worse than silence, because it licenses a duplicate.

Idempotency keys

Derive the key from the work, deterministically.

GoodBroken
welcome-email:user_123uuid4()
invoice:2026-08:acct_88123"send-" + Date.now()
pr:acme/api:feature-authf"job-{attempt_number}"

A key that changes on every attempt makes every retry look like new work.


When Ratchet is unreachable

Ratchet sits in your critical path, so decide this before integrating: on an outage your agent either acts without the gate (fail-open) or refuses to act (fail-closed). Use fail-closed for anything you would have to apologise for; fail-open where the vendor deduplicates anyway.

Full contract, client patterns, and the honest availability posture: docs/FAILURE_MODES.md.

Architecture

                    ┌──────────────────────────────┐

agents ──────────▶│ control plane (stateless) │ REST + MCP │ Fastify · /v1 · /mcp · web │ └──────────────┬───────────────┘ │ ┌──────────────▼───────────────┐ │ Postgres │ │ effects · policies · ledger │ │ spend windows · audit │ └──────────────▲───────────────┘ │ ┌──────────────┴───────────────┐ webhooks ◀────────│ worker (long-running) │ │ lease reaper · delivery · GC│ └──────────────────────────────┘

The control plane is stateless and scales horizontally — it may run on serverless infrastructure. The worker may not. It expires leases on a timer whether or not a request is in flight; a serverless function cannot do that. Run it as a long-running container. Multiple replicas are safe (every claim uses FOR UPDATE SKIP LOCKED).

At-most-once is enforced by a database unique constraint on (workspace_id, effect_type, idempotency_key) — not by application logic.

Full detail: docs/handoff/ARCHITECTURE.md.


Deploying

The control plane is stateless and can scale freely. The worker cannot — it expires leases on a timer whether or not a request arrives, so it must be a long-running process. That single constraint rules out purely serverless hosts (Vercel, Netlify functions) despite their being easier, and is why fly.toml runs both process groups from one image.

brew install flyctl && fly auth login   # once, needs your browser

npm run deploy:fly

The script is idempotent: it creates the app, provisions managed Postgres, generates AUTH_SECRET once (never rotating it, since that would invalidate every API key), deploys both processes, and verifies readiness. It refuses to proceed unless preflight passes:

npm run deploy:preflight

Preflight runs the full suite and production build, then checks that AUTH_SECRET is strong and not the dev default, PUBLIC_URL is set (otherwise the manifest would advertise localhost), RATE_LIMIT_OVERRIDE is unset, private-network webhooks are off, CORS carries no wildcard, and — if Stripe is selected — that both the key and the webhook secret are present. It prints no secret values.

Any container platform works; only fly.toml is Fly-specific. Set DATABASE_URL, AUTH_SECRET, PUBLIC_URL, NODE_ENV=production, then run node dist/api/server.js (scale freely) and node dist/worker/main.js (at least one, always on).

To rehearse the exact production containers locally:

AUTH_SECRET=$(openssl rand -base64 32) docker compose up --build

Commands

CommandWhat it does
npm run devControl plane with reload
npm run dev:workerWorker with reload
npm run dev:db / dev:db:downLocal Postgres in Docker
npm run migrateApply migrations (advisory-locked; safe to run concurrently)
npm run seedPopulate a workspace with realistic state
npm testTypecheck + unit + integration + e2e against a disposable database
npm run test:unit / test:integration / test:e2eOne layer
npm run typecheck / lintTypeScript in strict mode
npm run buildCompile to dist/
npm start / start:workerRun the compiled build
npm run mcp:stdioMCP server over stdio
npm run openapiWrite the OpenAPI document to disk
npm run deploy:preflightVerify the build and configuration are safe to deploy
npm run deploy:flyDeploy control plane, worker, and database to Fly.io
npm run metricsOperating metrics against the pricing-review thresholds
npm run stripe:checkReport payment configuration and verify it against Stripe
npm run stripe:listenForward Stripe events to a local instance and print a webhook secret
npm run auditProduction dependency audit

Environment

Every variable, with defaults and safety notes, is in .env.example. The two that are required:

VariableNotes
DATABASE_URLPostgres connection string
AUTH_SECRET32+ random characters. Derives the API-key pepper and console session ids. Rotating it invalidates every API key and session.

In NODE_ENV=production the process refuses to start if AUTH_SECRET is the development default or shorter than 32 characters, if CORS_ORIGINS contains *, or if WEBHOOK_ALLOW_PRIVATE_NETWORK is on.


For agents

SurfacePath
OpenAPI 3.1/openapi.json — generated from the schemas the routes validate against
Capability manifest/.well-known/agent-manifest.json — including what Ratchet *doesn't* do
Machine docs/llms.txt
MCP tool schemas/mcp/info
MCP (Streamable HTTP)POST /mcp with Authorization: Bearer

| MCP (stdio) | npx -y ratchet-mcp with RATCHET_API_KEY — see [`packa

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

问 PopNx