Skip to content

feat: add Sentry integration#691

Open
harshithmullapudi wants to merge 4 commits intomainfrom
feat/integration-sentry
Open

feat: add Sentry integration#691
harshithmullapudi wants to merge 4 commits intomainfrom
feat/integration-sentry

Conversation

@harshithmullapudi
Copy link
Member

Summary

  • Adds a complete Sentry integration under integrations/sentry/, following the same conventions as the posthog and other integrations in the repo
  • API-key auth (auth_token + optional host for self-hosted instances)
  • 30-min activity sync: new issues are surfaced as workspace activities
  • 11 MCP tools covering issues, events, projects, releases, teams, org, and members

Files

File Purpose
src/index.ts SentryCLI extending IntegrationCLI; spec, event routing
src/account-create.ts Validates auth token, fetches org, returns account config
src/schedule.ts Polls new Sentry issues since lastSyncTime, emits activities
src/utils.ts getSentryClient (axios), SentryConfig interface
src/mcp/index.ts Zod schemas + 11 MCP tools + callTool dispatcher

Test plan

  • pnpm build inside integrations/sentry/ succeeds (762 KB CJS bundle)
  • node bin/index.cjs spec returns valid JSON spec
  • node bin/index.cjs get-tools --config '{}' --integration-definition '{}' returns 11 tools
  • Connect in CORE UI with a real Sentry auth token and verify account creation + issue sync

Env vars needed for live testing:

SENTRY_AUTH_TOKEN=sntrys_xxxxxxxxxxxx
SENTRY_HOST=https://sentry.io          # or self-hosted URL
SENTRY_ORG_SLUG=my-org

🤖 Generated with Claude Code

harshithmullapudi and others added 4 commits March 15, 2026 23:15
Adds a complete Sentry integration following the same conventions as
posthog and other integrations in the repo:

- `src/index.ts` — SentryCLI extending IntegrationCLI, spec with
  api_key auth (auth_token + host fields), 30-min sync schedule
- `src/account-create.ts` — validates auth token, fetches org list,
  returns account config with organization_slug
- `src/schedule.ts` — syncs new Sentry issues since last run and
  emits activity objects with markdown summaries
- `src/utils.ts` — getSentryClient (axios), SentryConfig interface
- `src/mcp/index.ts` — 11 MCP tools: list/get/update issues, list
  events, list/get projects, list/get releases, list teams, get org,
  list members; all backed by Zod schemas

Env vars needed for live testing:
  SENTRY_AUTH_TOKEN, SENTRY_HOST, SENTRY_ORG_SLUG

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@harshithmullapudi harshithmullapudi force-pushed the feat/integration-sentry branch from e51862c to 77a0e5e Compare March 15, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant