Open-source B2B and marketplace ecommerce; new stores include an MCP server for AI agents.
Deadlatch
개요
제작자가 쓴 설명(영어 원문)
Local advisory pre-trade risk gate for agents. Never places orders.
PopNx MCP의 세 기둥
이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.
- 사용자 의견i아직 리뷰가 없어요리뷰는 다음 단계에서 계정 기능과 함께 열려요
- 우리의 기본 점검i1개 중 1개 통과공개된 정보로 점검했으며, 코드는 아직 스캔하지 않았어요
- 사용 정도i아직 측정 안 함★ –
할 수 있는 일
이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.
- 연결 방식: 내 컴퓨터에서 실행
- 전송 방식: stdio
- 카테고리: 온라인 쇼핑몰 및 결제
설치
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
설치하기 전에
- 기본 점검: 1개 중 1개 통과
- 내 컴퓨터에서 내 사용자 계정의 권한(파일, 네트워크, 앱)으로 실행돼요.
- 레지스트리에 입력해야 할 키가 나와 있지 않아요.
필요한 것
- PyPIPython의 uv 설치(uvx 명령어용)
어떤 앱을 쓰세요?
위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.
Claude Desktop → Settings → Developer → Edit Config를 열고 claude_desktop_config.json에 이 내용을 붙여 넣으세요
{
"mcpServers": {
"deadlatch": {
"command": "uvx",
"args": [
"deadlatch",
"--policy",
"your-value",
"--portfolio",
"your-value"
]
}
}
}터미널에서 이 명령어를 실행하세요
claude mcp add deadlatch -- uvx deadlatch --policy your-value --portfolio your-value이 서버는 실행 명령어에 값을 넣어야 해서, 설정을 복사한 뒤 직접 채워 주세요.
또는 설정을 직접 복사하기
프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요
{
"mcpServers": {
"deadlatch": {
"command": "uvx",
"args": [
"deadlatch",
"--policy",
"your-value",
"--portfolio",
"your-value"
]
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
이 서버는 실행 명령어에 값을 넣어야 해서, 설정을 복사한 뒤 직접 채워 주세요.
또는 설정을 직접 복사하기
프로젝트의 .vscode/mcp.json에 붙여 넣으세요
{
"servers": {
"deadlatch": {
"type": "stdio",
"command": "uvx",
"args": [
"deadlatch",
"--policy",
"your-value",
"--portfolio",
"your-value"
]
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
이 서버는 내 컴퓨터에서 실행되는데, ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.
선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.
이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
할 수 있는 일
내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.
기본 점검i
누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 7일 점검
- ✓ 통과
제작자와 저장소 일치
레지스트리 이름이 GitHub 계정 Diabloluo 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요
- … 아직 점검 안 함
계속 관리되고 있음
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
- … 아직 점검 안 함
라이선스 있음
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
- – 해당 없음
엔드포인트 응답
내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요
- – 해당 없음
OAuth로 로그인
내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요
- … 아직 점검 안 함
도구 설명에 숨겨진 지시 없음
내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요
온라인 쇼핑몰 및 결제 카테고리의 다른 서버와 비교i
- 이 카테고리의 다른 서버 1748개 중 0%보다 스타가 많아요
- 이 카테고리의 다른 서버 1748개 중 42%보다 최근에 레지스트리에 공개됐어요
- 기본 점검 결과가 이 카테고리의 다른 서버 1748개 중 100%와 같거나 더 좋아요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
자주 묻는 질문
Deadlatch, 안전한가요?
해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.
어떤 키나 코드가 필요한가요?
레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.
내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?
내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).
아직 관리되고 있나요?
GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(0.1.2)은 지난달 레지스트리에 올라왔어요.
어떤 앱에서 쓸 수 있나요?
Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Python (uv)도 있어야 해요.
대신 쓸 수 있는 건 뭐가 있나요?
같은 카테고리에는: Spree Commerce: open-source B2B and marketplace ecommerce, Stripe MCP, MCP Cn Commerce
대안
같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.
카드 보는 법:★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i
Stripe MCP
MCP server integrating with Stripe - tools for customers, products, payments, and more.
MCP Cn Commerce
8 read-only MCP platform entries; support is operation-specific; merchant live acceptance pending
제작자의 README
README 열기
제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.
Deadlatch
The pre-trade latch for your trading agent. Advisory-only.
Three things you need to know before anything else:
- You need an independent, cross-broker gate that you control. If an agent can place orders on your account, the last check between the agent and the broker should not be the agent itself — and it should not be locked to one broker's UI or rules.
- Deadlatch does not predict, does not recommend, and does not place orders. It answers one question only: *is this order allowed right now?* It is not a signal generator and it is not a broker.
- Every answer comes with reasons, evidence, and a local audit record on Linux/macOS. PASS / WARN / BLOCK is never a bare verdict — you can see which rule hit, why, and what was evaluated. Durable audit writes (
init/append/repair/prune/ shadow report) are supported on Linux and macOS only. On Windows the package still imports, and the rule engine / Guard / CLI / MCP still compute decisions; those write paths fail closed withaudit_platform_unsupported. Offlineverify/readof a stopped snapshot remain available. Windows MCP is a limited integration path, not a full trusted audit chain.
Honest boundary (please read): Deadlatch is advisory. It cannot force an agent that never calls it to call it, and it cannot stop an agent that ignores a BLOCK from submitting the order somewhere else. Whether the agent calls the guard and honors the result is the integrator's decision. Do not rely on this tool as a guarantee against loss — it is a gate, not an insurance policy.
- License: MIT — see LICENSE.
- 中文文档: README.zh-CN.md
- Security: SECURITY.md · Contributing: CONTRIBUTING.md · Disclaimer: DISCLAIMER.md
Start here
The current install path is the verified PyPI deadlatch==0.1.2, published on 2026-09-22. The stable GitHub v0.1.2 Release targets b072e8a4d4b053e1d5a428dbb9c47e06652fbf4c; its wheel/sdist assets match the PyPI originals.
pip install deadlatch==0.1.2
The published MCP Registry name is io.github.Diabloluo/deadlatch at version 0.1.2, verified active/latest on 2026-09-22. The local server.json matches that published version. The command below starts the verified PyPI package directly.
MCP-first start:
uvx --from deadlatch==0.1.2 deadlatch-mcp --policy policy.yaml --portfolio portfolio.json
--policy and --portfolio are required local files. --audit-path and --kill-switch-path are optional. Use fictional or your own simulated inputs only. Deadlatch is advisory-only: it never places orders and cannot stop an agent that never calls it. Option orders must use the broker's unique full contract code as symbol. A historical GitHub pre-release remains at v0.1.0.dev1; it is not the current install path.
Then:
- Run a fictional-data Quick Start below (Python, CLI, or MCP) on Linux or macOS. Confirm
PASS→BLOCK→ local audit. Windows can import the package and run rule computation; it is not the audit-write Quick Start. - Request a 20-minute integration assessment only if you already have an order-intent or simulated execution path: open the assessment form.
That GitHub issue is public. Do not paste accounts, positions, orders, API keys, tokens, customer names, or private paths. Security defects must go through GitHub Security Advisories, not a public issue.
Quick Start (60 seconds each)
All three quick starts use fictional data and a temporary audit path. They are executed from the same source scripts by the test suite, so they cannot drift from the documentation. Full audit-write / MCP Quick Start requires Linux or macOS. Windows may import the library and evaluate rules; it will not initialize or append a durable audit collection.
1. Python API
pip install dist/deadlatch-*.whl # or: pip install -e .
python docs/quickstart/python.py
Shows Guard.from_policy(...) → Order / Portfolio → guard.check(...): a valid order returns PASS / 0; an oversized order returns BLOCK / 3 with the hit rules; on BLOCK the example caller stops — no broker call is ever made.
2. CLI
bash docs/quickstart/cli.sh # requires `deadlatch` on PATH
Creates fresh inputs in a temp directory (dynamic timestamps — never goes stale), then runs deadlatch check for PASS (exit 0), BLOCK (exit 3), an input error (exit 4), and a --json check, plus shadow report --json over the audit.
3. MCP (stdio)
python docs/quickstart/mcp_client.py # requires `deadlatch` installed
Starts deadlatch-mcp as a real subprocess over stdio, lists the five tools, and calls check_order once for PASS and once for BLOCK. policy / portfolio / audit paths are server startup configuration — an agent cannot swap them as tool arguments. BLOCK is a constraint the caller must honor; technically the guard cannot force a fully bypassing agent to call it.
What it is / is not
| Deadlatch is | Deadlatch is not |
|---|---|
| A local, deterministic risk gate evaluated before you submit | A signal generator, recommender, or portfolio optimizer |
| A library, a CLI, and a stdio MCP server — no broker connectivity, no policy mutation | A broker adapter, an execution engine, or a market feed |
| An auditable check: every evaluation is written to a local JSONL log | A cloud service, a database, or a telemetry sink |
| USD-only, single-leg orders, one snapshot per check (v0.1) | Multi-leg, multi-currency, Greeks/IV-aware (see limitations) |
Who should use it
- Teams that already have an order-intent or simulated execution path and want an independent, deterministic pre-trade gate with a local audit trail.
- Developers who want a small, dependency-light, fail-closed building block they can integrate into their own execution pipeline.
- Anyone who wants to evaluate orders against a *policy they control*, expressed as plain YAML.
Who should not use it: anyone expecting a profit guarantee, a backtest engine, a portfolio manager, or a tool that enforces itself. If the agent never calls the guard, or ignores a BLOCK, nothing in this repository can stop it.
Core security boundary
- Local: everything runs on your machine; no account credentials are ever stored, read, or transmitted.
- No network core path: the library, CLI, and MCP server never open a socket, never register an HTTP/SSE route, and never call out for quotes or anything else (the MCP SDK's HTTP stack is a transitive dependency that business code never imports).
- Never places orders: the core package (library, CLI, MCP server) has no broker connectivity and never submits orders. Experimental read-only mapping examples exist only in the development workspace; they are not included in the public candidate or the wheel, and they are not live-verified integrations.
- Fail-closed: missing or malformed data → BLOCK (
exit 3); input/config errors →exit 4; internal errors →exit 5. An uncertain state is never reported as PASS. - Direction is snapshot-derived: order-side text is never accepted as proof of a close. Stock and option closing intent is recognized only when a fresh portfolio snapshot contains a matching, opposite-side position with sufficient quantity. For options,
symbolmust be the broker's unique full contract code; never reuse an underlying ticker across different expiries, strikes, or rights. - USD-only (v0.1): any currency mismatch (order, portfolio, positions) is an input error (
exit 4); the MCP account-status tool fail-closes on mismatch.
Write surface: the tool never modifies policy, portfolio, or kill-switch state, never connects to a broker, and never places an order. Two kinds of intentional local file writes exist:
- Audit subsystem:
Guard.check()/check_orderappend one sanitized v2 record to a UTC day shard next to the logical audit path (30-day retention). Append is a bounded tail write under a shared lock; it does not rewrite history. A new collection needs one explicitdeadlatch audit init(orinitialize_audit_state) before append; Guard/MCP never auto-migrate.deadlatch shadow reportanddeadlatch audit prunedelete whole shard files that fall outside the 30-calendar-day window.deadlatch audit repair --quarantinestill uses lock/tmp files andos.replacewhen it isolates a truncated tail. Ordinary append is not crash-atomic across files. POSIX locks are cross-process. v0.1.2 durable audit writes are Linux/macOS only; Windows writers receiveaudit_platform_unsupportedand do not skip directory fsync to report success. - Explicit migration output:
deadlatch migrate --outputwrites the migrated document only when you explicitly pass--output.
The public contract for these rules, Decimal thresholds, exit codes, and option-symbol requirements is docs/rules-spec.md.
The 12 rules (v0.1)
| # | Rule | What it guards |
|---|---|---|
| R1 | kill_switch | Global switch: off / full (block everything) / reduce_only (allow only inferred closing orders) |
| R2 | input_validity | Order passes schema, version gate, currency consistency, finite amounts (violations → exit 4) |
| R3 | max_order_quantity | Single-order quantity limit |
| R4 | max_order_value | Single-order notional limit (options: price × multiplier × quantity) |
| R5 | max_symbol_exposure | Exposure per underlying (options by strike × multiplier × quantity) |
| R6 | max_total_exposure | Portfolio gross exposure ratio |
| R7 | cash_margin_check | Post-trade cash floor and short-option margin |
| R8 | max_daily_loss | Daily loss ratio (PnL / day-start equity) |
| R9 | max_drawdown | Drawdown ratio from peak |
| R10 | order_time_validity | Order age / future timestamps (unparseable → fail-closed BLOCK) |
| R11 | data_freshness | Portfolio snapshot freshness (future snapshot → fail-closed) |
| R12 | missing_data_fail_closed | Missing/null/ill-formed portfolio data → exit 3 (data unusable = risk) |
Optional rules (R3–R7) are toggled by their config keys in policy.yaml; a missing optional key must be declared in acknowledged_disabled or the policy is rejected (exit 4). Mandatory rules (R1, R2, R8–R12) can never be disabled.
Exit codes
| Code | Meaning |
|---|---|
0 | PASS — the order is allowed as given |
2 | WARN — proceed only if your execution policy explicitly allows warnings |
3 | BLOCK — the order must not be submitted (risk rule or fail-closed data) |
4 | Input / configuration error — the caller misused the API, not a risk event |
5 | Internal / rule exception — treated as BLOCK (fail-closed) |
In shadow mode the internal verdict is recorded (shadow_verdict) while the external projection is PASS / 0; kill-switch hits and exit 4/5 are never projected away.
Data contracts & migration
Schemas are versioned JSON Schema 2020-12 files shipped inside the package: order, portfolio, policy, result, audit-record, shadow-report, audit-maintenance-result, audit-prune-result, audit-write-state, audit-state-result. Explicit offline migration is available for legacy documents:
deadlatch migrate --kind order --input order_v1.json [--out앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요