--- title: "Configure OpenAPI and MCP operations" slug: "build-ai-ready-systems-business-entities-configure-operations-openapi-mcp" description: "Configure OpenAPI and MCP operations. Configure manifest sections matching the dataplane UI tabs. Integrators set auth, vocabulary, sync, and policies before..." tags: ["Integration", "Developer", "Integrator"] updated: 2026-11-30T18:59:10Z published: 2026-11-17T13:35:26Z canonical: "docs.aifabrix.ai/build-ai-ready-systems-business-entities-configure-operations-openapi-mcp" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.aifabrix.ai/llms.txt > Use this file to discover all available pages before exploring further. # Configure OpenAPI and MCP operations Bind **vendor HTTP operations** and optional **MCP operation contracts** to normalized capability keys on each Business Entity. ## Prerequisites - Vendor OpenAPI or MCP spec imported or authored - [Configure data flow](/docs/build-ai-ready-systems-business-entities-configure-data-flow) operation keys defined - System-level hints optional — [Configure AI interfaces](/docs/build-ai-ready-systems-connected-systems-configure-ai-interfaces) ## Where it lives | Layer | Location | | --- | --- | | OpenAPI ops | `<datasourceKey>.json` → **`openapi.operations`** | | MCP contract | **`mcpContract`** object on same file (optional; embeds MCP `securityModel` policy material) | | Authoritative vendor spec | **`externalSpec`** / imported document key | | UI | Business Entity **Operations** tab (`?tab=openapi`) | Manifest keys: **`openapi`**, **`mcpContract`** (both root). ## Builder MCP | | | | --- | --- | | **Manifest keys** | `openapi`, `mcpContract` | | **UI tab** | Operations (`?tab=openapi`) | | **Help topics** | `section`, `schemaCatalog`, `dependencyGraph` | | **Repair hooks** | `expose`, `rbac` | Operation keys must match **`^[a-z][a-zA-Z0-9]*$`** and align with CIP **`openapiRef`** values. Concept depth: [OpenAPI and MCP contracts](/docs/build-ai-ready-systems-publish-certify-openapi-mcp-contracts). ## How to set 1. **Create or repair the entity scaffold**: ``` aifabrix create --type external aifabrix repair --expose --dry-run ``` 1. **Enable OpenAPI band** and declare operations: ``` { "openapi": { "enabled": true, "operations": { "list": { "operationId": "listCustomers", "method": "GET", "path": "/customers", "permissions": ["external-system:read"] }, "get": { "operationId": "getCustomer", "method": "GET", "path": "/customers/{id}", "permissions": ["external-system:read"] } }, "documentKey": "example-customers" } } ``` 1. **Keep keys aligned** — `list`, `get`, `create`, `update`, `upsert`, `delete` or custom keys used in CIP and capabilities. 2. **Add an `mcpContract` object** when CIP `filter.abac` needs a datasource-scoped, mandatory policy readiness check — embed the MCP `securityModel` material (for example `securityModel.tools`, `securityModel.abac`) that the runtime persists on `ExternalDataSource.mcpContract` when published. 3. **Repair exposure** after operation changes: ``` aifabrix repair --expose aifabrix validate ``` ## Defaults and examples | Element | Purpose | Example | | --- | --- | --- | | **Operation key** | CIP and capability binding | `list`, `get`, `create` | | **`operationId`** | Vendor OpenAPI id | From imported spec | | **`method` / `path`** | HTTP binding | `GET` + `/customers` | | **`documentKey`** | Spec registry key | Matches imported document | Example `mcpContract` fragment (when used) — `mcpContract` accepts any properties (`additionalProperties: true`); `securityModel.tools` / `securityModel.abac` is the documented pattern, not a fixed schema shape: ``` { "mcpContract": { "securityModel": { "tools": ["listCustomers"], "abac": ["external-system:read"] } } } ``` Illustrative binding goals: - entity **`openapi.operations`** is authoritative for CIP — not system-level hints alone - permission arrays align with [Configure roles and permissions](/docs/build-ai-ready-systems-connected-systems-configure-roles-permissions) - renamed vendor operations update both **`operationId`** and CIP **`openapiRef`** ### Bind a declarative upsert `upsert` is a CIP operation shape, not an OpenAPI method. Its CIP definition composes the datasource's standard `create` and `update` operations. Keep both halves bound to their vendor operations, and declare the upsert capability with `shape: "upsert"` in `execution.cip.operations`. At execution time, CIP resolves existence once and checks permissions for the selected create or update half. Denied access, missing identity, or ambiguous identity stops the write; the operation does not fall back to the other half. See [Configure data flow](/docs/build-ai-ready-systems-business-entities-configure-data-flow) for the manifest fragment and identity rules. ## Validate ``` aifabrix validate aifabrix test-integration aifabrix datasource test-e2e --app ``` `aifabrix validate <systemKey>` catches broken operation references before runtime. Live proof follows [CLI workflow](/docs/build-ai-ready-systems-validate-test-cli-workflow). When operations change, re-run **`repair --expose`** so capability and RBAC bands stay aligned with HTTP bindings. ## Common mistakes | Mistake | Fix | | --- | --- | | System OpenAPI as only contract | Entity **`openapi.operations`** is authoritative for CIP | | Operation id mismatch with CIP | Align **`openapiRef`** and operation keys | | MCP ops without AI contract | Configure [AI contract](/docs/build-ai-ready-systems-business-entities-configure-ai-contract) | | Invalid operation key casing | Use camelCase starting with lowercase letter | | Permissions not in RBAC | Map roles before upload | ## Limits This page covers operation **binding shape** — not full vendor OpenAPI import mechanics. Large specs may register subset operations only; align enabled keys with business capabilities actually exposed to AI. `mcpContract` is optional; REST-only integrations omit it entirely. After vendor API version bumps, re-import or hand-update **`operationId`** values together with CIP **`openapiRef`** bindings — partial updates fail at compile time with opaque ref errors. An upsert declaration does not by itself certify every production transport. Validate the actual platform connector, worker, REST, MCP, or Role Assistant path used by the integration before publishing it for that channel. ## Related - [Configure AI contract](/build-ai-ready-systems-business-entities-configure-ai-contract.md) - [Configure entity configuration](/build-ai-ready-systems-business-entities-configure-entity-configuration.md)