Hiro · Capability

Stacks 3.0+ RPC API — Atlas

Stacks 3.0+ RPC API — Atlas. 2 operations. Lead operation: Get attachment inventory. Self-contained Naftiko capability covering one Hiro business surface.

Run with Naftiko HiroAtlas

What You Can Do

GET
Getattachmentsinventory — Get attachment inventory
/v1/v2/attachments/inv
GET
Getattachment — Get attachment by hash
/v1/v2/attachments/{hash}

MCP Tools

get-attachment-inventory

Get attachment inventory

read-only idempotent
get-attachment-hash

Get attachment by hash

read-only idempotent

Capability Spec

stacks-node-rpc-atlas.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Stacks 3.0+ RPC API — Atlas
  description: 'Stacks 3.0+ RPC API — Atlas. 2 operations. Lead operation: Get attachment inventory. Self-contained Naftiko
    capability covering one Hiro business surface.'
  tags:
  - Hiro
  - Atlas
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HIRO_API_KEY: HIRO_API_KEY
capability:
  consumes:
  - type: http
    namespace: stacks-node-rpc-atlas
    baseUri: http://localhost:20443
    description: Stacks 3.0+ RPC API — Atlas business capability. Self-contained, no shared references.
    resources:
    - name: v2-attachments-inv
      path: /v2/attachments/inv
      operations:
      - name: getattachmentsinventory
        method: GET
        description: Get attachment inventory
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: index_block_hash
          in: query
          type: string
          description: Hex-encoded index block hash (64 characters)
          required: true
        - name: pages_indexes
          in: query
          type: string
          description: Comma-separated list of page indexes to query.
          required: true
    - name: v2-attachments-hash
      path: /v2/attachments/{hash}
      operations:
      - name: getattachment
        method: GET
        description: Get attachment by hash
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hash
          in: path
          type: string
          description: Hex-encoded SHA-1 hash of the attachment (40 characters)
          required: true
    authentication:
      type: apikey
      key: authorization
      value: '{{env.HIRO_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: stacks-node-rpc-atlas-rest
    port: 8080
    description: REST adapter for Stacks 3.0+ RPC API — Atlas. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v2/attachments/inv
      name: v2-attachments-inv
      description: REST surface for v2-attachments-inv.
      operations:
      - method: GET
        name: getattachmentsinventory
        description: Get attachment inventory
        call: stacks-node-rpc-atlas.getattachmentsinventory
        with:
          index_block_hash: rest.index_block_hash
          pages_indexes: rest.pages_indexes
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/attachments/{hash}
      name: v2-attachments-hash
      description: REST surface for v2-attachments-hash.
      operations:
      - method: GET
        name: getattachment
        description: Get attachment by hash
        call: stacks-node-rpc-atlas.getattachment
        with:
          hash: rest.hash
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: stacks-node-rpc-atlas-mcp
    port: 9090
    transport: http
    description: MCP adapter for Stacks 3.0+ RPC API — Atlas. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-attachment-inventory
      description: Get attachment inventory
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stacks-node-rpc-atlas.getattachmentsinventory
      with:
        index_block_hash: tools.index_block_hash
        pages_indexes: tools.pages_indexes
      outputParameters:
      - type: object
        mapping: $.
    - name: get-attachment-hash
      description: Get attachment by hash
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stacks-node-rpc-atlas.getattachment
      with:
        hash: tools.hash
      outputParameters:
      - type: object
        mapping: $.