Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
제작자가 쓴 설명(영어 원문)
Deterministic policy firewall for AI agent tool calls - YAML rules, not a fuzzy risk score.
이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.
이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
필요한 것
어떤 앱을 쓰세요?
위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.
Claude Desktop → Settings → Developer → Edit Config를 열고 claude_desktop_config.json에 이 내용을 붙여 넣으세요
{
"mcpServers": {
"agent-guardrail": {
"command": "uvx",
"args": [
"guardrail-mcp"
]
}
}
}터미널에서 이 명령어를 실행하세요
claude mcp add agent-guardrail -- uvx guardrail-mcp프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요
{
"mcpServers": {
"agent-guardrail": {
"command": "uvx",
"args": [
"guardrail-mcp"
]
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
프로젝트의 .vscode/mcp.json에 붙여 넣으세요
{
"servers": {
"agent-guardrail": {
"type": "stdio",
"command": "uvx",
"args": [
"guardrail-mcp"
]
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
이 서버는 내 컴퓨터에서 실행되는데, ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.
선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.
이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.
누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 7일 점검
레지스트리 이름이 GitHub 계정 rudimentall1 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요
내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요
내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.
레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.
내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).
GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(1.0.2)은 3개월 전 레지스트리에 올라왔어요.
Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Python (uv)도 있어야 해요.
같은 카테고리에는: Spec Driven Development, Remote Desktop Commander, LexPact UK Contracts
같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.
카드 보는 법:★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Generate UK-law contracts: NDA, service, freelance, recruiter terms of business, IR35.
제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.
📄 Read the white paper
Put a policy firewall between an AI agent and every irreversible action.
Your agent wants to run a shell command, send an email, or move money. Guardrail checks that request against rules you wrote, before it happens, and either lets it through, asks a human, or blocks it — with a plain- English reason every time.
git clone <this repo> && cd agent-guardrail
pip install -r requirements.txt
python3 cli.py check --agent trading-agent-001 --tool wallet.transfer \ --args '{"amount": 9999, "to": "0xabc"}'
Or pip install guardrail-mcp gives you a guardrail command directly — same output, no repo checkout required (falls back to the policy bundled in the package if you don't point --policy at your own file):
guardrail check --agent trading-agent-001 --tool wallet.transfer \
--args '{"amount": 9999, "to": "0xabc"}'
{
"decision": "BLOCK", "matched_rules": [ {"rule": "numeric_cap_exceeded", "severity": "BLOCK", "message": "amount=9999.0 exceeds cap 5 for 'wallet.transfer' (unknown agent)"} ] }
That's it — no server, no account, no API key. policies/default.yaml is the file that decided this; open it and change the numbers to match your own rules.
Most "AI agent security" projects (including an earlier project of mine) lean on statistical risk scores computed from data nobody can actually verify at build time — wallet age, "reputation," contract "risk" — which either requires paid data feeds you don't have yet, or quietly becomes mock data pretending to be real. Fine for prototyping, dishonest to ship.
Guardrail only makes claims it can back up. Every check is a deterministic rule — a blocklist entry, a regex match, a numeric cap, a rate limit — evaluated against a policy file you write and can audit yourself, backed by a real, persistent audit log (SQLite) you can query. Nothing here pretends to know something it doesn't.
It's also not blockchain-specific. Shell execution, email, HTTP requests, file deletion, database writes, crypto transactions — same engine, same policy file, same rules.
Shown above. No setup, instant feedback while you write rules.
mcp_server.py) — the easy on-ramp, advisoryExposes guardrail_check, guardrail_record_outcome, and guardrail_agent_history as MCP tools any MCP-compatible agent (Claude Desktop, Claude Code, custom MCP clients) can call.
{
"mcpServers": { "guardrail": { "command": "python3", "args": ["/absolute/path/to/agent-guardrail/mcp_server.py"], "env": { "GUARDRAIL_POLICY": "/absolute/path/to/agent-guardrail/policies/default.yaml" } } } }
Then tell your agent (in its system prompt) to always call guardrail_check before spending money, deleting data, messaging someone externally, or running code.
Be clear-eyed about its limit: like any MCP tool, nothing stops the calling model from just not invoking it. This only helps if the agent is instructed to always check first — for a guarantee it can't skip, see #3.
guardrail.decorator.enforce — the real guaranteeWraps the actual Python function that performs a tool's side effect. The check runs in your code, before that function executes — the model never gets a chance to call the real function directly.
from guardrail.decorator import enforce, BlockedActionError
@enforce(engine, tool_name="send_email") def send_email(agent_id: str, to: str, subject: str, body: str): ... # only runs if the decision is ALLOW, or WARN-and-confirmed
Use this if you're building your own agent loop (LangChain, CrewAI, a custom MCP host, a Slack bot with tool access). Run python3 examples/example_agent_usage.py to see it block a real function call.
guardrail.mcp_enforced_server.EnforcedGuardrailMCPServer — the real guarantee, over MCPThe MCP server in #2 above is honest about being advisory: the model gets a guardrail_check tool, but nothing stops it from calling the *actual* tool (exposed by some other MCP server, or by the model's own direct access) without checking first, or checking one thing and doing another. If the model talks to your infrastructure only over MCP - no Python decorator possible - this is the same #3 guarantee for that case: the operator registers real action executors (the code that holds real credentials and performs the real side effect) as the *only* way the model can invoke that action at all.
from guardrail.mcp_enforced_server import EnforcedGuardrailMCPServer
def do_transfer(request): wallet = get_wallet_for(request.agent_id) # real credentials, held here - never exposed to the model tx_hash = wallet.transfer(to=request.arguments["to"], amount=request.arguments["amount"]) return {"tx_hash": tx_hash}
server = EnforcedGuardrailMCPServer(policy_path="policies/default.yaml") server.register_action( "wallet.transfer", "Transfer funds from the agent's wallet.", input_schema={"type": "object", "properties": {"to": {"type": "string"}, "amount": {"type": "number"}}, "required": ["to", "amount"]}, executor=do_transfer, ) server.serve_stdio()
The model is given exactly one MCP tool named wallet.transfer - there is no separate, unguarded way to move funds through this server. A BLOCK decision means do_transfer never runs. Both this and enforce() share one implementation of "check, maybe route WARN to a human, run only if not blocked, report the real outcome back" (guardrail/enforcement.py) - not two independently-maintained copies of the same guarantee.
on_warn is the hook — Guardrail ships two ready-made implementations:
Local web UI (guardrail/confirmation/web_ui.py) — a tiny built-in server (stdlib only, no Flask) with Approve/Reject buttons. The wrapped function blocks until someone clicks one, or times out (fails closed — timeout means reject, not "allow by default").
from guardrail.confirmation.web_ui import ConfirmationServer
confirmation = ConfirmationServer(port=8787, timeout_seconds=300) confirmation.start(open_browser=True)
@enforce(engine, tool_name="wallet.transfer", on_warn=confirmation.request_confirmation) def transfer(...): ...
Try it live: python3 examples/example_web_confirmation.py, then open http://localhost:8787.
Terminal prompt (guardrail/confirmation/cli_ui.py) — for scripts and local testing where a browser is overkill:
from guardrail.confirmation.cli_ui import cli_confirm
@enforce(engine, tool_name="wallet.transfer", on_warn=cli_confirm) def transfer(...): ...
Neither is required — on_warn is just a function (decision) -> bool, so a Slack message, a ticket, or anything else you already use works too.
Policies are plain YAML — see policies/default.yaml for a real, working starting point (11 confirmation-gated tools, 10 destructive-pattern checks, numeric caps, domain rules, rate limits, all commented).
| Rule type | What it checks |
|---|---|
blocked_tools | Tool names that are never allowed |
confirmation_required_tools | Tool names that always produce WARN |
argument_patterns | Regex against the JSON-serialized call arguments — destructive shell commands, SQL, leaked credentials, path traversal, SSRF, force-pushes, regardless of which tool carries them |
numeric_caps | Per-tool numeric field caps, tighter for agents with no history |
aggregate_caps | A cap shared across *several* tools, tracked as one running total per agent — see below |
domain_rules | Allow/deny lists on a URL or email-recipient field, per tool |
rate_limits | Sliding-window call limits per (agent, tool), backed by SQLite |
numeric_caps limits each tool independently — wallet.transfer capped at 1000/day and wallet.approve capped at 1000/day separately means an agent using both can still move 2000/day combined. aggregate_caps closes that: every tool listed in the same group draws from one shared running total, e.g.
aggregate_caps:
daily_money_movement: tools: wallet.transfer: amount wallet.approve: amount window_seconds: 86400 max_unknown_agent: 5 max_known_agent: 1000
Only *confirmed* spend counts toward the total: a BLOCKed request never adds anything, and a request that's provisionally recorded (because its own check passed) is refunded if the real action later turns out not to have succeeded — engine.record_outcome(request_id, "error"), called automatically by both enforce() and the enforced MCP server (they share one implementation of this, guardrail/enforcement.py) when the real executor raises, or when a WARN a human rejects results in a BlockedActionError. Real enforcement of this therefore has the same caveat as everything else that depends on record_outcome being called: it works fully under enforce() and the enforced MCP server (see below); under the *advisory-only* MCP server (#2 above), a provisionally-recorded amount just stays recorded, since nothing ever reports back whether the action actually happened. See guardrail/storage/aggregate_spend.py's module docstring for the full picture.
No code changes needed to adjust any of this — edit the YAML, restart the process (or the MCP server).
pip install -r requirements.txt
PYTHONPATH=. python3 -m unittest discover -s tests -v
134 tests: rule evaluation, the full engine pipeline (real SQLite-backed rate limiting, aggregate spend tracking, and audit persistence), the enforce decorator and the enforced MCP server (both proving a BLOCK genuinely prevents the real action from running, sharing one implementation of that guarantee), the advisory MCP server's JSON-RPC handling, the confirmation web UI over real HTTP requests against a live server, and a dedicated suite that checks the *shipped* policies/default.yaml — not just synthetic test policies — actually catches what it claims to.
AuditLog redacts values whose key looks sensitive (password, api_key, authorization, ...) and a couple of high-confidence value shapes (PEM private key blocks, JWT-shaped strings) regardless of key name, recursing into nested dicts/lists - see guardrail/storage/redaction.py for exactly what is and isn't caught, and why general-purpose entropy heuristics were deliberately left out (too many false positives on ordinary UUIDs/hashes). Pass AuditLog(redact=False) to store arguments as-submitted, or extra_sensitive_keys={...} to redact additional field names specific to your tools.argument_patterns for whatever your agents actually touch.127.0.0.1 by design (not exposed on the network), but anyone with local access to that port can approve/reject. Fine for a single developer's machine; put it behind your own auth if multiple people share the host.None of these are m
앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요