Google Cloud Secret Manager API — Secret Versions

Google Cloud Secret Manager API — Secret Versions. 4 operations. Lead operation: Google Cloud Secret Manager List secret versions. Self-contained Naftiko capability covering one Google Cloud Secret Manager business surface.

Run with Naftiko Google Cloud Secret ManagerSecret Versions

What You Can Do

GET
Listsecretversions — Google Cloud Secret Manager List secret versions
/v1/projects/{projectid}/secrets/{secretid}/versions
GET
Accesssecretversion — Google Cloud Secret Manager Access a secret version
/v1/projects/{projectid}/secrets/{secretid}/versions/versionid-access
POST
Destroysecretversion — Google Cloud Secret Manager Destroy a secret version
/v1/projects/{projectid}/secrets/{secretid}/versions/versionid-destroy
POST
Addsecretversion — Google Cloud Secret Manager Add a secret version
/v1/projects/{projectid}/secrets/secretid-addversion

MCP Tools

google-cloud-secret-manager-list

Google Cloud Secret Manager List secret versions

read-only idempotent
google-cloud-secret-manager-access

Google Cloud Secret Manager Access a secret version

read-only idempotent
google-cloud-secret-manager-destroy

Google Cloud Secret Manager Destroy a secret version

google-cloud-secret-manager-add

Google Cloud Secret Manager Add a secret version

Capability Spec

openapi-secret-versions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Google Cloud Secret Manager API — Secret Versions
  description: 'Google Cloud Secret Manager API — Secret Versions. 4 operations. Lead operation: Google Cloud Secret Manager
    List secret versions. Self-contained Naftiko capability covering one Google Cloud Secret Manager business surface.'
  tags:
  - Google Cloud Secret Manager
  - Secret Versions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GOOGLE_CLOUD_SECRET_MANAGER_API_KEY: GOOGLE_CLOUD_SECRET_MANAGER_API_KEY
capability:
  consumes:
  - type: http
    namespace: openapi-secret-versions
    baseUri: https://secretmanager.googleapis.com/v1
    description: Google Cloud Secret Manager API — Secret Versions business capability. Self-contained, no shared references.
    resources:
    - name: projects-projectId-secrets-secretId-versions
      path: /projects/{projectId}/secrets/{secretId}/versions
      operations:
      - name: listsecretversions
        method: GET
        description: Google Cloud Secret Manager List secret versions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: secretId
          in: path
          type: string
          required: true
        - name: pageSize
          in: query
          type: integer
        - name: pageToken
          in: query
          type: string
    - name: projects-projectId-secrets-secretId-versions-versionId}:access
      path: /projects/{projectId}/secrets/{secretId}/versions/{versionId}:access
      operations:
      - name: accesssecretversion
        method: GET
        description: Google Cloud Secret Manager Access a secret version
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: secretId
          in: path
          type: string
          required: true
        - name: versionId
          in: path
          type: string
          required: true
    - name: projects-projectId-secrets-secretId-versions-versionId}:destroy
      path: /projects/{projectId}/secrets/{secretId}/versions/{versionId}:destroy
      operations:
      - name: destroysecretversion
        method: POST
        description: Google Cloud Secret Manager Destroy a secret version
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: secretId
          in: path
          type: string
          required: true
        - name: versionId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: projects-projectId-secrets-secretId}:addVersion
      path: /projects/{projectId}/secrets/{secretId}:addVersion
      operations:
      - name: addsecretversion
        method: POST
        description: Google Cloud Secret Manager Add a secret version
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: secretId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.GOOGLE_CLOUD_SECRET_MANAGER_API_KEY}}'
  exposes:
  - type: rest
    namespace: openapi-secret-versions-rest
    port: 8080
    description: REST adapter for Google Cloud Secret Manager API — Secret Versions. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/projects/{projectid}/secrets/{secretid}/versions
      name: projects-projectid-secrets-secretid-versions
      description: REST surface for projects-projectId-secrets-secretId-versions.
      operations:
      - method: GET
        name: listsecretversions
        description: Google Cloud Secret Manager List secret versions
        call: openapi-secret-versions.listsecretversions
        with:
          projectId: rest.projectId
          secretId: rest.secretId
          pageSize: rest.pageSize
          pageToken: rest.pageToken
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{projectid}/secrets/{secretid}/versions/versionid-access
      name: projects-projectid-secrets-secretid-versions-versionid-access
      description: REST surface for projects-projectId-secrets-secretId-versions-versionId}:access.
      operations:
      - method: GET
        name: accesssecretversion
        description: Google Cloud Secret Manager Access a secret version
        call: openapi-secret-versions.accesssecretversion
        with:
          projectId: rest.projectId
          secretId: rest.secretId
          versionId: rest.versionId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{projectid}/secrets/{secretid}/versions/versionid-destroy
      name: projects-projectid-secrets-secretid-versions-versionid-destroy
      description: REST surface for projects-projectId-secrets-secretId-versions-versionId}:destroy.
      operations:
      - method: POST
        name: destroysecretversion
        description: Google Cloud Secret Manager Destroy a secret version
        call: openapi-secret-versions.destroysecretversion
        with:
          projectId: rest.projectId
          secretId: rest.secretId
          versionId: rest.versionId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{projectid}/secrets/secretid-addversion
      name: projects-projectid-secrets-secretid-addversion
      description: REST surface for projects-projectId-secrets-secretId}:addVersion.
      operations:
      - method: POST
        name: addsecretversion
        description: Google Cloud Secret Manager Add a secret version
        call: openapi-secret-versions.addsecretversion
        with:
          projectId: rest.projectId
          secretId: rest.secretId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openapi-secret-versions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Google Cloud Secret Manager API — Secret Versions. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: google-cloud-secret-manager-list
      description: Google Cloud Secret Manager List secret versions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openapi-secret-versions.listsecretversions
      with:
        projectId: tools.projectId
        secretId: tools.secretId
        pageSize: tools.pageSize
        pageToken: tools.pageToken
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-secret-manager-access
      description: Google Cloud Secret Manager Access a secret version
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openapi-secret-versions.accesssecretversion
      with:
        projectId: tools.projectId
        secretId: tools.secretId
        versionId: tools.versionId
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-secret-manager-destroy
      description: Google Cloud Secret Manager Destroy a secret version
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: openapi-secret-versions.destroysecretversion
      with:
        projectId: tools.projectId
        secretId: tools.secretId
        versionId: tools.versionId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-secret-manager-add
      description: Google Cloud Secret Manager Add a secret version
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: openapi-secret-versions.addsecretversion
      with:
        projectId: tools.projectId
        secretId: tools.secretId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.