Skip to main content

key

Trimmed on the way in. An empty key turns the SDK off regardless of enabled — a server started without its key configured should be silent, not a source of 401s on every flush. There is no fallback to an environment variable inside the package. Read the variable yourself and pass it, so the source of the key is visible in your own code.

debug

Writes to stderr, never stdout, because on a stdio server stdout is the transport. Turn it on when nothing is arriving. See Troubleshooting for what each line means.

enabled

enabled: false skips instrumentation entirely. The server is returned untouched.

endpoint

Leave this alone in production. MCPulse is not self-hosted, so there is nowhere else to point — and because the SDK never throws and drops batches it cannot send, a wrong endpoint means you install, wrap, see no error at all, and simply never appear in your dashboard.
Its one real use is local development, pointing at an API running on your own machine:
A trailing slash is stripped for you.

Buffering constants

Not options — they are fixed, and the reasoning is in What is sent.