What is Weave MCP Server + Client Linked Traces?
This server adapts the Arize Phoenix MCP tracing example for use with Weights & Biases (wandb/Weave). It provides an MCP client and server that export OpenTelemetry traces to Weave, enabling distributed tracing across MCP client–server boundaries.
How to use Weave MCP Server + Client Linked Traces?
Configure a .env file with your OPENAI_API_KEY and PHOENIX_COLLECTOR_ENDPOINT (and PHOENIX_API_KEY if required), install dependencies via uv sync or pip install -r requirements.txt, then run uv run client.py or python client.py from the tutorials/mcp/tracing_between_mcp_client_and_server directory. The client spins up the server automatically and you can ask questions to the agent.
Key features of Weave MCP Server + Client Linked Traces
- End-to-end tracing across MCP client and server
- Automatic OpenTelemetry context propagation via
openinference-instrumentation-mcp
- Exports traces to wandb/Weave
- Supports multi-language MCP components
- Connects AI models to external data sources
Use cases of Weave MCP Server + Client Linked Traces
- Debugging requests that span multiple MCP services
- Observing latency at different stages of an MCP request lifecycle
- Troubleshooting performance bottlenecks in AI agent systems
- Understanding how different MCP components affect application behavior
コメント