GitHub · Capability

github-repos-api — Dependency Graph

github-repos-api — Dependency Graph. 2 operations. Lead operation: GitHub Export Software Bill of Materials (sbom) for Repository.. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubDependency Graph

What You Can Do

GET
Exportsoftwarebillofmaterialssbomforrepository — GitHub Export Software Bill of Materials (sbom) for Repository.
/v1/repos/{owner}/{repo}/dependency-graph/sbom
POST
Createsnapshotofdependenciesforrepository — GitHub Create Snapshot of Dependencies for Repository
/v1/repos/{owner}/{repo}/dependency-graph/snapshots

MCP Tools

github-export-software-bill-materials

GitHub Export Software Bill of Materials (sbom) for Repository.

read-only idempotent
github-create-snapshot-dependencies-repository

GitHub Create Snapshot of Dependencies for Repository

Capability Spec

repos-dependency-graph.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: github-repos-api — Dependency Graph
  description: 'github-repos-api — Dependency Graph. 2 operations. Lead operation: GitHub Export Software Bill of Materials
    (sbom) for Repository.. Self-contained Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Dependency Graph
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: repos-dependency-graph
    baseUri: http://localhost:8080/rest/github-repos-api/1.1.4
    description: github-repos-api — Dependency Graph business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-dependency-graph-sbom
      path: /repos/{owner}/{repo}/dependency-graph/sbom
      operations:
      - name: exportsoftwarebillofmaterialssbomforrepository
        method: GET
        description: GitHub Export Software Bill of Materials (sbom) for Repository.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-dependency-graph-snapshots
      path: /repos/{owner}/{repo}/dependency-graph/snapshots
      operations:
      - name: createsnapshotofdependenciesforrepository
        method: POST
        description: GitHub Create Snapshot of Dependencies for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: repos-dependency-graph-rest
    port: 8080
    description: REST adapter for github-repos-api — Dependency Graph. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/dependency-graph/sbom
      name: repos-owner-repo-dependency-graph-sbom
      description: REST surface for repos-owner-repo-dependency-graph-sbom.
      operations:
      - method: GET
        name: exportsoftwarebillofmaterialssbomforrepository
        description: GitHub Export Software Bill of Materials (sbom) for Repository.
        call: repos-dependency-graph.exportsoftwarebillofmaterialssbomforrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/dependency-graph/snapshots
      name: repos-owner-repo-dependency-graph-snapshots
      description: REST surface for repos-owner-repo-dependency-graph-snapshots.
      operations:
      - method: POST
        name: createsnapshotofdependenciesforrepository
        description: GitHub Create Snapshot of Dependencies for Repository
        call: repos-dependency-graph.createsnapshotofdependenciesforrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: repos-dependency-graph-mcp
    port: 9090
    transport: http
    description: MCP adapter for github-repos-api — Dependency Graph. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: github-export-software-bill-materials
      description: GitHub Export Software Bill of Materials (sbom) for Repository.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repos-dependency-graph.exportsoftwarebillofmaterialssbomforrepository
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-create-snapshot-dependencies-repository
      description: GitHub Create Snapshot of Dependencies for Repository
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: repos-dependency-graph.createsnapshotofdependenciesforrepository
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.