Skip to main content

CoreMind Ontology MCP

coremind-ontology-mcp 0.1.1 是独立的本体服务,支持 Python 3.10 及以上版本。使用业务方自己的 Turtle、SHACL、映射与动作定义,通过 Streamable HTTP MCP 查询对象、校验来源记录和检查动作前置条件。默认只读。无需 CoreMind SDK、模型凭据、知识库或记忆服务。

在业务目录激活独立虚拟环境,从 PyPI 安装本体服务,并将业务模型放在环境外。

python -m pip install coremind-ontology-mcp==0.1.1
coremind-ontology-mcp --version
coremind-ontology-mcp --model-dir /absolute/path/to/model --port 8879

需要从源码安装时,可在包含 pyproject.toml 的本目录构建并安装本地 wheel。

python -m pip wheel --no-deps . --wheel-dir dist
python -m pip install dist/coremind_ontology_mcp-0.1.1-py3-none-any.whl

启动前,由宿主设置 COREMIND_ONTOLOGY_AUTHORIZATION 为完整的 Bearer <token>,令牌至少 24 个无空白字符。客户端向 http://127.0.0.1:8879/mcp 传相同的 Authorization Header。模型目录包含经审阅的 model.ttl、shapes.ttl、data.ttl、mapping.json 和 actions.json。只读模型的 actions 可为空。查询结果携带模型版本及摘要。

写操作需另设不同的 COREMIND_ONTOLOGY_ACTION_AUTHORIZATION,并给服务传入 --action-handler /path/to/handler.py --receipt-db /path/to/receipts.sqlite3。宿主明确指定的本地 Python 文件提供同步 execute(command)。处理器按 requestId 幂等执行,返回 requestId、resource、previousState、status 和 state。服务将完成回执与预期后态核对。回执未知时保留原请求并阻止同对象的新写入。每个业务项目独占一份回执库,轮换模型或组件时先停止旧服务。保留模型、回执库和业务系统记录后,可用 python -m pip uninstall coremind-ontology-mcp 卸除组件。

The wheel runs as an independent loopback MCP service. Install coremind-ontology-mcp==0.1.1 from PyPI in a dedicated environment, or use the optional source wheel commands above. Supply an external model directory and start the console command above. Read and action tokens are distinct. An approved business handler and a durable SQLite receipt database are required for writes. Stop the old process before switching models or component versions. Keep the model, receipt database and business records outside the environment when uninstalling.

当前源码构建的组件可在 --receipt-db 启动参数下启用宿主对账。设置独立的 COREMIND_ONTOLOGY_RECONCILE_AUTHORIZATION 后,由宿主向 POST /admin/reconcile-action 提交权威业务系统核实的结果。查询和动作凭据按原用途注入。宿主对账指南

A wheel built from the current source supports host reconciliation when started with --receipt-db and a distinct COREMIND_ONTOLOGY_RECONCILE_AUTHORIZATION credential. The host submits the outcome verified in the authoritative business system to POST /admin/reconcile-action. Host reconciliation guide

The repository contains the Chinese integration guide, English integration guide and runnable example.

Metadata

Release files for coremind-ontology-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for coremind-ontology-mcp 0.1.1
File Interpreter ABI Platform Actions
coremind_ontology_mcp-0.1.1-py3-none-any.whl Python 3 none any Details for coremind_ontology_mcp-0.1.1-py3-none-any.whl

Release files / coremind_ontology_mcp-0.1.1-py3-none-any.whl

Download URL coremind_ontology_mcp-0.1.1-py3-none-any.whl
Size 16.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c0eac178a4a1be4ef606d9f912880abf5c62f27f9a7863249f001df16920717
BLAKE2b-256 checksum
How to use checksums
fa5769a6763098703b839dcd55fd04792e0ae2190cdb6767341df8517ec351e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for coremind-ontology-mcp 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

1 file in this release has been uploaded with provenance metadata.

Attestation for coremind_ontology_mcp-0.1.1-py3-none-any.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page