Skip to content
pi-c Artifact [cc39e3553b]
Login

Artifact [cc39e3553b]

Artifact cc39e3553b3454a6afc5c2dbebad92171beef2f5e565a6b7fbe432dd5b077bc7:


/* 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