tracehub-mcp: Giving AI Assistants a Real Query Interface Into Your LLM Traces
说明与用途
tracehub-mcp 让 AI 助手能够直接查询 OpenTelemetry 追踪后端,消除了复制粘贴 JSON 的繁琐流程。它支持五个后端,强制使用 HTTPS,安全处理查询输入,并限制分页,确保追踪数据的可靠和安全访问。
问题
Debugging LLM applications requires manually copying trace JSON from a backend and pasting it into an AI assistant, creating a tedious loop and limiting the assistant’s ability to query traces directly.
结果
tracehub-mcp eliminates the manual copy/paste loop, enabling AI assistants to query trace backends directly. It supports five backends with full implementations, enforces HTTPS, query‑injection safety, bounded pagination, and strict ID re‑verification, ensuring reliable and secure trace retrieval.
工作流
- 1. Deploy tracehub-mcp server and configure it with a trace backend URL and credentials.
- 2. Configure the AI assistant (e.g., Claude) to use tracehub-mcp as an MCP client.
- 3. In the assistant chat, invoke MCP tools such as search_traces or get_llm_expensive_traces with desired query parameters.
- 4. The assistant receives structured trace data and can reason over it to answer questions like "compare the last five calls to this model".
- 5. Results are displayed directly in the chat, eliminating manual copy/paste and spreadsheet work.
证据
tracehub-mcp exists to delete that loop. It's an MCP (Model Context Protocol) server that gives Claude, Cursor, Windsurf, Gemini CLI, or any MCP client a direct query interface into your OpenTelemetry trace backend.
Every backend implements the same BaseBackend interface, so every MCP tool works identically no matter which backend is configured.
HTTPS-only enforcement. Both refuse to construct at all if the configured URL isn't https:// — a ValueError raised in __init__.
- 记录日期: 2026-09-18T23:15:24.393Z