MCPcopy Create free account
hub / github.com/benjitaylor/agentation / log

Function log

mcp/src/server/http.ts:36–38  ·  view source on GitHub ↗

* Log to stderr so diagnostic output never corrupts the MCP stdio channel. * When `server` runs without --mcp-only, both the HTTP server and MCP stdio * server share the same process. stdout is reserved for JSON-RPC messages, * so all logging must go to stderr.

(message: string)

Source from the content-addressed store, hash-verified

34 * so all logging must go to stderr.
35 */
36function log(message: string): void {
37 process.stderr.write(message + "\n");
38}
39
40// Cloud API configuration
41let cloudApiKey: string | undefined;

Callers 3

sendWebhooksFunction · 0.85
handleMcpFunction · 0.85
startHttpServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected