Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.18 KB

mcp.md

File metadata and controls

26 lines (16 loc) · 1.18 KB

MCP server

hammer mcp runs an MCP server over standard input and output, giving an AI agent every command as a tool. Commands the app adds appear as tools too, once the app is running.

With Claude Code:

claude mcp add hammer -- ~/.local/bin/hammer mcp

Other clients take the same command, hammer mcp, in their MCP settings.

From a checkout, build hammer first so build output doesn't mix with the MCP messages:

swift build -c release --product hammer
claude mcp add hammer -- "$(swift build -c release --show-bin-path)/hammer" mcp

Set HAMMER_AGENT_PORT and HAMMER_AGENT_TOKEN in the server's environment when the app uses them.

The describe and tap tools take a system argument to act on the simulator's whole screen, such as a permission alert. Set HAMMER_SIMULATOR_UDID when several simulators are booted. See System UI.

Skills

To teach a coding agent the command line tool instead, copy skills/hammer-cli into your project's skills, for example .claude/skills/hammer-cli. skills/hammer-tests teaches it to write Hammer tests.