Effect gate for AI agents. An agent asks before it charges a card, ships a deploy, or sends the email, and gets back a durable decision — so the same real-world action is attempted at most once. Ratchet never performs the effect itself and holds no vendor credentials.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
本地运行
claude mcp add ratchet --env RATCHET_API_KEY='<RATCHET_API_KEY>' -- npx -y ratchet-mcp~/.codex/config.toml
[mcp_servers.ratchet]
command = "npx"
args = ["-y", "ratchet-mcp"]
env = { RATCHET_API_KEY = "<RATCHET_API_KEY>" }
# codex mcp add ratchet --env RATCHET_API_KEY='<RATCHET_API_KEY>' -- npx -y ratchet-mcp~/.cursor/mcp.json
{
"mcpServers": {
"ratchet": {
"command": "npx",
"args": [
"-y",
"ratchet-mcp"
],
"env": {
"RATCHET_API_KEY": "<RATCHET_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"ratchet": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"ratchet-mcp"
],
"env": {
"RATCHET_API_KEY": "<RATCHET_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"ratchet": {
"command": "npx",
"args": [
"-y",
"ratchet-mcp"
],
"env": {
"RATCHET_API_KEY": "<RATCHET_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"ratchet": {
"command": "npx",
"args": [
"-y",
"ratchet-mcp"
],
"env": {
"RATCHET_API_KEY": "<RATCHET_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"ratchet": {
"command": "npx",
"args": [
"-y",
"ratchet-mcp"
],
"env": {
"RATCHET_API_KEY": "<RATCHET_API_KEY>"
}
}
}
}远程托管
claude mcp add --transport http ratchet https://ratchetgate.com/mcp~/.codex/config.toml
[mcp_servers.ratchet]
url = "https://ratchetgate.com/mcp"
# codex mcp add ratchet --url https://ratchetgate.com/mcp~/.cursor/mcp.json
{
"mcpServers": {
"ratchet": {
"url": "https://ratchetgate.com/mcp"
}
}
}.vscode/mcp.json
{
"servers": {
"ratchet": {
"type": "http",
"url": "https://ratchetgate.com/mcp"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"ratchet": {
"httpUrl": "https://ratchetgate.com/mcp"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"ratchet": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://ratchetgate.com/mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"ratchet": {
"url": "https://ratchetgate.com/mcp"
}
}
}需要的环境变量
RATCHET_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。