launchdarkly · Capability

LaunchDarkly REST API — Custom Roles

LaunchDarkly REST API — Custom Roles. 2 operations. Lead operation: List custom roles. Self-contained Naftiko capability covering one Launchdarkly business surface.

Run with Naftiko LaunchdarklyCustom Roles

What You Can Do

GET
Listcustomroles — List custom roles
/v1/roles
POST
Createcustomrole — Create a custom role
/v1/roles

MCP Tools

list-custom-roles

List custom roles

read-only idempotent
create-custom-role

Create a custom role

Capability Spec

rest-custom-roles.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: LaunchDarkly REST API — Custom Roles
  description: 'LaunchDarkly REST API — Custom Roles. 2 operations. Lead operation: List custom roles. Self-contained Naftiko
    capability covering one Launchdarkly business surface.'
  tags:
  - Launchdarkly
  - Custom Roles
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LAUNCHDARKLY_API_KEY: LAUNCHDARKLY_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-custom-roles
    baseUri: https://app.launchdarkly.com/api/v2
    description: LaunchDarkly REST API — Custom Roles business capability. Self-contained, no shared references.
    resources:
    - name: roles
      path: /roles
      operations:
      - name: listcustomroles
        method: GET
        description: List custom roles
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createcustomrole
        method: POST
        description: Create a custom role
        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.LAUNCHDARKLY_API_KEY}}'
  exposes:
  - type: rest
    namespace: rest-custom-roles-rest
    port: 8080
    description: REST adapter for LaunchDarkly REST API — Custom Roles. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/roles
      name: roles
      description: REST surface for roles.
      operations:
      - method: GET
        name: listcustomroles
        description: List custom roles
        call: rest-custom-roles.listcustomroles
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcustomrole
        description: Create a custom role
        call: rest-custom-roles.createcustomrole
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-custom-roles-mcp
    port: 9090
    transport: http
    description: MCP adapter for LaunchDarkly REST API — Custom Roles. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-custom-roles
      description: List custom roles
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-custom-roles.listcustomroles
      outputParameters:
      - type: object
        mapping: $.
    - name: create-custom-role
      description: Create a custom role
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-custom-roles.createcustomrole
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.