utopia-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@utopia-mcpwhat did we believe about Acme's CEO as of March 2024?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
utopia-mcp
Utopia —— 本体系统唯一真源的 MCP 服务器。
实现依据:本体系统架构 ADR v1.0(TDAI Team Wiki wiki-ar156gei → ADR-0001-本体系统架构-v1.0.md,需团队凭据访问)。
核心约定速览:
唯一真源:本体 Schema 只存在于 Utopia
只 append:修正以「写入新断言 + 标记
superseded_at」实现,历史永不删除只有
approved参与推理与对外服务Agent 只能
propose,不能自行approve执行结果不能自我认证为权威事实
定位
四层架构中的知识真源层:
层 | 职责 |
Utopia | 本体类型/属性/关系、经审核的权威事实、双时态、证据、推理(本仓库) |
Agora | Action 执行与多 Agent 编排 |
TDAI | 跨工具对话记忆与偏好 |
Project Brain | 人类说明、ADR、操作手册、Utopia 只读导出快照 |
Related MCP server: claimbase
核心不变量
单一真源 —— Schema 只存在于 Utopia
只 append,永不 UPDATE —— 修正以写入新断言 + 标记
superseded_at实现只有
approved参与推理与对外服务Agent 只能 propose,不能自行 approve(§2.6 权限原则)
执行结果不能自我认证为权威事实 —— Action 回写只写 evidence 与 candidate
工具
只读
工具 | 用途 |
| 查类型定义 |
| 查实体 |
| 查事实(支持 |
| 查证据与溯源链 |
| 读受控词表 |
写
工具 | 用途 |
| 提交 candidate(Agent 入口) |
| 审批流转(高权限) |
状态机
candidate ──▶ under_review ──▶ approved ──▶ deprecated
│ │
└──────────────┴──▶ rejected ──▶ candidate非法流转被 ont_transition() 拒绝;所有流转写入 ont_review_log(绕过函数直接 UPDATE 也有触发器兜底)。
双时态
维度 | 字段 |
业务时间 |
|
系统时间 |
|
ont_as_of(subject, t)—— 某业务时点成立什么ont_as_recorded(subject, t)—— 某系统时点我们以为什么
运行
pnpm install
pnpm run build
UTOPIA_DB_URL=postgresql://... UTOPIA_TOKEN=... node dist/index.js服务暴露 GET /health(免鉴权)与 POST /mcp(需 Authorization: Bearer $UTOPIA_TOKEN)。
部署
见 deploy/docker-compose.yml。生产部署复用 /opt/utopia/.env,容器加入 utopia_default 网络,仅监听 127.0.0.1:18426,对外由 Caddy 提供 TLS 反代。
上线拓扑
Codex / 客户端
│ https://sleepnow.top:18425/mcp (Authorization: Bearer $UTOPIA_TOKEN)
▼
frps (公网 VPS) ──frpc──▶ 服务器 127.0.0.1:18425 (Caddy, TLS)
│
▼
127.0.0.1:18426 (utopia-mcp)
│
▼
utopia-postgres:5432鉴权由
utopia-mcp自身完成(Bearer token);Caddy 只做 TLS 终结与转发,不复制凭据。GET /health免鉴权,供网关与容器探活。
Codex 接入
codex mcp add utopia \
--url "https://sleepnow.top:18425/mcp" \
--bearer-token-env-var UTOPIA_TOKEN令牌只需存在于用户级环境变量(不要写进 config.toml)。
This server cannot be deployed
Maintenance
Related MCP Connectors
Memory for AI agents that knows what is still true. Typed bi-temporal facts, EU-hosted.
Read and write a CRM built for agents. Every change carries who asserted it and how.
Machine-readable entity discovery with provenance, trust and verified source evidence.
Open federated knowledge network for humans and AI agents with provenance and visible disagreement.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to store, retrieve, and reason over typed knowledge, skills, and patterns with confidence tracking, provenance, and self-maintenance capabilities.-
- AlicenseAqualityBmaintenanceProvides a compiled knowledge substrate, extracting atomic claims from an append-only capture log and querying a bitemporal claim graph over MCP. Read-only by default, with opt-in writes for trusted sources.4MIT
- AlicenseNot gradedqualityAmaintenanceEnables agents to query a dated, provenance-backed history distilled from any text stream, turning raw records into observations, bi-temporal facets, and narratives over MCP.8MIT

CAgneT Knowledgeofficial
FlicenseNot gradedqualityCmaintenanceEnables grounded read-only queries over a local knowledge base, reviewable pending updates, and audited merging of changes.-