Use the steps below to launch the MCP Sentry server as a Meshagent Room service and connect an agent to use the tools collaboratively.

Environment Variables

Before starting, you’ll need:

  • SENTRY_AUTH_TOKEN: Your Sentry API token (for authenticating with Sentry).

Cloud Setup

  1. Install the Meshagent CLI:

    pip install "meshagent[all]"
    
  2. Sign up and authenticate with Meshagent
    Follow instructions at: Meshagent CLI Get Started

  3. Start the MCP Sentry server in a Meshagent Room:

    meshagent service test \
      --room=test \
      --role=agent \
      --image=meshagent/mcp-sentry:latest \
      --env MESHAGENT_PORT=8001 \
      --env SENTRY_AUTH_TOKEN=YOUR_SENTRY_TOKEN \
      --port="num=8001 path=/webhook liveness=/ type=meshagent.callable" \
      --name=mcp-sentry-service
    
    • This command launches the MCP Sentry server inside a Meshagent Room (test).
    • Replace YOUR_SENTRY_TOKEN with your Sentry API token.
    • Note: Rooms will close if left inactive.
  4. Connect a chatbot agent with the Sentry toolkit:

    meshagent chatbot join \
      --room=test \
      --agent-name=sample \
      --name=sample \
      --toolkit=mcp-sentry
    
    • This command starts a chatbot in the same Meshagent Room, capable of using the Sentry tools.
    • Multiple toolkits can be loaded in the same room/agent if needed.
    • The CLI output will include a link to the live Room’s chat interface for interactive access.

Tools Available

Sentry MCP Server Tools

A Model Context Protocol (MCP) server for retrieving and analyzing issues from Sentry.io. This server provides tools to inspect error reports, stacktraces, and other debugging information from your Sentry account.

Available Tools:

ToolShort Description
get_sentry_issueRetrieve and analyze a Sentry issue by ID or URL.

Tool: get_sentry_issue

Retrieve and analyze a Sentry issue by ID or URL. Use this tool when you need to:

  • Investigate production errors and crashes
  • Access detailed stacktraces from Sentry
  • Analyze error patterns and frequencies
  • Get information about when issues first/last occurred
  • Review error counts and status
ParameterTypeDescription
issue_id_or_urlstringSentry issue ID or URL to analyze

Reference & Resources


For additional details on Meshagent, Rooms, toolkits, and cloud orchestration, consult the Meshagent documentation.