Skip to main content
MCP

Installation

Install both the Netra SDK and MCP:

Usage

Initialize the Netra SDK to trace MCP server operations: Set your Netra endpoint and API key before you call Netra.init(). Without NETRA_OTLP_ENDPOINT, the SDK prints spans to the console instead of sending them to Netra, and your dashboard stays empty.
Set these wherever your app runs, including Docker containers and CI jobs.

Tools

Trace MCP tool execution:

Resources

Trace resource access:

Prompts

Trace prompt handling:

Configuration

Configure MCP server tracing:

Next Steps

Last modified on November 5, 2026