Function: serveSignozMcpStdio()
serveSignozMcpStdio(
options):Promise<RunningSignozMcpStdio>
Defined in: src/mcp/stdio.ts:36
Serve the SigNoz MCP server over stdio: newline-delimited JSON-RPC on stdin/stdout, the way an MCP client runs a server it launched itself.
stdout carries the protocol; log to stderr only. Resolves once connected; closed settles when
the client closes stdin.
import { serveSignozMcpStdio } from "@hoyasumii/signoz/mcp";
const mcp = await serveSignozMcpStdio({ baseUrl: "https://signoz.example.com", apiKey: "…" });
await mcp.closed;
Parameters
options
Returns
Promise<RunningSignozMcpStdio>