MCP.so
ログイン

Weave MCP Server + Client Linked Traces

@zbirenbaum

基本情報

カテゴリ

その他

トランスポート

stdio

作者

zbirenbaum

Weave MCP Server + Client Linked Traces について

概要はまだありません

Weave MCP Server + Client Linked Traces の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "weave-mcp-server-client-trace": {
      "command": "python",
      "args": [
        "client.py"
      ]
    }
  }
}

Weave MCP Server + Client Linked Traces のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

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

よくある質問

1

What does Weave MCP Server + Client Linked Traces do compared to the original Phoenix example?

It adapts the Arize Phoenix MCP tracing tutorial to export traces to Weights & Biases (Weave) instead of Arizona Phoenix, while preserving the same OpenTelemetry instrumentation approach.

2

What runtime dependencies are required?

Python 3.x, `openinference-instrumentation-mcp`, and standard MCP dependencies. Install using `uv sync` or `pip install -r requirements.txt`.

3

Where do traces get exported?

Traces are exported to the Weave collector endpoint specified in your `PHOENIX_COLLECTOR_ENDPOINT` environment variable. (Note: despite the variable name, the README states the repo is adapted for wandb/Weave.)

4

Is there a known limitation or bug in this server?

Yes, there is a race condition that sometimes causes the tool to fail at the OpenAI call step. This bug was also present in the original Phoenix example and was not introduced by the Weave adaptation.

5

How is trace context transported between client and server?

Trace context is automatically propagated across the MCP client-server boundary via OpenTelemetry context injection and extraction handled by the `openinference-instrumentation-mcp` package.

コメント

「その他」の他のコンテンツ