Skip to content

Caveman Code· Open sourceCaveman Code

MCP Servers, Workspace Plugins, and Skills in Caveman Code

Connect MCP servers with strict environment allowlists (inheritEnv: false) and load workspace plugins and lazy skills without bloating prompt prefixes.

Caveman Code runs MCP servers and workspace plugins under strict environment isolation so opening an untrusted repository cannot read ambient host credentials.

Isolated stdio MCP servers#

Every stdio MCP server starts with inheritEnv: false, receiving only a minimal system allowlist (PATH, HOME, USER, LANG) plus the specific environment variables declared for that server. Provider API keys and host secrets in your shell never leak into MCP subprocesses.

Inspect active MCP connections from the CLI:

caveman-code mcp

Workspace plugins and lazy skills#

Workspace plugins declare skills (SKILL.md) and Markdown slash commands:

  • Stable cache prefixes. Only compact skill names and one-line descriptions sit in the cached prompt prefix.
  • Lazy activation. Full skill bodies load into context only when a turn activates that skill, avoiding token overhead when idle.
  • Shared Agent Skills path. Skills installed into ~/.agents/skills/ (including Caveman Cloud skills installed by cvm setup) appear automatically in Caveman Code.

QuickJS code-mode MCP (with_mcp)#

When running on Harness v4 (@caveman-ai/harness), attached MCP servers execute inside a sandboxed QuickJS WASM cell with compact one-line signatures rather than dumping dozens of verbose JSON schemas into every turn. See Harness v4 Engine.

Esc

Start here