
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.
概览
参考用 MCP 服务器,为 Odoo 记录提供有范围的业务语义,让 AI 助手能解释字段含义并消解歧义。
- 可以做什么
- 针对问题获取有范围的 Odoo 上下文,包括对误导性解读的警告和待解决的歧义(get_context)。将业务名词解析为预期含义(resolve_noun)。解释某个 Odoo 字段的含义及正确读法(explain_field)。提供十个公开候选示例以演示 OCL 工具契约,并非商业版 Odoo 19 运行时。
- 适用场景
- 适合在构建或测试需要处理 Odoo 数据的助手时使用,让它获得结构化的语义、字段解释和歧义提示,而不是直接访问原始记录。也适合评估 OCL 格式或在接入真实连接器前试用示例 MCP 服务器的开发者。
- 运行要求
- 通过 stdio 在本地运行,可用克隆仓库中的 Python 脚本,或用 Docker 运行已发布的容器镜像。未声明任何凭据、环境变量或请求头。README 的示例配置指向本地 Python 文件路径。
安装
在 SourceWeft 中
- 打开 控制台中的 OCL Context Layer,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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.
Use OCL
Choose the surface that fits your product:
Clone and try the context behavior:
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
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
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
- Introduction
- Technical alpha
- Format v0
- Quickstart
- Using OCL
- Connector runtime contract
- External developer alpha
- Governance
- Contributing
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版本历史
1- v0.1.0-alpha.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分