Google Cloud Deploy · Capability

Google Cloud Deploy API — Targets

Google Cloud Deploy API — Targets. 2 operations. Lead operation: Google Cloud Deploy List targets. Self-contained Naftiko capability covering one Google Cloud Deploy business surface.

Run with Naftiko Google Cloud DeployTargets

What You Can Do

GET
Listtargets — Google Cloud Deploy List targets
/v1/projects/{projectid}/locations/{location}/targets
POST
Createtarget — Google Cloud Deploy Create a target
/v1/projects/{projectid}/locations/{location}/targets

MCP Tools

google-cloud-deploy-list-targets

Google Cloud Deploy List targets

read-only idempotent
google-cloud-deploy-create-target

Google Cloud Deploy Create a target

Capability Spec

cloud-deploy-targets.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Google Cloud Deploy API — Targets
  description: 'Google Cloud Deploy API — Targets. 2 operations. Lead operation: Google Cloud Deploy List targets. Self-contained
    Naftiko capability covering one Google Cloud Deploy business surface.'
  tags:
  - Google Cloud Deploy
  - Targets
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GOOGLE_CLOUD_DEPLOY_API_KEY: GOOGLE_CLOUD_DEPLOY_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloud-deploy-targets
    baseUri: https://clouddeploy.googleapis.com/v1
    description: Google Cloud Deploy API — Targets business capability. Self-contained, no shared references.
    resources:
    - name: projects-projectId-locations-location-targets
      path: /projects/{projectId}/locations/{location}/targets
      operations:
      - name: listtargets
        method: GET
        description: Google Cloud Deploy List targets
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createtarget
        method: POST
        description: Google Cloud Deploy Create a target
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: targetId
          in: query
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.GOOGLE_CLOUD_DEPLOY_API_KEY}}'
  exposes:
  - type: rest
    namespace: cloud-deploy-targets-rest
    port: 8080
    description: REST adapter for Google Cloud Deploy API — Targets. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/projects/{projectid}/locations/{location}/targets
      name: projects-projectid-locations-location-targets
      description: REST surface for projects-projectId-locations-location-targets.
      operations:
      - method: GET
        name: listtargets
        description: Google Cloud Deploy List targets
        call: cloud-deploy-targets.listtargets
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createtarget
        description: Google Cloud Deploy Create a target
        call: cloud-deploy-targets.createtarget
        with:
          targetId: rest.targetId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloud-deploy-targets-mcp
    port: 9090
    transport: http
    description: MCP adapter for Google Cloud Deploy API — Targets. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: google-cloud-deploy-list-targets
      description: Google Cloud Deploy List targets
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloud-deploy-targets.listtargets
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-deploy-create-target
      description: Google Cloud Deploy Create a target
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cloud-deploy-targets.createtarget
      with:
        targetId: tools.targetId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.