HashiCorp Cloud Platform · Capability

HCP Vault Secrets API — Apps

HCP Vault Secrets API — Apps. 2 operations. Lead operation: List applications. Self-contained Naftiko capability covering one Hcp business surface.

Run with Naftiko HcpApps

What You Can Do

GET
Listapps — List applications
/v1/secrets/2023-11-28/organizations/{org-id}/projects/{project-id}/apps
POST
Createapp — Create application
/v1/secrets/2023-11-28/organizations/{org-id}/projects/{project-id}/apps

MCP Tools

list-applications

List applications

read-only idempotent
create-application

Create application

Capability Spec

hcp-apps.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: HCP Vault Secrets API — Apps
  description: 'HCP Vault Secrets API — Apps. 2 operations. Lead operation: List applications. Self-contained Naftiko capability
    covering one Hcp business surface.'
  tags:
  - Hcp
  - Apps
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HCP_API_KEY: HCP_API_KEY
capability:
  consumes:
  - type: http
    namespace: hcp-apps
    baseUri: https://api.cloud.hashicorp.com
    description: HCP Vault Secrets API — Apps business capability. Self-contained, no shared references.
    resources:
    - name: secrets-2023-11-28-organizations-org_id-projects-project_id-apps
      path: /secrets/2023-11-28/organizations/{org_id}/projects/{project_id}/apps
      operations:
      - name: listapps
        method: GET
        description: List applications
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_id
          in: path
          type: string
          required: true
        - name: project_id
          in: path
          type: string
          required: true
      - name: createapp
        method: POST
        description: Create application
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_id
          in: path
          type: string
          required: true
        - name: project_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.HCP_API_KEY}}'
  exposes:
  - type: rest
    namespace: hcp-apps-rest
    port: 8080
    description: REST adapter for HCP Vault Secrets API — Apps. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/secrets/2023-11-28/organizations/{org-id}/projects/{project-id}/apps
      name: secrets-2023-11-28-organizations-org-id-projects-project-id-apps
      description: REST surface for secrets-2023-11-28-organizations-org_id-projects-project_id-apps.
      operations:
      - method: GET
        name: listapps
        description: List applications
        call: hcp-apps.listapps
        with:
          org_id: rest.org_id
          project_id: rest.project_id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createapp
        description: Create application
        call: hcp-apps.createapp
        with:
          org_id: rest.org_id
          project_id: rest.project_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: hcp-apps-mcp
    port: 9090
    transport: http
    description: MCP adapter for HCP Vault Secrets API — Apps. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-applications
      description: List applications
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hcp-apps.listapps
      with:
        org_id: tools.org_id
        project_id: tools.project_id
      outputParameters:
      - type: object
        mapping: $.
    - name: create-application
      description: Create application
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: hcp-apps.createapp
      with:
        org_id: tools.org_id
        project_id: tools.project_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.