npm · Capability

npm Registry API — Registry

npm Registry API — Registry. 1 operations. Lead operation: Get registry metadata. Self-contained Naftiko capability covering one Npm business surface.

Run with Naftiko NpmRegistry

What You Can Do

GET
Getregistrymetadata — Get registry metadata
/v1

MCP Tools

get-registry-metadata

Get registry metadata

read-only idempotent

Capability Spec

registry-registry.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: npm Registry API — Registry
  description: 'npm Registry API — Registry. 1 operations. Lead operation: Get registry metadata. Self-contained Naftiko capability
    covering one Npm business surface.'
  tags:
  - Npm
  - Registry
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    NPM_API_KEY: NPM_API_KEY
capability:
  consumes:
  - type: http
    namespace: registry-registry
    baseUri: https://registry.npmjs.org
    description: npm Registry API — Registry business capability. Self-contained, no shared references.
    resources:
    - name: root
      path: /
      operations:
      - name: getregistrymetadata
        method: GET
        description: Get registry metadata
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: registry-registry-rest
    port: 8080
    description: REST adapter for npm Registry API — Registry. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1
      name: root
      description: REST surface for root.
      operations:
      - method: GET
        name: getregistrymetadata
        description: Get registry metadata
        call: registry-registry.getregistrymetadata
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: registry-registry-mcp
    port: 9090
    transport: http
    description: MCP adapter for npm Registry API — Registry. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-registry-metadata
      description: Get registry metadata
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: registry-registry.getregistrymetadata
      outputParameters:
      - type: object
        mapping: $.