use-mcp-analytics
БесплатноБез исполняемых скриптовНе проверенAnalyzes MCP servers instrumented with Amplitude MCP Analytics through `run_amp`, from usage topics down to individual episodes and their tool calls. Use when…
от amplitude★ 50 звёзд на GitHubОб этом скилле
Analyze MCP Servers
MCP Analytics groups each instrumented MCP server's sessions into episodes, meaning one task an agent tried to complete. It then clusters episodes into a tree of topics. All reads go through run_amp with the mcp-analytics commands. Every command needs project, and nothing here writes.
Before you start
- Project: use the project the MCP Analytics SDK sends events to. Call
get_amplitude_contextwhen it isn't known, and ask the user rather than guessing. - Parameters: check them before the first call of each command, for example
{"command": ["help", "mcp-analytics", "episodes", "list"]}.
Drill down
- Servers:
["mcp-analytics", "servers", "list"]returns each server'sidandname. An emptydataarray means the project has no instrumented servers; say so and stop. - Topic tree:
["mcp-analytics", "taxonomy", "get"]withserver.- Leave out
parentto get every node. Useparent: "root"for the top level, or a topicidfor its direct children. - Each topic has
episode_count,share,hard_error_rate,thrashing_rateandmean_calls. Rates are null when there isn't enough data. - Null
run_idand emptynodesmean no taxonomy is pinned for the server yet. Topic and episode commands won't return anything useful, so tell the user and fall back to the raw events below.
- Leave out
- One topic:
["mcp-analytics", "topics", "get"]withserverandtopicreturns the topic's stats and up to eight example episodes. This is a sample, not a page. - Episodes:
["mcp-analytics", "episodes", "list"]withserverandtopic.- Filters:
has-error: "true",is-thrash: "true",client-name,auth-type,lane, andstarted-after/started-beforeas RFC 3339 timestamps. Client, auth type and lane must match a stored value exactly, so copy them from earlier results. - Pages hold 25 episodes by default, up to 100 with
limit. Passpagination.next_cursorascursorand keep the same filters.
- Filters:
- One episode:
["mcp-analytics", "episodes", "get"]withepisodeadds theauth_typeand the topicbreadcrumbfrom the root. - Tool calls:
["mcp-analytics", "calls", "list"]withepisodereturns every call in order. Each call hastool_name,is_error,error_type,error_message,error_code,error_http_status,duration_ms, the agent'srationale, and the recordedproperties.
What to look for
- Priorities: topics with a high
shareand a highhard_error_rateorthrashing_ratecome first. A low-share topic with a high error rate is a gap worth noting, not the headline. - Thrash:
is_thrashmarks episodes classified as thrashing. Read the call sequence and each call'srationaleto see what the agent was trying to do and where it stopped making progress. - Root cause: look for the first failing call in an episode, not the last. Group failures by
tool_namepluserror_typeorerror_code. - Segments: compare
client-nameandauth-typeon the same topic to tell a server bug from a client-specific problem. - Privacy: call
propertiesandrationalemay contain user input. Quote only what supports a finding, and never repeat tokens, emails or other personal data.
Trends and counts
The commands above are for drilling down. For volumes and trends over time, chart the raw SDK events with the chart query tools in the same project.
- Events:
[MCP] Tool Call Response(one per tool call),[MCP] Tool Call Rejected,[MCP] Tools Listed,[MCP] Session Initialized,[MCP] Session Ended,[MCP] Feedback Submitted. - Common properties:
[MCP] Server Name,[MCP] Tool Name,[MCP] Is Error,[MCP] Error Type,[MCP] Response Duration,[MCP] Client Name,[MCP] Auth Type. Servers that capture parameters also send[MCP] Param: <name>. - Confirm the names with
get_eventsandget_propertiesbefore you filter on them, because a server may not send every event.
Report
Lead with the two or three topics that most need work, each with its share, error or thrash rate, and the main failing tool and error. Then add one or two example episodes with the call sequence that shows the problem. End with the next fix to try.
Установить use-mcp-analytics в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл use-mcp-analytics?
Analyzes MCP servers instrumented with Amplitude MCP Analytics through `run_amp`, from usage topics down to individual episodes and their tool calls. Use when the user asks how their MCP server is used, which tools or topics fail or thrash, why an MCP session went wrong, or which MCP clients and auth types hit errors.
Как установить скилл use-mcp-analytics?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл use-mcp-analytics запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic