PyPI · Capability

PyPI Index API — Index

PyPI Index API — Index. 2 operations. Lead operation: List all projects. Self-contained Naftiko capability covering one Pypi business surface.

Run with Naftiko PypiIndex

What You Can Do

GET
Listprojects — List all projects
/v1/simple
GET
Getprojectfiles — Get project distribution files
/v1/simple/{project}

MCP Tools

list-all-projects

List all projects

read-only idempotent
get-project-distribution-files

Get project distribution files

read-only idempotent

Capability Spec

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