Documentation
¶
Overview ¶
Package main is the entrypoint for the yap-mcp binary — an MCP (Model Context Protocol) server that exposes yap's package-build capabilities to MCP-compatible clients (Claude Desktop, IDE agents, etc.).
v1 binds the stdio transport. HTTP+SSE is planned but gated for later.
Shutdown semantics: the server exits cleanly when any of these happen:
- stdin reaches EOF (the SDK's stdio transport Read returns and Run unblocks)
- SIGINT / SIGTERM is delivered
- parent process dies (Linux PR_SET_PDEATHSIG → SIGTERM)
Logging: stdout is reserved for the JSON-RPC stream. All log output goes to stderr via pkg/logger. Set YAP_VERBOSE=1 for debug-level frames.
Click to show internal directories.
Click to hide internal directories.