Sentry · Capability

Sentry Environments API — Environments

Sentry Environments API — Environments. 4 operations. Lead operation: Sentry List an organization's environments. Self-contained Naftiko capability covering one Sentry System business surface.

Run with Naftiko Sentry SystemEnvironments

What You Can Do

GET
Listorganizationenvironments — Sentry List an organization's environments
/v1/organizations/{organization-id-or-slug}/environments
GET
Listprojectenvironments — Sentry List a project's environments
/v1/projects/{organization-id-or-slug}/{project-id-or-slug}/environments
GET
Retrieveprojectenvironment — Sentry Retrieve a project environment
/v1/projects/{organization-id-or-slug}/{project-id-or-slug}/environments/{environment}
PUT
Updateprojectenvironment — Sentry Update a project environment
/v1/projects/{organization-id-or-slug}/{project-id-or-slug}/environments/{environment}

MCP Tools

sentry-list-organization-s-environments

Sentry List an organization's environments

read-only idempotent
sentry-list-project-s-environments

Sentry List a project's environments

read-only idempotent
sentry-retrieve-project-environment

Sentry Retrieve a project environment

read-only idempotent
sentry-update-project-environment

Sentry Update a project environment

idempotent

Capability Spec

sentry-environments-environments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sentry Environments API — Environments
  description: 'Sentry Environments API — Environments. 4 operations. Lead operation: Sentry List an organization''s environments.
    Self-contained Naftiko capability covering one Sentry System business surface.'
  tags:
  - Sentry System
  - Environments
  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-environments-environments
    baseUri: https://sentry.io/api/0
    description: Sentry Environments API — Environments business capability. Self-contained, no shared references.
    resources:
    - name: organizations-organization_id_or_slug-environments
      path: /organizations/{organization_id_or_slug}/environments/
      operations:
      - name: listorganizationenvironments
        method: GET
        description: Sentry List an organization's environments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: projects-organization_id_or_slug-project_id_or_slug-environments
      path: /projects/{organization_id_or_slug}/{project_id_or_slug}/environments/
      operations:
      - name: listprojectenvironments
        method: GET
        description: Sentry List a project's environments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: projects-organization_id_or_slug-project_id_or_slug-environments-environment
      path: /projects/{organization_id_or_slug}/{project_id_or_slug}/environments/{environment}/
      operations:
      - name: retrieveprojectenvironment
        method: GET
        description: Sentry Retrieve a project environment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateprojectenvironment
        method: PUT
        description: Sentry Update a project environment
        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-environments-environments-rest
    port: 8080
    description: REST adapter for Sentry Environments API — Environments. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/organizations/{organization-id-or-slug}/environments
      name: organizations-organization-id-or-slug-environments
      description: REST surface for organizations-organization_id_or_slug-environments.
      operations:
      - method: GET
        name: listorganizationenvironments
        description: Sentry List an organization's environments
        call: sentry-environments-environments.listorganizationenvironments
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{organization-id-or-slug}/{project-id-or-slug}/environments
      name: projects-organization-id-or-slug-project-id-or-slug-environments
      description: REST surface for projects-organization_id_or_slug-project_id_or_slug-environments.
      operations:
      - method: GET
        name: listprojectenvironments
        description: Sentry List a project's environments
        call: sentry-environments-environments.listprojectenvironments
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{organization-id-or-slug}/{project-id-or-slug}/environments/{environment}
      name: projects-organization-id-or-slug-project-id-or-slug-environments-environment
      description: REST surface for projects-organization_id_or_slug-project_id_or_slug-environments-environment.
      operations:
      - method: GET
        name: retrieveprojectenvironment
        description: Sentry Retrieve a project environment
        call: sentry-environments-environments.retrieveprojectenvironment
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateprojectenvironment
        description: Sentry Update a project environment
        call: sentry-environments-environments.updateprojectenvironment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: sentry-environments-environments-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sentry Environments API — Environments. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: sentry-list-organization-s-environments
      description: Sentry List an organization's environments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sentry-environments-environments.listorganizationenvironments
      outputParameters:
      - type: object
        mapping: $.
    - name: sentry-list-project-s-environments
      description: Sentry List a project's environments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sentry-environments-environments.listprojectenvironments
      outputParameters:
      - type: object
        mapping: $.
    - name: sentry-retrieve-project-environment
      description: Sentry Retrieve a project environment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sentry-environments-environments.retrieveprojectenvironment
      outputParameters:
      - type: object
        mapping: $.
    - name: sentry-update-project-environment
      description: Sentry Update a project environment
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: sentry-environments-environments.updateprojectenvironment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.