Skip to main content

CoreMind Ontology MCP

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

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

python -m pip install coremind-ontology-mcp==0.1.0
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.0-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.0 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.

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

Metadata

Release files for coremind-ontology-mcp 0.1.0

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.0
File Interpreter ABI Platform Actions
coremind_ontology_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for coremind_ontology_mcp-0.1.0-py3-none-any.whl

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

Download URL coremind_ontology_mcp-0.1.0-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1882109518bd9e7d345e5dec905bc617fddd8c666ba88efb89a2d3bb96ab8f85
BLAKE2b-256 checksum
How to use checksums
2bcc88f5f023d120d7f5203c5907a0cb953a0ed9e777cf0a9f324b37a0da24c2
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 26, 2026.

Transparency log

Security for coremind-ontology-mcp 0.1.0

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.0-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 26, 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.0 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