
Convai Analytics
io.github.Conv-AI由 GitHub 帳號 Conv-AI 發布v0.2.5更新於 Oct 24, 2026
Analyze Convai sessions, latency, reliability, usage, and provider telemetry via API key.
概覽
讓助理透過託管的 Convai Analytics API 查詢 Convai 語音代理的工作階段、延遲、可靠性、用量,以及供應商與模型表現。
- 可以做什麼
- 這是一個本機 stdio MCP 伺服器,包裝公開的 Convai Analytics SDK,提供帳戶摘要、工作階段清單與時間軸、互動追蹤、延遲百分位與元件拆解、錯誤與可靠性趨勢、用量與併發估算,以及 TTS/LLM 供應商比較等工具。許多工具會回傳結構化 JSON 與 Vega-Lite 圖表規格,並附帶提示範本,涵蓋工作階段為何變慢、延遲趨勢等常見問題。受方案限制的工具在帳戶方案不支援時會回傳具型別的錯誤。
- 適用情境
- 當你已有 Convai 語音代理,並希望助理不必撰寫 SDK 指令碼就能回答關於它們的維運問題——延遲、可靠性、用量、併發或供應商與模型表現——時使用。它面向客戶端分析,而非內部基礎設施存取。
- 執行需求
- 透過 stdio 在本機執行,通常以 npx 從 npm 套件 @convai/analytics-mcp 啟動,因此需要 Node.js 與網路存取。必須在環境變數 CONVAI_API_KEY 中提供 Convai API 金鑰。選用的 CONVAI_ANALYTICS_BASE_URL 可覆寫分析 API 基礎網址,通常應保持未設定。變更設定後需重新啟動 MCP 主機。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Convai Analytics,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@convai/analytics-mcp
Local stdio MCP server for Convai Analytics.
This package is the recommended agent interface for Convai Analytics. It lets MCP-capable agents answer questions about your Convai sessions, latency, reliability, usage, and provider/model performance without writing custom SDK scripts. It wraps the public @convai/analytics TypeScript SDK, uses CONVAI_API_KEY, and returns structured JSON plus Vega-Lite chart specs.
Package: @convai/analytics-mcp
Official MCP Registry name: io.github.Conv-AI/convai-analytics-mcp
Install And Run
Optional:
Leave CONVAI_ANALYTICS_BASE_URL unset for production. Do not put the API key in source code, committed MCP config, screenshots, or logs.
After adding or changing MCP config, restart Claude Desktop, Claude Code, Cursor, Codex, or your MCP host so it reloads the server command and CONVAI_API_KEY.
Claude Desktop
After saving this config, quit and reopen Claude Desktop so it starts the new MCP server.
Cursor / Codex-Compatible MCP Clients
Use the same stdio command:
For Claude Code, Cursor, Codex-compatible clients, and other stdio MCP hosts, restart the client or start a new session after adding or changing MCP config.
Security Model
The server is customer-facing and public-safe by design:
- It only calls the public Convai Analytics API through
@convai/analytics. - It does not accept account overrides, service credentials, database URLs, or other internal access paths.
- Account scoping, plan gating, and quota enforcement stay server-side in the hosted analytics API.
- Tool results are sanitized so errors do not echo
CONVAI_API_KEY.
Tools
Core and account tools:
get_summaryget_metrics_cataloglist_sessionsget_session_timelineget_interaction_trace
Latency tools:
get_p95_latency_over_timeget_latency_percentile_seriesget_latency_percentile_chartget_latency_threshold_chartget_latency_heatmap_chartget_component_latency_breakdowngenerate_component_latency_chartfind_component_latency_bottlenecksgenerate_interaction_waterfallexplain_slow_session
Reliability tools:
get_error_trendgenerate_error_trend_chartget_error_breakdowngenerate_error_breakdown_chartget_dropped_error_persist_trendgenerate_dropped_error_persist_chartgenerate_reliability_summary_chartgenerate_reliability_trends_chart
These reliability tools use error and dropped-persistence metrics that are available today. If an agent asks for a status distribution, only use group_by=status when the returned rows contain real non-empty status groups; otherwise report that status-tagged aggregate telemetry is not available for that range.
Usage and concurrency tools:
get_usage_trendsgenerate_usage_trends_chartget_character_usage_leaderboardgenerate_character_usage_chartgenerate_session_duration_scatterestimate_active_session_concurrencygenerate_active_session_concurrency_chartgenerate_peak_concurrency_chart
Provider and model tools:
get_tts_provider_attributiongenerate_tts_provider_chartget_llm_model_latencygenerate_llm_model_latency_chartcompare_providers
Plan-gated advanced tools:
detect_regressionsadvanced_query
Plan-gated tools return typed MCP tool errors for 402/403 responses with the required plan in the message.
Prompts
The server exposes prompt templates for common customer questions:
why_was_this_session_slowaggregate_latency_distributionp95_latency_trendcomponent_bottleneckstrace_explanationerror_rate_trendsprovider_comparisonusage_summary
Resources
convai://analytics/docs/conceptsconvai://analytics/docs/metrics-referenceconvai://analytics/docs/authenticationconvai://analytics/catalog
The catalog resource fetches the caller's account catalog when CONVAI_API_KEY is available.
Example Questions
Local Development
From the repo root:
Live smoke against production with your own key:
The live smoke accepts empty data for accounts without recent traffic and treats plan-gated 402/403 responses as valid gated results.
Discovery
The canonical MCP registry manifest is server.json. The server is published to npm and the Official MCP Registry. Additional directories and marketplaces such as GitHub MCP Registry, Smithery, Glama, PulseMCP, mcp.so, and Docker MCP Catalog can reference the same package and registry metadata.
來源:packages/mcp/README.md,提交 35cbf99
工具
0版本歷史
1- v0.2.5最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。