Claude Code
Setup
Pillbox exposes its tools to AI agents via the Model Context Protocol. The MCP server is a Node.js process that communicates with the pillbox binary over stdin/stdout.
How it works
Section titled “How it works”The MCP server does not access the database directly. It communicates with the pillbox binary via pillbox mcp run:
- The MCP server receives a tool call from the agent.
- It spawns
pillbox mcp runas a subprocess. - It writes a JSON payload to stdin:
{ "tool": "pill_take", "input": { ... } }. - It reads the JSON response from stdout.
- It returns the response to the agent.
The MCP server is stateless. All persistence is handled by the Rust core.
Choose your client
Section titled “Choose your client”OpenCode