naftiko: 1.0.0-alpha2 info: label: Sentry Prevent API — Tokens description: 'Sentry Prevent API — Tokens. 2 operations. Lead operation: Sentry Retrieve a paginated list of repository tokens for a given owner. Self-contained Naftiko capability covering one Sentry System business surface.' tags: - Sentry System - Tokens created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SENTRY_SYSTEM_API_KEY: SENTRY_SYSTEM_API_KEY capability: consumes: - type: http namespace: sentry-prevent-tokens baseUri: https://sentry.io/api/0 description: Sentry Prevent API — Tokens business capability. Self-contained, no shared references. resources: - name: organizations-organization_id_or_slug-prevent-tokens path: /organizations/{organization_id_or_slug}/prevent/tokens/ operations: - name: listrepositorytokens method: GET description: Sentry Retrieve a paginated list of repository tokens for a given owner outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: cursor in: query type: string description: Pagination cursor. - name: organizations-organization_id_or_slug-prevent-tokens-regenerate path: /organizations/{organization_id_or_slug}/prevent/tokens/regenerate/ operations: - name: regeneratetoken method: POST description: Sentry Regenerate a repository upload token and return the new token outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.SENTRY_SYSTEM_API_KEY}}' exposes: - type: rest namespace: sentry-prevent-tokens-rest port: 8080 description: REST adapter for Sentry Prevent API — Tokens. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/organizations/{organization-id-or-slug}/prevent/tokens name: organizations-organization-id-or-slug-prevent-tokens description: REST surface for organizations-organization_id_or_slug-prevent-tokens. operations: - method: GET name: listrepositorytokens description: Sentry Retrieve a paginated list of repository tokens for a given owner call: sentry-prevent-tokens.listrepositorytokens with: cursor: rest.cursor outputParameters: - type: object mapping: $. - path: /v1/organizations/{organization-id-or-slug}/prevent/tokens/regenerate name: organizations-organization-id-or-slug-prevent-tokens-regenerate description: REST surface for organizations-organization_id_or_slug-prevent-tokens-regenerate. operations: - method: POST name: regeneratetoken description: Sentry Regenerate a repository upload token and return the new token call: sentry-prevent-tokens.regeneratetoken with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: sentry-prevent-tokens-mcp port: 9090 transport: http description: MCP adapter for Sentry Prevent API — Tokens. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: sentry-retrieve-paginated-list-repository description: Sentry Retrieve a paginated list of repository tokens for a given owner hints: readOnly: true destructive: false idempotent: true call: sentry-prevent-tokens.listrepositorytokens with: cursor: tools.cursor outputParameters: - type: object mapping: $. - name: sentry-regenerate-repository-upload-token description: Sentry Regenerate a repository upload token and return the new token hints: readOnly: false destructive: false idempotent: false call: sentry-prevent-tokens.regeneratetoken with: body: tools.body outputParameters: - type: object mapping: $.