-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathsentry-mcp.py
More file actions
16 lines (13 loc) · 598 Bytes
/
sentry-mcp.py
File metadata and controls
16 lines (13 loc) · 598 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from praisonaiagents import Agent, MCP
import os
# pip install mcp-server-sentry
# Get Sentry auth token from environment
sentry_token = os.getenv("SENTRY_AUTH_TOKEN")
# Use a single string command with Sentry configuration
sentry_agent = Agent(
instructions="""You are a helpful assistant that can analyze Sentry error reports.
Use the available tools when relevant to inspect and debug application issues.""",
llm="gpt-4o-mini",
tools=MCP("python -m mcp_server_sentry --auth-token", args=[sentry_token])
)
sentry_agent.start("Analyze the most recent critical error in Sentry")