GitHub Copilot · Capability

GitHub Copilot REST API — Copilot Content Exclusion

GitHub Copilot REST API — Copilot Content Exclusion. 2 operations. Lead operation: Github Copilot Get Copilot Content Exclusion Rules for an Organization. Self-contained Naftiko capability covering one Github Copilot business surface.

Run with Naftiko Github CopilotCopilot Content Exclusion

What You Can Do

GET
Getcopilotcontentexclusionrules — Github Copilot Get Copilot Content Exclusion Rules for an Organization
/v1/orgs/{org}/copilot/content-exclusion
PUT
Setcopilotcontentexclusionrules — Github Copilot Set Copilot Content Exclusion Rules for an Organization
/v1/orgs/{org}/copilot/content-exclusion

MCP Tools

github-copilot-get-copilot-content

Github Copilot Get Copilot Content Exclusion Rules for an Organization

read-only idempotent
github-copilot-set-copilot-content

Github Copilot Set Copilot Content Exclusion Rules for an Organization

idempotent

Capability Spec

github-copilot-copilot-content-exclusion.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Copilot REST API — Copilot Content Exclusion
  description: 'GitHub Copilot REST API — Copilot Content Exclusion. 2 operations. Lead operation: Github Copilot Get Copilot
    Content Exclusion Rules for an Organization. Self-contained Naftiko capability covering one Github Copilot business surface.'
  tags:
  - Github Copilot
  - Copilot Content Exclusion
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_COPILOT_API_KEY: GITHUB_COPILOT_API_KEY
capability:
  consumes:
  - type: http
    namespace: github-copilot-copilot-content-exclusion
    baseUri: https://api.github.com
    description: GitHub Copilot REST API — Copilot Content Exclusion business capability. Self-contained, no shared references.
    resources:
    - name: orgs-org-copilot-content_exclusion
      path: /orgs/{org}/copilot/content_exclusion
      operations:
      - name: getcopilotcontentexclusionrules
        method: GET
        description: Github Copilot Get Copilot Content Exclusion Rules for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setcopilotcontentexclusionrules
        method: PUT
        description: Github Copilot Set Copilot Content Exclusion Rules for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.GITHUB_COPILOT_API_KEY}}'
  exposes:
  - type: rest
    namespace: github-copilot-copilot-content-exclusion-rest
    port: 8080
    description: REST adapter for GitHub Copilot REST API — Copilot Content Exclusion. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/orgs/{org}/copilot/content-exclusion
      name: orgs-org-copilot-content-exclusion
      description: REST surface for orgs-org-copilot-content_exclusion.
      operations:
      - method: GET
        name: getcopilotcontentexclusionrules
        description: Github Copilot Get Copilot Content Exclusion Rules for an Organization
        call: github-copilot-copilot-content-exclusion.getcopilotcontentexclusionrules
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setcopilotcontentexclusionrules
        description: Github Copilot Set Copilot Content Exclusion Rules for an Organization
        call: github-copilot-copilot-content-exclusion.setcopilotcontentexclusionrules
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: github-copilot-copilot-content-exclusion-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Copilot REST API — Copilot Content Exclusion. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: github-copilot-get-copilot-content
      description: Github Copilot Get Copilot Content Exclusion Rules for an Organization
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: github-copilot-copilot-content-exclusion.getcopilotcontentexclusionrules
      outputParameters:
      - type: object
        mapping: $.
    - name: github-copilot-set-copilot-content
      description: Github Copilot Set Copilot Content Exclusion Rules for an Organization
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: github-copilot-copilot-content-exclusion.setcopilotcontentexclusionrules
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.