DubStack
Commands

dub mcp

Start the DubStack MCP server over stdio for AI agents.

Usage

# Speak Model Context Protocol over stdio (run from an AI agent host)
dub mcp

dub mcp exposes DubStack commands as MCP tools so AI coding agents can inspect and operate on the stack. The full tool list, request/response shape, and security model are documented in the MCP guide.

Security mode

Mutating MCP tools are gated by dub config mcp-mode:

# Disable mutating tools entirely (read-only)
dub config mcp-mode read-only

# Require terminal confirmation for mutating tools (default)
dub config mcp-mode interactive

# Allow mutating tools to run without prompts
dub config mcp-mode trusted

See the MCP guide for the tool inventory and best practices for each mode.

On this page