Skip to content
pi-c Documentation
Login

Documentation

/* pic mcp serve (mcp_serve.c): pic as an MCP server over stdio, as claude mcp serve is. */
#ifndef PIC_MCP_SERVE_H
#define PIC_MCP_SERVE_H

/* Answers MCP requests, one JSON-RPC message a line on stdin, until it ends: pic's own tools in
 * play (built-in, not deferred, not the journal's send_message and wake) run in WORKSPACE with
 * EXEC_SECONDS as bash's timeout. Nothing is journaled and no hook runs: the client asks its
 * person. The process's exit status. */
int pic_mcp_serve(const char *workspace, int exec_seconds);

#endif