Skip to main content

Requirements

The package targets ESM and CommonJS via dist/index.js with type declarations in dist/index.d.ts.

Install

If you don’t already have the MCP SDK and Zod (used for input schemas), install them too:

Bundled OpenTelemetry dependencies

@sedata-ai/mcp brings the OTel pieces it needs as direct dependencies — you don’t have to install or pin them yourself:
If your project already depends on a different version of @opentelemetry/api, use a single version across the dependency tree. Multiple versions of the API lead to “no-op” tracers that silently drop spans.

Verify the install

Run a one-off script to confirm everything resolves:
verify.ts

Next

Quickstart

Wire up your first instrumented MCP server.