autotel-mcp-instrumentation

Instrument MCP servers and clients with OpenTelemetry trace context propagation.

7|3|Updated Nov 26, 2025
One-click install
npx skills add https://github.com/jagreehal/autotel --skill autotel-mcp-instrumentation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: autotel-mcp-instrumentation
Source: https://github.com/jagreehal/autotel/tree/main/packages/autotel-mcp-instrumentation/skills/autotel-mcp-instrumentation
Command: npx skills add https://github.com/jagreehal/autotel --skill autotel-mcp-instrumentation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables instrumentation of MCP (Model Context Protocol) servers and clients with OpenTelemetry, ensuring trace context propagation and observability within MCP communications.

Core Features & Use Cases

  • Server Instrumentation: Wraps MCP servers to automatically create and propagate traces during request handling.
  • Client Instrumentation: Wraps MCP clients to add tracing spans and context propagation for outgoing requests.
  • Use Case: Developers can add observability to MCP-based systems, enabling easier debugging and performance analysis of MCP message flows using trace tools.

Quick Start

Import instrumentMCPServer and call it before registering tools on your MCP server to enable tracing.

Frequently Asked Questions about autotel-mcp-instrumentation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add OpenTelemetry tracing to an MCP server?

To add OpenTelemetry tracing to an MCP server, import and call the instrumentation function before registering tools. This wraps the server to automatically create and propagate traces during request handling.

Can I propagate trace context across MCP clients and servers?

Yes, you can propagate trace context across MCP clients and servers. The instrumentation wraps both clients and servers to inject and extract tracing spans for outgoing and incoming requests.

What is the best way to debug MCP message flows?

The best way to debug MCP message flows is using OpenTelemetry distributed tracing. Instrumenting your MCP servers and clients provides observability into request handling and outgoing messages for performance analysis.

Do I need to configure context propagation separately for MCP clients?

No, you do not need to configure context propagation separately. Client instrumentation automatically adds tracing spans and handles context propagation for outgoing MCP requests.

When should I instrument my MCP-based system for observability?

You should instrument your MCP-based system for observability when you need to debug message flows or analyze performance. It provides trace context propagation during MCP communications to enhance system analytics.

Does MCP instrumentation work with standard OpenTelemetry trace tools?

Yes, MCP instrumentation works with standard OpenTelemetry trace tools. It generates standard tracing spans and context propagation that can be visualized and analyzed using existing observability platforms.