Ottorev — Review MCP Server

io.github.ottonic由 GitHub 账号 ottonic 发布v0.3.0更新于 Nov 7, 2026

Durable review context for CAD: entity names, notes, tags, and revision-bound decisions.

发布方自己的服务:Review Expert

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

面向 CAD 评审的本地 SQLite 记忆服务:保存特征命名、备注、标签和绑定版本的决策,让助手延续几何评审上下文。

可以做什么
  • 按版本范围内的实体 ID 保存并修正命名特征、匿名备注和标签
  • 按工件、实体、全文或标签检索已存评审,并标记每条记录为过期或当前
  • 保存带需求核查依据的决策,并按最新优先召回
  • 按特征名、实体或主题删除命名特征、备注或决策
适用场景
适合助手跨会话评审 STEP 几何时使用:需要记住某个面是什么、哪些公差标注要紧,或某次评审为何结论为暂缓,且无需安装任何 CAD 软件。
运行要求
以 npm 包形式通过 stdio 在本机运行,需要 Node.js 26+ 和 npm。需设置 REVIEW_MCP_DB_PATH 指向 SQLite 文件(默认 ./review-mcp.db)。无需账号或 API 密钥。工件版本须由调用方提供。
安装前请注意
会写入、替换和删除本地记录,何时发起这些变更由客户端决定。数据库保存的是人工撰写的评审上下文,应作为应用数据加以保护和备份。没有数据库迁移:表结构变化即需删除数据库。过期判断仅依据调用方提供的版本,实体 ID 不跨版本通用。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Ottorev — Review MCP Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Ottorev — Review MCP Server

The memory an engineering assistant needs. This local stdio MCP server records names, notes, tags, and decisions against an exact CAD revision in SQLite, so an assistant can pick up where it left off — remember that a face is the mating surface, that a tolerance callout is tight, or that a review concluded hold with the requirements behind it.

It never opens the CAD file: it stores the revision the caller supplies and compares it on recall, so it works on a laptop with no CAD software and no other server running.

Quick start

Requires Node.js 26+ and npm. From this repository:

sh
npm installnpm run buildREVIEW_MCP_DB_PATH=/absolute/path/to/review.db npm start

For any MCP client:

json
{  "mcpServers": {    "review": {      "command": "node",      "args": ["/absolute/path/to/review-mcp-server/dist/src/index.js"],      "env": { "REVIEW_MCP_DB_PATH": "/absolute/path/to/review.db" }    }  }}

REVIEW_MCP_DB_PATH defaults to ./review-mcp.db; parent directories are created automatically. Records persist across restarts — protect and back up the database as application data.

Tools

ToolBehavior
rememberSave a named feature (re-remember replaces) or an anonymous note (re-remember appends) against an entity set, with tags. Returns replaced so a caller can tell which happened.
recallRetrieve by artifact, entity, free text, or tags; marks each record stale against a supplied current revision. Follow pagination for complete retrieval.
remember_decisionSave the disposition reached about a revision and its basis — one row per requirement-check, naming the source, the evidence, the state, and the engineer's verdict. Re-remembering the same subject replaces it.
recall_decisionsReturn decisions newest-first, each marked stale when it belongs to another revision. An entity_id filter matches only the supplied revision.
forgetDelete a named feature, an anonymous note by entity, or a decision by subject. Idempotent.

Results provide structured content and text; tool failures set MCP isError. Writes change local records; the client controls when to request those mutations. The server also advertises engineering-review prompts that compose with a geometry server, while the core record operations run on their own.

Artifact and subject semantics

An input artifact contains revision (sha256: plus 64 lowercase hex digits), format: "step", and optional URI and units:

json
{  "revision": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",  "uri": "file:///work/part.step",  "format": "step",  "units": "mm"}

Supply the actual revision from the producer; the example digest is illustrative. A URI groups records by locator; without a URI, the revision is the lookup key.

uri accepts either a URI or a plain filesystem path, because a path is what a caller usually has in hand:

json
{ "uri": "/work/part.step" }

Both spellings address the same records: a path is normalised to a file: URI before anything is stored or matched. A relative path resolves against the server working directory. Normalisation never opens the file, so a record can be written for an artifact this server cannot read.

An entity filter is revision-scoped; a text or tag filter is not. An entity ID denotes different geometry in a different revision, so recall and recall_decisions match an entity_id only against records written for the supplied revision, and match it exactly — face:3 does not match face:30. Names, notes, subjects, and tags are matched across revisions, which is how an earlier record is found at all, and every result says whether it is stale.

Each returned record contains one artifact reference, its entity IDs, and the ID scheme. The entity IDs are opaque outside that scheme and revision.

Decision records

A review names or annotates geometry. A decision is the other thing a review produces: a disposition about a revision, and the basis it rests on.

One basis item is one requirement-check, and it answers for itself:

fieldwhat it carries
requirementwhat has to hold, stated so it can be checked
sourcewhere the requirement came from: model-pmi, drawing, shop-spec, supplier-cert, standard, prior-decision, engineer-stated, or assistant-proposed
sourceDetailthe clause, note number, or document a reader can follow
evidencethe value as it was reported, quoted with its provenance
statesatisfied, violated, unresolved, conflicting, or not-applicable
questionrequired for unresolved and conflicting: what would settle it
facesthe geometry the item is about, in this revision; always present, empty when the item is about the part
verdictthe engineer's accepted / rejected judgement, with a reason when they gave one

unresolved and conflicting are first-class outcomes: a decision that carries them is a complete record of where the work stands, not a failure to decide. A basis item is refused when it cannot answer for itself — no source, or a state of unresolved/conflicting with no question.

Three properties matter more than the shape:

  • A decision is bound to a revision. The revision is part of its key, so the same subject at the same revision is recalled rather than reached again, and a decision made against a different revision comes back marked stale: true, still carrying the revision it belongs to.
  • Face IDs do not travel between revisions. Topological naming is unsolved in OCCT, and this API does not pretend otherwise: an entity_id filter matches only the revision that produced the ID.
  • Verdicts are what make a requirement agreed. Recording a verdict turns a line the assistant proposed into one the engineer accepted or rejected — the record of how much authority the assistant actually earned.

A stored decision is the caller's own account: the requirement as stated and the evidence as quoted. This server never measures anything, so a recalled decision is a record of what was concluded, not a measurement cache — Geometry remains the authority for numbers.

Limits

Review stores authored context: names, notes, and tags bound to an artifact revision, and decisions with the requirements they rest on. It does not store verified measurements, a complete immutable audit history, or authoritative approval records, and it does not compute geometry, run simulation, or decide manufacturability. Staleness is judged from a revision the caller supplies; Review never opens the CAD file.

There are no schema migrations: the database is a working file, and a changed table shape means deleting it. The server reports the version mismatch rather than guessing at a transformation.

Development

Requires Node.js 26+ and just. A Nix flake and .envrc provide the toolchain; run direnv allow after changing either.

RecipePurpose
just setupInstall dependencies.
just devRun TypeScript over stdio.
just buildCompile into dist/.
just testRun unit tests.
just lintRun oxlint.
just fmtRewrite formatting with Prettier.
just fmt-checkVerify formatting.
just typecheckRun tsc --noEmit.
just checkfmt-check + lint + typecheck + test.
just cleanRemove compiled output, retaining the database.

Server logs go to stderr as newline-delimited pino JSON. MCP_LOG_LEVEL (debug|info|warn|error), MCP_LOG_FORMAT=human, and MCP_TRACE_ID tune them; secret-like fields are redacted.

Packaging

npm pack builds first and includes compiled runtime code, package metadata, and this README. Tests and source maps are excluded. Install the tarball to check the review-mcp executable with a compatible MCP client. The server serves both protocol eras: the 2025-11-25 handshake that stock MCP hosts negotiate, and the 2026-07-28 envelope through server/discover.

License

MIT. Third-party notices: THIRD_PARTY_NOTICES.md.

来源:README.md,提交 50d52ae

工具

5

remember

Remember a Review

Save a durable review about geometry: a semantic feature (give it a name, e.g. 'mounting holes') or a plain note (no name). Re-remembering a named feature REPLACES it (use this to correct the AI). Re-remembering the same entities without a name APPENDS facts. The more you save, the more the system understands the part across sessions.

输入参数namenotetagsartifact必填entities必填entity_id_scheme必填

recall

Recall Reviews

Retrieve saved reviews for a STEP file, optionally filtered by an entity, free-text search, or tags. Pass the current ArtifactRef from Geometry inspect; its revision is used to mark each returned record stale or current. Each record returns one artifact reference, its entity IDs and the ID scheme; use these together when handing an annotation to another tool. An entity filter matches only reviews written against the supplied revision, because a face ID denotes different geometry in a different revision; text and tag filters are not scoped that way. Use early in a conversation to restore persistent context about a part. Uses the supplied artifact revision to mark saved records stale; it does not open the artifact or require shared filesystem access.

输入参数tagslimitoffsetsearchartifact必填entity_id

forget

Forget a Review

Delete a saved record. Pass the feature name to remove a named feature, an entity id to remove the anonymous notes attached to that entity, or a subject to remove a decision. Idempotent. Use only when the user explicitly asks to remove it.

输入参数namesubjectartifact必填entity_id

remember_decision

Remember a Decision

Save the disposition reached about an artifact revision, with the basis it rests on: a list of requirement-checks, each saying where its requirement came from and what happened when it was checked. Re-remembering the same subject on the same artifact revision REPLACES that decision, which is how a decision is revised as the engineer answers questions or disagrees with a line. A different subject starts a separate decision, because one part can carry several at once. Record each engineer verdict when they have given one: a requirement the engineer accepted is a different thing from one that was proposed. Store each requirement as stated and each piece of evidence as it was reported. This server never opens or measures the artifact, so recall returns what was concluded, not a measurement — Geometry remains the authority for numbers.

输入参数basis必填statussubject必填artifact必填confidence必填supersedesrecommendation必填

recall_decisions

Recall Decisions

Retrieve decisions saved for an artifact, newest first, each marked stale when it was made against a different revision than the one supplied. Pass the current ArtifactRef from Geometry inspect. Filter by subject text, status, or an entity that appears in the basis. An entity filter matches only decisions made against the supplied revision, because a face ID is scoped to the revision that produced it: a decision about face:3 in an older revision is not a decision about face:3 now. Use this when a revision reappears, to recover what was already concluded instead of reaching it again.

输入参数limitoffsetstatussubjectartifact必填entity_id

版本历史

1
  1. v0.3.0最新Oct 31, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Review 集成