naftiko: 1.0.0-alpha2 info: label: LaunchDarkly REST API — Environments description: 'LaunchDarkly REST API — Environments. 5 operations. Lead operation: List environments. Self-contained Naftiko capability covering one Launchdarkly business surface.' tags: - Launchdarkly - Environments created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: LAUNCHDARKLY_API_KEY: LAUNCHDARKLY_API_KEY capability: consumes: - type: http namespace: rest-environments baseUri: https://app.launchdarkly.com/api/v2 description: LaunchDarkly REST API — Environments business capability. Self-contained, no shared references. resources: - name: projects-projectKey-environments path: /projects/{projectKey}/environments operations: - name: listenvironments method: GET description: List environments outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: limit in: query type: integer description: Maximum number of environments to return. - name: offset in: query type: integer description: Number of environments to skip for pagination. - name: createenvironment method: POST description: Create an environment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: projects-projectKey-environments-environmentKey path: /projects/{projectKey}/environments/{environmentKey} operations: - name: getenvironment method: GET description: Get an environment outputRawFormat: json outputParameters: - name: result type: object value: $. - name: patchenvironment method: PATCH description: Update an environment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deleteenvironment method: DELETE description: Delete an environment outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.LAUNCHDARKLY_API_KEY}}' exposes: - type: rest namespace: rest-environments-rest port: 8080 description: REST adapter for LaunchDarkly REST API — Environments. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/projects/{projectkey}/environments name: projects-projectkey-environments description: REST surface for projects-projectKey-environments. operations: - method: GET name: listenvironments description: List environments call: rest-environments.listenvironments with: limit: rest.limit offset: rest.offset outputParameters: - type: object mapping: $. - method: POST name: createenvironment description: Create an environment call: rest-environments.createenvironment with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/projects/{projectkey}/environments/{environmentkey} name: projects-projectkey-environments-environmentkey description: REST surface for projects-projectKey-environments-environmentKey. operations: - method: GET name: getenvironment description: Get an environment call: rest-environments.getenvironment outputParameters: - type: object mapping: $. - method: PATCH name: patchenvironment description: Update an environment call: rest-environments.patchenvironment with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteenvironment description: Delete an environment call: rest-environments.deleteenvironment outputParameters: - type: object mapping: $. - type: mcp namespace: rest-environments-mcp port: 9090 transport: http description: MCP adapter for LaunchDarkly REST API — Environments. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-environments description: List environments hints: readOnly: true destructive: false idempotent: true call: rest-environments.listenvironments with: limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: create-environment description: Create an environment hints: readOnly: false destructive: false idempotent: false call: rest-environments.createenvironment with: body: tools.body outputParameters: - type: object mapping: $. - name: get-environment description: Get an environment hints: readOnly: true destructive: false idempotent: true call: rest-environments.getenvironment outputParameters: - type: object mapping: $. - name: update-environment description: Update an environment hints: readOnly: false destructive: false idempotent: true call: rest-environments.patchenvironment with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-environment description: Delete an environment hints: readOnly: false destructive: true idempotent: true call: rest-environments.deleteenvironment outputParameters: - type: object mapping: $.