APIs.io Engineering Platform Cloudflare API — Worker Environment

APIs.io Engineering Platform Cloudflare API — Worker Environment. 4 operations. Lead operation: APIs.io Engineering Platform Get script content. Self-contained Naftiko capability covering one Engineering Platform business surface.

Run with Naftiko Engineering PlatformWorker Environment

What You Can Do

GET
Workerenvironmentgetscriptcontent — APIs.io Engineering Platform Get script content
/v1/accounts/{account-id}/workers/services/{service-name}/environments/{environment-name}/content
PUT
Workerenvironmentputscriptcontent — APIs.io Engineering Platform Put script content
/v1/accounts/{account-id}/workers/services/{service-name}/environments/{environment-name}/content
GET
Workerscriptenvironmentgetsettings — APIs.io Engineering Platform Get Script Settings
/v1/accounts/{account-id}/workers/services/{service-name}/environments/{environment-name}/settings
PATCH
Workerscriptenvironmentpatchsettings — APIs.io Engineering Platform Patch Script Settings
/v1/accounts/{account-id}/workers/services/{service-name}/environments/{environment-name}/settings

MCP Tools

apis-io-engineering-platform-get-script

APIs.io Engineering Platform Get script content

read-only idempotent
apis-io-engineering-platform-put-script

APIs.io Engineering Platform Put script content

idempotent
apis-io-engineering-platform-get-script-2

APIs.io Engineering Platform Get Script Settings

read-only idempotent
apis-io-engineering-platform-patch-script

APIs.io Engineering Platform Patch Script Settings

idempotent

Capability Spec

cloudflare-worker-environment.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: APIs.io Engineering Platform Cloudflare API — Worker Environment
  description: 'APIs.io Engineering Platform Cloudflare API — Worker Environment. 4 operations. Lead operation: APIs.io Engineering
    Platform Get script content. Self-contained Naftiko capability covering one Engineering Platform business surface.'
  tags:
  - Engineering Platform
  - Worker Environment
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ENGINEERING_PLATFORM_API_KEY: ENGINEERING_PLATFORM_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloudflare-worker-environment
    baseUri: ''
    description: APIs.io Engineering Platform Cloudflare API — Worker Environment business capability. Self-contained, no
      shared references.
    resources:
    - name: accounts-account_id-workers-services-service_name-environments-environment_name-
      path: /accounts/{account_id}/workers/services/{service_name}/environments/{environment_name}/content
      operations:
      - name: workerenvironmentgetscriptcontent
        method: GET
        description: APIs.io Engineering Platform Get script content
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: service_name
          in: path
          type: string
          required: true
        - name: environment_name
          in: path
          type: string
          required: true
      - name: workerenvironmentputscriptcontent
        method: PUT
        description: APIs.io Engineering Platform Put script content
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: service_name
          in: path
          type: string
          required: true
        - name: environment_name
          in: path
          type: string
          required: true
        - name: CF-WORKER-BODY-PART
          in: header
          type: string
          description: The multipart name of a script upload part containing script content in service worker format. Alternative
            to including in a metadata part.
        - name: CF-WORKER-MAIN-MODULE-PART
          in: header
          type: string
          description: The multipart name of a script upload part containing script content in es module format. Alternative
            to including in a metadata part.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: accounts-account_id-workers-services-service_name-environments-environment_name-
      path: /accounts/{account_id}/workers/services/{service_name}/environments/{environment_name}/settings
      operations:
      - name: workerscriptenvironmentgetsettings
        method: GET
        description: APIs.io Engineering Platform Get Script Settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: service_name
          in: path
          type: string
          required: true
        - name: environment_name
          in: path
          type: string
          required: true
      - name: workerscriptenvironmentpatchsettings
        method: PATCH
        description: APIs.io Engineering Platform Patch Script Settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: service_name
          in: path
          type: string
          required: true
        - name: environment_name
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.ENGINEERING_PLATFORM_API_KEY}}'
  exposes:
  - type: rest
    namespace: cloudflare-worker-environment-rest
    port: 8080
    description: REST adapter for APIs.io Engineering Platform Cloudflare API — Worker Environment. One Spectral-compliant
      resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/accounts/{account-id}/workers/services/{service-name}/environments/{environment-name}/content
      name: accounts-account-id-workers-services-service-name-environments-environment-name
      description: REST surface for accounts-account_id-workers-services-service_name-environments-environment_name-.
      operations:
      - method: GET
        name: workerenvironmentgetscriptcontent
        description: APIs.io Engineering Platform Get script content
        call: cloudflare-worker-environment.workerenvironmentgetscriptcontent
        with:
          account_id: rest.account_id
          service_name: rest.service_name
          environment_name: rest.environment_name
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: workerenvironmentputscriptcontent
        description: APIs.io Engineering Platform Put script content
        call: cloudflare-worker-environment.workerenvironmentputscriptcontent
        with:
          account_id: rest.account_id
          service_name: rest.service_name
          environment_name: rest.environment_name
          CF-WORKER-BODY-PART: rest.CF-WORKER-BODY-PART
          CF-WORKER-MAIN-MODULE-PART: rest.CF-WORKER-MAIN-MODULE-PART
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/workers/services/{service-name}/environments/{environment-name}/settings
      name: accounts-account-id-workers-services-service-name-environments-environment-name
      description: REST surface for accounts-account_id-workers-services-service_name-environments-environment_name-.
      operations:
      - method: GET
        name: workerscriptenvironmentgetsettings
        description: APIs.io Engineering Platform Get Script Settings
        call: cloudflare-worker-environment.workerscriptenvironmentgetsettings
        with:
          account_id: rest.account_id
          service_name: rest.service_name
          environment_name: rest.environment_name
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: workerscriptenvironmentpatchsettings
        description: APIs.io Engineering Platform Patch Script Settings
        call: cloudflare-worker-environment.workerscriptenvironmentpatchsettings
        with:
          account_id: rest.account_id
          service_name: rest.service_name
          environment_name: rest.environment_name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloudflare-worker-environment-mcp
    port: 9090
    transport: http
    description: MCP adapter for APIs.io Engineering Platform Cloudflare API — Worker Environment. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: apis-io-engineering-platform-get-script
      description: APIs.io Engineering Platform Get script content
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloudflare-worker-environment.workerenvironmentgetscriptcontent
      with:
        account_id: tools.account_id
        service_name: tools.service_name
        environment_name: tools.environment_name
      outputParameters:
      - type: object
        mapping: $.
    - name: apis-io-engineering-platform-put-script
      description: APIs.io Engineering Platform Put script content
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: cloudflare-worker-environment.workerenvironmentputscriptcontent
      with:
        account_id: tools.account_id
        service_name: tools.service_name
        environment_name: tools.environment_name
        CF-WORKER-BODY-PART: tools.CF-WORKER-BODY-PART
        CF-WORKER-MAIN-MODULE-PART: tools.CF-WORKER-MAIN-MODULE-PART
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apis-io-engineering-platform-get-script-2
      description: APIs.io Engineering Platform Get Script Settings
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloudflare-worker-environment.workerscriptenvironmentgetsettings
      with:
        account_id: tools.account_id
        service_name: tools.service_name
        environment_name: tools.environment_name
      outputParameters:
      - type: object
        mapping: $.
    - name: apis-io-engineering-platform-patch-script
      description: APIs.io Engineering Platform Patch Script Settings
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: cloudflare-worker-environment.workerscriptenvironmentpatchsettings
      with:
        account_id: tools.account_id
        service_name: tools.service_name
        environment_name: tools.environment_name
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.