MCP (tracing)
MCP (tracing)
Model Context Protocol (MCP) is an open standard for connecting AI applications to tools, prompts, and external context. Respan gives you full observability over MCP client requests, server tool handlers, resource reads, prompt reads, and tool outputs, with optional gateway routing for LLM calls made inside your MCP application.
Set up Respan
Create an account at platform.respan.ai and grab an API key.
Run npx @respan/cli setup to set up with your coding agent.
Use Respan Gateway
See MCP (Model Context Protocol) gateway setup to route this integration through the Respan gateway.
Example projects
Setup
View your trace
Open the Traces page to see your MCP workflow with client operations, server tool handlers, resource reads, prompt reads, inputs, outputs, and timing.
Configuration
MCPInstrumentor options
Attributes
In Respan()
Set defaults at initialization — these apply to exported spans.
With propagate_attributes
Override per request using a context scope.