OCL Context Layer

io.github.Nantiai由 GitHub 帳號 Nantiai 發布v0.1.0-alpha.1更新於 Oct 24, 2026

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

概覽

AI 產生的概覽

參考用 MCP 伺服器,為 Odoo 記錄提供有範圍的業務語意,讓 AI 助理能解釋欄位意義並釐清歧義。

可以做什麼
針對問題取得有範圍的 Odoo 情境,包含對誤導性解讀的警告與待釐清的歧義(get_context)。將業務名詞解析為預期意義(resolve_noun)。解釋某個 Odoo 欄位的意義與正確讀法(explain_field)。提供十個公開候選範例以展示 OCL 工具契約,並非商業版 Odoo 19 執行環境。
適用情境
適合在建置或測試需要處理 Odoo 資料的助理時使用,讓它取得結構化語意、欄位解釋與歧義提示,而非直接存取原始記錄。也適合評估 OCL 格式或在接上真實連接器前試用範例 MCP 伺服器的開發者。
執行需求
透過 stdio 在本機執行,可使用複製倉庫中的 Python 腳本,或以 Docker 執行已發布的容器映像。未宣告任何憑證、環境變數或請求標頭。README 的範例設定指向本機 Python 檔案路徑。
安裝前請注意
屬於實驗性的 0.1.0 技術 alpha,格式可能變動,範例不提供長期保證。公開範例不是商業驗證登錄庫,也不是 Odoo 19 執行環境。README 提到託管執行環境會簽發有期限的評估金鑰並提供有範圍的七天試用,依賴前請先確認存取條款。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 OCL Context Layer,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

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.

來源:README.md,提交 a438d56

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0-alpha.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分