The
@arizeai/openinference-instrumentation-mcp instrumentor enables context propagation between MCP clients and servers. It does not generate its own telemetry—you still need to generate OpenTelemetry traces in both the client and server to see a unified trace.Install
Setup
To instrument your MCP application, use theregister function from @arizeai/phoenix-otel and set up the MCP instrumentation.
Create the instrumentation.ts file:

