Skip to main content

@svatah/yam-mcp

The Yam MCP server: surface and operation tools over stdio or Streamable HTTP

Exports

ExportKindSignature
buildMcpServerfunctionexport async function buildMcpServer(options: McpServerOptions): Promise<Build the server.
createEventStorefunctionexport function createEventStore(limitPerStream = 512): EventStoreThe events of one stream, kept so a client that lost its connection can ask
httpMcpCommandfunctionexport async function httpMcpCommand(args: ParsedArgs, io: CommandIo): Promise<ExitCode>yam mcp --http — serve over Streamable HTTP.
HttpMcpOptionsinterfaceexport interface HttpMcpOptions extends McpServerOptions
mcpCommandfunctionexport async function mcpCommand(args: ParsedArgs, io: CommandIo): Promise<ExitCode>yam mcp — serve over stdio.
McpServerOptionsinterfaceexport interface McpServerOptions
PINNED_PROTOCOL_VERSIONvariablePINNED_PROTOCOL_VERSION = "2025-11-25"The protocol revision this transport was written and tested against.
RunningHttpMcpinterfaceexport interface RunningHttpMcp
SDK_LATEST_PROTOCOL_VERSIONvariableSDK_LATEST_PROTOCOL_VERSION: string = LATEST_PROTOCOL_VERSIONWhat the SDK in this workspace speaks, so a test can compare the two.
startHttpMcpfunctionexport async function startHttpMcp(options: HttpMcpOptions): Promise<RunningHttpMcp>Start the transport. Exported so a test can drive it in-process with a