Amplitude Plugin
The Amplitude plugin lets Slack users inspect product usage, active users, event segmentation, funnels, retention, saved charts and dashboards, experiments, cohorts, taxonomy, session replay, feature flags, guides and surveys, feedback, agent analytics, and user activity without granting Junior access to mutation tools.
Junior connects to Amplitude’s hosted MCP server and starts Amplitude’s OAuth flow when a user first requests analytics. The plugin exposes a fixed allowlist of Amplitude’s documented search, retrieval, and query tools.
Install
Section titled “Install”Install the plugin package alongside @sentry/junior:
pnpm add @sentry/junior @sentry/junior-amplitudeRuntime setup
Section titled “Runtime setup”Add the package name to the plugin set exported from plugins.ts:
import { defineJuniorPlugins } from "@sentry/junior";
export const plugins = defineJuniorPlugins(["@sentry/junior-amplitude"]);No Amplitude API key or secret key is required. Each user authorizes through Amplitude’s hosted MCP OAuth flow, and Junior resumes the original conversation after authorization completes.
Regional endpoint
Section titled “Regional endpoint”The package defaults to Amplitude’s US MCP endpoint:
https://mcp.amplitude.com/mcpFor another Amplitude data region, set AMPLITUDE_MCP_URL to the regional MCP endpoint documented by Amplitude before starting Junior. The endpoint must use HTTPS.
Read-only boundary
Section titled “Read-only boundary”The plugin uses allowed-tools to expose only documented search, retrieval, list, and query operations. Rendering, creation, editing, updates, cohort sync triggers, taxonomy branch mutation, merge, and deletion tools never enter Junior’s callable MCP catalog.
This allowlist is a client-side exposure boundary. Amplitude authorization remains the provider-side permission boundary. For defense in depth, grant connected users or service accounts USE_MCP_READ only and remove USE_MCP_WRITE from their project role. Amplitude’s Member, Manager, and Admin roles include MCP write access by default until an administrator adjusts the role.
The plugin does not use Amplitude’s progressive-discovery URL. Junior already loads provider catalogs on demand through searchMcpTools, while the standard endpoint supplies the complete catalog that Junior can filter before exposure.
Allowed tools
Section titled “Allowed tools”The package exposes this exact provider tool surface:
searchget_from_urlget_contextget_project_contextget_workspace_contextget_chartsget_dashboardget_cohortsget_experimentsget_usersget_flagsget_deploymentsget_agent_resultsget_eventsget_propertiesget_custom_or_labeled_eventsget_transformationsget_group_typesget_session_replayslist_session_replaysget_session_replay_eventsquery_chartquery_chartsquery_amplitude_dataquery_experimentget_cohort_sync_destinationsget_cohort_syncsget_cohort_sync_historyget_brancheslist_guides_surveysget_guide_or_surveyget_feedback_insightsget_feedback_commentsget_feedback_mentionsget_feedback_sourcesget_feedback_trendsquery_agent_analytics_metricsquery_agent_analytics_sessionsquery_agent_analytics_spansget_agent_analytics_conversationsearch_agent_analytics_conversationsget_agent_analytics_schemaEvery other Amplitude MCP tool is unavailable through the plugin. When Amplitude adds another read operation, the package must explicitly add it before Junior can call it.
What users can query
Section titled “What users can query”- DAU, WAU, MAU, and other active-user trends
- event totals, unique users, sessions, and property segmentation
- funnel conversion and step drop-off
- retention by cohort and interval
- saved chart and dashboard results
- experiment status and results
- cohorts, taxonomy, and event definitions
- session replay timelines and prior agent-analysis results
- feature flag definitions and tracking-plan branches
- guides, surveys, customer feedback, and agent analytics
- individual user activity when the connected account has access
Render, create, update, archive, delete, launch, stop, sync-trigger, and configuration operations are unavailable through this plugin. The skill also instructs Junior not to expose deployment API keys, credential fields, or unrelated raw feedback and conversation content returned by read tools.
Verify
Section titled “Verify”- Ask Junior for an Amplitude metric, such as active users for the last seven days.
- Complete the private Amplitude OAuth flow when Junior prompts for it.
- Confirm the original conversation resumes with an analytics result.
- Ask Junior to create or edit an Amplitude chart and confirm it explains that the plugin is read-only.
Failure modes
Section titled “Failure modes”- Authorization required: Retry the analytics request and complete the private OAuth flow.
- Permission denied: The connected Amplitude account cannot access the requested organization, project, or resource.
- No matching tool: The requested operation is not in the package’s read-only tool allowlist.
- Wrong region: Set
AMPLITUDE_MCP_URLto the correct regional MCP endpoint and restart the deployment. - Ambiguous project: Name the Amplitude project or provide a chart, dashboard, experiment, cohort, or user identifier.
Next step
Section titled “Next step”Review Credentials & OAuth and Security Hardening.