OCL Context Layer

io.github.NantiaiPublished by GitHub account Nantiaiv0.1.0-alpha.1Updated Oct 24, 2026

Reference MCP server for OCL, an open standard giving AI agents scoped business meaning for Odoo.

Overview

AI-generated overview

Reference MCP server that supplies scoped business meaning for Odoo records so an AI agent can interpret fields and resolve ambiguous terms.

What you can do
Retrieve scoped Odoo context for a question, including warnings about misleading interpretations and unresolved ambiguity (get_context). Resolve business nouns to their intended meaning (resolve_noun). Explain what a specific Odoo field means and how it should be read (explain_field). Serves ten public candidate examples demonstrating the OCL tool contract; it is not the commercial Odoo 19 runtime.
When to use it
Useful when building or testing an agent that works with Odoo data and needs structured meaning, field explanations and ambiguity warnings rather than raw record access. Also suited to developers evaluating the OCL format or integrating an example MCP server before connecting a real connector.
Requirements
Runs locally over stdio, either as a Python script from the cloned repository or as the published container image run with Docker. No credentials, environment variables or headers are declared. The README's example configuration points at a local Python file path.
Before you install
Experimental 0.1.0 technical alpha; the format may change and the examples carry no lifetime guarantee. The public examples are not the commercial verified registry and are not the Odoo 19 runtime. The README mentions a hosted runtime that issues an expiring evaluation key and a scoped seven-day trial, so check access terms before relying on it.

Installation

In SourceWeft

  1. Open OCL Context Layer in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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.

text
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:

bash
git clone https://github.com/Nantiai/ocl-standard.gitcd ocl-standardpython 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

json
{  "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

text
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.

Source: README.md at commit a438d56

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.0-alpha.1LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts