Back to Home
tomblancdev icon

pinocchio

Verified Safe

by tomblancdev

Overview

An MCP server that spawns autonomous Claude Code agents in isolated Docker containers for secure code analysis, development, and modification.

Installation

Run Command
exec docker compose run --rm -T --service-ports mcp-server

Environment Variables

  • PROJECTS_ROOT
  • HOST_CLAUDE_DIR
  • HOST_CONFIG_DIR
  • HOST_GH_CONFIG
  • ABSOLUTE_MAX_TIMEOUT
  • MAX_CONCURRENT_AGENTS
  • MAX_SPAWNS_PER_MINUTE
  • DOCKER_HOST

Security Notes

The project demonstrates a robust defense-in-depth security model. Key mitigations include a Docker Socket Proxy to block dangerous operations (BUILD, COMMIT, EXEC, VOLUMES, SECRETS), a workspace allowlist with symlink resolution (fs.realpath) and explicit path/glob validation (including a dangerous glob blocklist), read-only workspace mounts by default with granular write access, container hardening (non-root, CAP_DROP ALL, memory/CPU limits, no-new-privileges), secure handling of GitHub tokens via temporary files with restrictive permissions, rate limiting for concurrent agents and spawn frequency, and comprehensive input validation for container names, tasks, and agent IDs. Audit logging tracks security-relevant events. There are no obvious 'eval' or obfuscation patterns. The main remaining considerations are the inherent prompt injection risk common to LLMs operating in 'YOLO' mode and that agent containers run with `ReadonlyRootfs: false` (necessary for dynamic package installation) and default network access (needed for LLM API communication).

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens2500
Stars0
Forks1
Last Update2026-01-18

Tags

MCPClaudeDockerAI AgentSecurity