SM

strumbyte/mcp-writ

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

0 stars 0 forks 품질 86 트렌드 20MIT

MCP 서버에 대한 정책 시행, OS sandboxing 및 JSON-RPC 감사

개요

로컬 stdio Model Context Protocol (MCP) 서버에 대한 정책 시행, OS sandboxing 및 JSON-RPC 감사. mcp-writ은 MCP 클라이언트와 서버 사이에 자리 잡고 있으며, 정밀한 곡물 보안 정책 - 파일 시스템 액세스 제어, syscall 필터링 및 도구 허용. Native syscall 분석은 Linux x86-64 및 AArch64 ELF binaries 및 macOS ARM64 Mach-O binaries를 포함합니다. 지원 대상을 참조하십시오. mcp-writ은 제어판 집행 포인트입니다. 도구 목록 해시 핀이 구성 될 때 서버의 도구 정의를 검증하고, 허용하거나 denies 도구 / 통화, 제약 경로 및 호스트 인수, 실행 환경을 제어하고 감사 로그를 기록합니다. 데이터 비행기 검사 - 응답 바디 DLP, HTTP / SSE 게이트웨이, LLM 기반 판단 - 다른 층의 작업입니다; 대신 이러한 검수원과 시리즈에 mcp-writ을 배치하십시오. - — Linux, Windows 및 macOS에서 OS sandboxing, JSON-RPC 감사와 결합. - — root 권한없이 실행.

개요(AI 번역)

한국어

정책 시행, OS sandboxing 및 로컬 stdio에 대한 JSON-RPC 감사 모형 Context 의정서 (MCP) 서버. mcp-writ은 MCP 클라이언트와 서버 사이에 자리 잡고 있으며, 정밀한 곡물 보안 정책 - 파일 시스템 액세스 제어, syscall 필터링 및 도구 허용. Native syscall 분석은 Linux x86-64 및 AArch64 ELF binaries 및 macOS를 포함합니다. ARM64 Mach-O binaries - 지원 대상을 참조하십시오.

mcp-writ은 제어반 시행점입니다: 서버의 지정 tools-list-hash] 핀이 구성, 허용 또는 denies tools/call, constrains 경로 및 호스트 인수, 제어 환경 실행 및 감사 로그를 기록합니다. 데이터 비행기 검사 - 응답 바디 DLP, HTTP / SSE 게이트웨이, LLM 기반 판단 - 다른 층의 일입니다; 같은 시리즈에 mcp-writ을 배치 그것을 대신 할 것으로 예상보다 검사기.

특징

  • Multi-layer Defense - Linux, Windows 및 macOS에서 OS 샌드박스링, JSON-RPC 감사와 결합. -Non-privileged operation — root 권한 없이 실행합니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

mcp-writ

日本語版 / Japanese

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

GitHub에서 전체 README 보기

설치

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": {} } } }