Skip to main content

Action Platform

apx-sentry

Sentry access and post-deploy errors, inside Action Platform.

PyPI Release CI License Python


After a release, the question is "what broke?"; before it, "who can see our Sentry?". apx-sentry is the Action Platform plugin that answers both: the access provider the core's access engine drives, and two read-only tools over issues — the ones first seen in a release, and the unresolved ones since a deploy. apx- is the prefix every Action Platform extension carries.

What you get

  • Access management. Organization and team membership next to the other services, through the core's access_audit, access_who, access_sync, access_grant, access_revoke and access_offboard. Changes are dry runs until applied. See Access.
  • No pasted token on a hosted platform. Access uses the organization's Sentry connection (Settings → Services → Connect Sentry, core 0.34 or later). See The Sentry connection.
  • Two read-only issue tools. sentry_release_issues and sentry_latest_errors, also as action-platform sentry release-issues|latest-errors. See Tools.

Install

action-platform plugin install sentry
export AP_SENTRY_ORG=… AP_SENTRY_TOKEN=…     # or Plugins → Sentry → Configure on the platform
action-platform sentry release-issues web web@1.4.0
action-platform sentry latest-errors web 2026-11-24T14:30:00Z

The access capability runs where the core runs service access: on a hosted platform whose API image carries this plugin, with the options filled under Plugins for the organization. It needs no pasted token there: it uses the organization's Sentry connection (Settings → Services → Connect Sentry, core 0.34 or later). The tools and commands run on the machine that installed it.

Access

With org set, the core's access tools (access_audit, access_who, access_sync, access_grant, access_revoke, access_offboard) read and change Sentry next to the other services. Accounts are member emails.

Resource Levels, lowest first
org member, billing, admin, manager, owner
team/<slug> contributor, admin
  • A member's organization role comes from orgRole; a team member's role from teamRole (a team member without one is a contributor).
  • Adding a member sends Sentry's invitation email; the member counts as granted while the invitation is pending.
  • The last owner of the organization is never removed or demoted.
  • Reads follow Sentry's Link: rel="next" paging through every page of members, teams and team members.
  • Changes are dry runs until the core's tools are told to apply.

Tools

Read-only. MCP tools are sentry_<name>; each is also action-platform sentry <name> with dashes. Both return, per issue: id, short_id, title, culprit, level, status, count (events), users, first_seen, last_seen, permalink, project.

Tool Does
sentry_release_issues(project, release, period="30d", limit=25) Issues first seen in a release of a project, newest first (firstRelease:"<release>" on the organization's issues, sorted by first seen). period is how far back Sentry looks.
sentry_latest_errors(project, since, limit=25) Unresolved issues of a project with events from since (ISO 8601, e.g. the deploy's time) until now, most recently seen first.

project is the project's slug; limit is at most 100. A since with an offset is converted to UTC.

Options

An organization fills them in under Plugins → Sentry → Configure; on a machine the tools read AP_SENTRY_<KEY> first, then the plugin's options file. Access reads the options and the platform's Sentry connection only.

Option
org Organization slug. Access is off while it is empty.
token Secret, optional on a hosted platform: when empty, access uses the organization's Sentry connection. A personal or internal integration token otherwise.
url Only for a self-hosted Sentry; empty means https://sentry.io.

The Sentry connection

On a hosted platform (core 0.34 or later) set only org, then Settings → Services → Connect Sentry with a Sentry account that is a Manager or Owner of the organization. The platform asks Sentry for the scopes this plugin declares — org:read, member:admin, team:write — keeps the token sealed and refreshes it before it expires. A connection that lacks one of them fails the audit with the missing scope; Reconnect Sentry grants it. Connecting needs the platform's Sentry OAuth app once (Sentry → User settings → API → Applications, Confidential, the callback URL the platform shows). The token option, when set, wins over the connection. The issue tools (sentry_*, action-platform sentry …) run on a machine and still read a token from AP_SENTRY_TOKEN or the options file.

Token scopes

For Scopes
Reading access member:read, team:read, org:read
Changing access member:admin, team:write, org:read
The issue tools project:read, event:read

Develop

pip install -e ".[dev]"
ruff check . && ruff format --check . && pytest -q

Tests run without a network against tests/fake.py, which answers only the routes and fields Sentry's API reference documents. tests/live/ reads a real Sentry and changes nothing:

AP_SENTRY_LIVE=1 AP_SENTRY_ORG=… AP_SENTRY_TOKEN=… AP_SENTRY_PROJECT=<slug> AP_SENTRY_RELEASE=<version> pytest tests/live

How it fits in Action Platform

Action Platform turns scaffold, CI, versioning and deploy into one set of verbs on a CLI, a web app and an MCP server, with roles and scoped tokens on every operation. This plugin adds Sentry to its access engine and gives agents and the terminal a way to read what a release or a deploy shipped. It is listed in plugins-index; apx-example is the template for writing another plugin.

Contributing

Git-flow branches (<kind>/<issue>-slug), Conventional Commits and one pull request per change, as in the main repository's guide. Rules for contributors and agents are in AGENTS.md; see Develop for the test setup.

License

Apache 2.0 — see LICENSE.

Metadata

Release files for apx-sentry 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apx-sentry 0.2.1
File Size Uploaded Provenance Actions
apx_sentry-0.2.1.tar.gz 20.4 kB With provenance Details for apx_sentry-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apx-sentry 0.2.1
File Interpreter ABI Platform Actions
apx_sentry-0.2.1-py3-none-any.whl Python 3 none any Details for apx_sentry-0.2.1-py3-none-any.whl

Total release size: 36.3 kB

Release files / apx_sentry-0.2.1.tar.gz

Download URL apx_sentry-0.2.1.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7787824495f1791d6ab24799e71189d8c13577a84443da44d210cb924e63de8c
BLAKE2b-256 checksum
How to use checksums
e324cfb1ef0beefa2d5bb5acdc1efe1e1c3357ed507d6e3669880279d93dba50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / apx_sentry-0.2.1-py3-none-any.whl

Download URL apx_sentry-0.2.1-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6504505711ced8d1a67c79051709fdc0c51e772f451f3c1ea28a903c6a2c811
BLAKE2b-256 checksum
How to use checksums
791d20363bb1ac09543e893e52ba18fb05b7838e991097777a63e8d837630ef7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for apx-sentry 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for apx_sentry-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page