NuGet · Capability

NuGet Server API — Service Index

NuGet Server API — Service Index. 1 operations. Lead operation: Get the service index. Self-contained Naftiko capability covering one Nuget business surface.

Run with Naftiko NugetService Index

What You Can Do

GET
Getserviceindex — Get the service index
/v1/index-json

MCP Tools

get-service-index

Get the service index

read-only idempotent

Capability Spec

server-service-index.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: NuGet Server API — Service Index
  description: 'NuGet Server API — Service Index. 1 operations. Lead operation: Get the service index. Self-contained Naftiko
    capability covering one Nuget business surface.'
  tags:
  - Nuget
  - Service Index
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    NUGET_API_KEY: NUGET_API_KEY
capability:
  consumes:
  - type: http
    namespace: server-service-index
    baseUri: https://api.nuget.org/v3
    description: NuGet Server API — Service Index business capability. Self-contained, no shared references.
    resources:
    - name: index.json
      path: /index.json
      operations:
      - name: getserviceindex
        method: GET
        description: Get the service index
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: X-NuGet-ApiKey
      value: '{{env.NUGET_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: server-service-index-rest
    port: 8080
    description: REST adapter for NuGet Server API — Service Index. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/index-json
      name: index-json
      description: REST surface for index.json.
      operations:
      - method: GET
        name: getserviceindex
        description: Get the service index
        call: server-service-index.getserviceindex
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: server-service-index-mcp
    port: 9090
    transport: http
    description: MCP adapter for NuGet Server API — Service Index. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-service-index
      description: Get the service index
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: server-service-index.getserviceindex
      outputParameters:
      - type: object
        mapping: $.