wraptool
  • Home
  • Getting Started
    • Getting started

    • Linux setup
    • Guix setup
    • macOS setup
    • Windows setup
  • Reference
    • Installation
    • Configuration reference
    • CLI reference
    • MCP integration
  • Security
  • Operations
    • Practical examples
    • Troubleshooting
    • Hot-reload & capability requests
    • Request-Review Web UI
  1. The privilege line for agentic development
  • The privilege line for agentic development
  • Start
    • Getting started
    • Platform setup
      • Linux setup
      • Guix setup
      • macOS setup
      • Windows setup
    • Installation
  • Reference
    • Configuration reference
    • CLI reference
    • MCP integration
  • Trust boundary
    • Architecture and trust boundaries
    • Security model
    • Isolated Development Environments with wraptool
    • Hardening git as a wrapped tool
  • Operate
    • Practical examples
    • Hot-reload & capability requests
    • Request-Review Web UI
    • Troubleshooting
  • Project
    • Contributing
    • Releases and changes

The privilege line for agentic development

Wraptool exposes selected host CLI operations and local MCP-server tools without placing host credentials in the coding environment.

Get started Read the security model

UNTRUSTED WORKSPACE

AI harness · source tree · builds · dependencies

WRAPTOOL

deny → allow → constraints

TRUSTED HOST

CLI binaries · MCP servers · credentials

One boundary, one job

Wraptool is a Go Model Context Protocol server for a specific deployment pattern: keep the AI harness and project code in a credential-free container, while a host process mediates the few operations that need SSH keys, API tokens, cloud credentials, or kubeconfig. Those capabilities can come from wrapped CLI commands or local stdio MCP servers.

Constrained CLI tools

Unknown operations default-deny. Rules match exact subcommand token sequences, then enforce allowed flags, denied flags, value constraints, and optional positional limits.

Filtered MCP servers

Wraptool can spawn local stdio MCP servers with host-side credentials and expose only named tools under a configured prefix. Deny wins; arguments pass through.

Explicit execution

Commands run as argument arrays through exec.CommandContext, never through a shell. Calls have timeouts, bounded CLI output, result scrubbing, and an audit event.

Human escalation

Denied calls can become capability requests. An operator reviews them through the CLI or local admin UI; accepted changes hot-reload without exposing the admin boundary to the harness.

Primary workflow

# From a Git worktree, after installing wraptool and creating its config:
wraptool up

up ensures the shared host server is running, chooses the Guix or Dev Container runtime, wires the selected harness to MCP, and opens a shell when attached to a terminal. Local compilation, tests, and ordinary Git can stay inside the box; credentialed operations cross the policy boundary.

For credentialed APIs already packaged as MCP servers, Wraptool can proxy their allowed tools instead of forcing them through a CLI adapter. See MCP integration.

WarningA bounded capability system, not a sandbox for everything

The workspace retains its source tree and network access. It can read the MCP token and invoke every capability granted to the harness. CWD containment is only enforced when mcp.allowed_cwd_roots is configured, and output scrubbing is heuristic. Read Security model before exposing real credentials.

Choose your next step

  • Install wraptool and verify the binary.
  • Create the first policy.
  • Connect an MCP client.
  • Inspect architecture and trust boundaries.
Back to top
Getting started

Wraptool is GPLv3-licensed software.

 
  • Source

  • Issues