
strumbyte/mcp-writ
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
MCPサーバーのポリシーの執行、OSのサンドボックス、およびJSON-RPCの監査
概要
現地のstdioモデルコンテキストプロトコル(MCP)サーバーのポリシーの執行、OSサンドボックス、JSON-RPCの監査。 mcp-writ は、MCP クライアントとサーバー間で座り、細かい階層のセキュリティポリシーを強化します。ファイルシステムアクセス制御、syscall フィルタリング、およびツールの許可。 ネイティブ syscall 解析は Linux x86-64 と AArch64 ELF のバイナリと macOS ARM64 Mach-O のバイナリをカバーしています。サポートされているターゲットを参照してください。 mcp-writ は、コントロールプレーン・ファンクション・ポイントです。ツールリスト・ハッシュ・ピンが構成、許可、または拒否されたツール/コール、制約パスとホスト・引数、起動環境を制御し、監査ログを記録するときに、サーバーのツール定義を検証します。 データプレーン検査 — response-body DLP, HTTP/SSE ゲートウェイ, LLM ベースの判断 — は異なるレイヤーのジョブです。mcp-writ を一連のインスペクターに置き換えるのではなくデプロイします。 - — Linux、Windows、macOS 上での OS サンドボックス化、JSON-RPC の監査と組み合わせる。 - — — ルート権限なしで実行します.
概要(AI 翻訳)
日本語版/英語版
政策の執行、OSのサンドボックス化およびローカルstdioのためのJSON-RPCの監査 モデルコンテキストプロトコル(MCP)サーバー。 mcp-writ は、MCP クライアントとサーバー間で座り、細かい階層のセキュリティポリシーを強化します。ファイルシステムアクセス制御、syscall フィルタリング、およびツールの許可。 Linux x86-64 および AArch64 ELF バイナリと macOS のネイティブ syscall 解析 ARM64 Mach-O バイナリ — サポートされているターゲットを参照してください。
mcp-writ は制御面の執行ポイントです: サーバの検証
[tools-list-hash] ピンが構成、許可または
denies [tools/call], 制約パスとホスト引数, 制御
環境を起動し、監査ログを記録します。
データプレーン検査 — 応答体 DLP, HTTP/SSE ゲートウェイ, LLM ベース
判断 — 異なるレイヤーのジョブです。このようなシリーズに mcp-writ をデプロイします。
それを取り替えるのではなく、検査官。
##特徴
- 多層防衛 — Linux、Windows、およびmacOSのOSのサンドボックス、JSON-RPCの監査と組み合わせる。
- 非特権操作 — ルート特権なしで動作します.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
mcp-writ
Policy enforcement, OS sandboxing, and JSON-RPC auditing for local stdio Model Context Protocol (MCP) servers. mcp-writ sits between the MCP client and server, enforcing fine-grained security policies — filesystem access control, syscall filtering, and tool allowlisting. Native syscall analysis covers Linux x86-64 and AArch64 ELF binaries and macOS ARM64 Mach-O binaries — see Supported targets.
mcp-writ is a control-plane enforcement point: it verifies the server’s
tool definitions when a tools-list-hash pin is configured, permits or
denies tools/call, constrains path and host arguments, controls the
launch environment, and records an audit log.
Data-plane inspection — response-body DLP, HTTP/SSE gateways, LLM-based
judgment — is a different layer’s job; deploy mcp-writ in series with such
inspectors rather than expecting it to replace them.
Features
- Multi-layer defense — OS sandboxing on Linux, Windows, and macOS, combined with JSON-RPC auditing.
- Non-privileged operation — runs without root privileges.
- Static analysis — inspect native ELF and Mach-O binaries and supported scripts — Python and JavaScript/TypeScript sources; other script files are identified from their shebang or the command name — to surface capabilities before execution.
- Policy generation and testing — generate KDL policy drafts, with optional tool discovery, self-tests, and dry-run auditing to help review them.
- Container support — build and wrap MCP server images, then run them with policy enforcement using Docker or Podman.
- Tool access controls — check tool permissions and arguments, hide denied or unlisted tools from
tools/list, protect sensitive paths, and optionally restrict sequences of tool calls. - Tool definition verification — scan advertised tool definitions, verify pinned hashes, and revalidate changes before resuming tool calls.
See the detailed guide for configuration, enforcement behavior, and platform limitations.
Architecture
flowchart TB
subgraph "Analysis: policy drafting"
I["Inspectorstatic analysis"] -->|capability profile| L["Legislatorpolicy drafting"]
T["MCP servertools/list discovery"] -.->|intent profile| L
L --> P[("policy.kdl")]
end
subgraph "Runtime enforcement"
P --> W["WardenOS sandbox"]
P --> A["AuditorJSON-RPC proxy"]
C["MCP client"] |stdio| A
A |stdio| S["MCP server"]
W -.->|applied before spawn| S
end
style I fill:#e3f2fd
style L fill:#e8f5e9
style W fill:#fff3e0
style A fill:#fce4ec
Inspector analyzes binaries and supported source files. Legislator uses those results and optional live tool discovery to draft a policy. At runtime, Warden applies the OS sandbox and Auditor checks MCP traffic. See the
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"filesystem": {
"command": "mcp-writ",
"args": [
"run",
"--policy", "/opt/mcp-config/policy.kdl",
"--audit-log", "/opt/mcp-logs/audit.jsonl",
"--", "mcp-server-filesystem", "/srv/mcp-data"
],
"env": {}
}
}
}