WunderGraph · Capability

WunderGraph Cosmo Platform API — Schema Contracts

WunderGraph Cosmo Platform API — Schema Contracts. 2 operations. Lead operation: WunderGraph List schema contracts. Self-contained Naftiko capability covering one Wundergraph business surface.

Run with Naftiko WundergraphSchema Contracts

What You Can Do

GET
Listschemacontracts — WunderGraph List schema contracts
/v1/v1/schema-contracts
POST
Createschemacontract — WunderGraph Create a schema contract
/v1/v1/schema-contracts

MCP Tools

wundergraph-list-schema-contracts

WunderGraph List schema contracts

read-only idempotent
wundergraph-create-schema-contract

WunderGraph Create a schema contract

Capability Spec

cosmo-platform-schema-contracts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WunderGraph Cosmo Platform API — Schema Contracts
  description: 'WunderGraph Cosmo Platform API — Schema Contracts. 2 operations. Lead operation: WunderGraph List schema contracts.
    Self-contained Naftiko capability covering one Wundergraph business surface.'
  tags:
  - Wundergraph
  - Schema Contracts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WUNDERGRAPH_API_KEY: WUNDERGRAPH_API_KEY
capability:
  consumes:
  - type: http
    namespace: cosmo-platform-schema-contracts
    baseUri: https://cosmo-cp.wundergraph.com
    description: WunderGraph Cosmo Platform API — Schema Contracts business capability. Self-contained, no shared references.
    resources:
    - name: v1-schema-contracts
      path: /v1/schema-contracts
      operations:
      - name: listschemacontracts
        method: GET
        description: WunderGraph List schema contracts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: namespace
          in: query
          type: string
          description: Filter by namespace name.
      - name: createschemacontract
        method: POST
        description: WunderGraph Create a schema contract
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.WUNDERGRAPH_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: cosmo-platform-schema-contracts-rest
    port: 8080
    description: REST adapter for WunderGraph Cosmo Platform API — Schema Contracts. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/v1/schema-contracts
      name: v1-schema-contracts
      description: REST surface for v1-schema-contracts.
      operations:
      - method: GET
        name: listschemacontracts
        description: WunderGraph List schema contracts
        call: cosmo-platform-schema-contracts.listschemacontracts
        with:
          namespace: rest.namespace
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createschemacontract
        description: WunderGraph Create a schema contract
        call: cosmo-platform-schema-contracts.createschemacontract
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cosmo-platform-schema-contracts-mcp
    port: 9090
    transport: http
    description: MCP adapter for WunderGraph Cosmo Platform API — Schema Contracts. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: wundergraph-list-schema-contracts
      description: WunderGraph List schema contracts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cosmo-platform-schema-contracts.listschemacontracts
      with:
        namespace: tools.namespace
      outputParameters:
      - type: object
        mapping: $.
    - name: wundergraph-create-schema-contract
      description: WunderGraph Create a schema contract
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cosmo-platform-schema-contracts.createschemacontract
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.