mcpField
O
OCL Context Layer

OCL Context Layer

Local
nanti.aiBusiness & Marketing0Updated 7w ago

About OCL Context Layer

OCL Context Layer is an example MCP server for the OCL standard, aimed at developers integrating agents with Odoo. It supplies scoped business meaning, field explanations, and ambiguity warnings; the repository server demonstrates public examples, not the commercial production runtime.

Key features

  1. 01Provide Odoo business-context examples
  2. 02Resolve the meaning of business nouns
  3. 03Explain fields and their applicability
  4. 04Demonstrate semantic-format interoperability
  5. 05Include an executable conformance suite

Use cases

  1. 01Give an agent business meaning for Odoo records and fields
  2. 02Identify ambiguity in terms such as revenue
  3. 03Test OCL document and implementation conformance

MCP support

The example MCP server offers calls such as get_context, resolve_noun, and explain_field, demonstrating the OCL tool contract with ten public candidate examples. It does not contain the commercial Odoo 19 runtime.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"nantiai-ocl-standard": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/nantiai/ocl-examples:0.1.0-alpha.1"
]
}
}
}
Run commanddocker run -i --rm ghcr.io/nantiai/ocl-examples:0.1.0-alpha.1

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
ocighcr.io/nantiai/ocl-examples:0.1.0-alpha.1

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

OCL standard

OCL is an experimental open format for giving AI systems structured, scoped, and verifiable business meaning for Odoo.

An Odoo connector explains how to reach records. An OCL context pack explains what relevant records and fields mean, which tempting interpretations are wrong, what ambiguity must be resolved, and which safety boundaries still apply.

question -> OCL context -> AI reasoning + existing connector -> Odoo

Use OCL

Choose the surface that fits your product:

RouteCallBenefitAlpha availability
MCP for AI agentsget_context, resolve_noun, explain_fieldPut scoped Odoo meaning directly in an agent's tool loopPublic example or invitation runtime
CLIget-context "What is revenue?"Inspect a context pack and its warnings immediatelyPublic examples now
Python validatorvalidate_entry(entry, schema)Read and produce interoperable OCL documentsAvailable now
TypeScript integrationFive production operation shapesConnect a product to the verified hosted runtimeSource alpha and invitation runtime

Clone and try the context behavior:

git clone https://github.com/Nantiai/ocl-standard.git
cd ocl-standard
python reference/python/ocl_examples.py get-context "What is revenue?"

The result asks which revenue definition applies and returns the paired warning against treating account.move.amount_total as universal revenue.

Add the example MCP to an agent
{
  "mcpServers": {
    "ocl-public-examples": {
      "command": "python",
      "args": [
        "/absolute/path/to/ocl-standard/reference/python/ocl_examples.py",
        "serve-mcp"
      ]
    }
  }
}

This local server demonstrates the real OCL tool contract using ten public candidate examples. It is not the commercial Odoo 19 runtime.

See Using OCL for the integration flow, MCP calls, CLI commands, SDK examples, response handling, and current access boundary. Connector and MCP implementers should freeze against the connector runtime contract and its conformance fixture. Hosted runtime clients can follow the verified alpha call guide. Developers can first try one live verified decision, then start a scoped seven-day trial without GitHub, package installation, Odoo credentials, or customer data. The GitHub request and email paths remain available as fallbacks.

This repository contains the open interoperability layer:

  • JSON Schemas for semantic entries and request-scoped context packs;
  • a dependency-light Python validator and TypeScript client shape;
  • ten Odoo 19 candidate examples covering the major knowledge types;
  • an executable conformance suite;
  • an example-only resolver and MCP server;
  • public benchmark methodology.

It does not contain nanti.ai's commercial registry, production assembler, verification harness, source fingerprints, private benchmarks, tenant overlays, memory, or unreleased ontology candidates.

Status

Version 0.1.0 is an experimental technical alpha. The format can change while independent implementations test it. The examples demonstrate the format; they are not the commercial verified registry and do not carry a lifetime guarantee.

Odoo 19 is the only current stock-version focus.

External developer alpha

Developers can now clone the standard, run conformance, integrate the example MCP server, and report an independent implementation. See the developer alpha guide.

The public alpha is an interoperability surface, not free bulk access to the commercial verified registry. A bounded verified runtime is live at https://api.context.nanti.ai; its native form immediately issues a scoped, expiring evaluation key.

Core idea

meaning -> evidence -> rule -> assertion -> applicability -> confidence

Facts do not become verified because an LLM wrote plausible JSON. A conforming document describes evidence and assertions. A registry operator separately decides which verification policy is sufficient for a release claim.

Learn more

Independence

Odoo is a trademark of Odoo S.A. This project is independently developed and is not affiliated with or endorsed by Odoo S.A.

License

The open repository is licensed under the Apache License 2.0. The commercial OCL registry and services are separate and are not distributed by this repository.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.