PyPI · Capability

PyPI JSON API — Projects

PyPI JSON API — Projects. 2 operations. Lead operation: Get project metadata. Self-contained Naftiko capability covering one Pypi business surface.

Run with Naftiko PypiProjects

What You Can Do

GET
Getprojectmetadata — Get project metadata
/v1/pypi/{project}/json
GET
Getprojectversionmetadata — Get project version metadata
/v1/pypi/{project}/{version}/json

MCP Tools

get-project-metadata

Get project metadata

read-only idempotent
get-project-version-metadata

Get project version metadata

read-only idempotent

Capability Spec

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