NeuroDock Translation

io.github.tlennon-ie由 GitHub 账号 tlennon-ie 发布v0.3.0更新于 Oct 24, 2026

Decode subtext, tone, and ambiguity in messages; rewrite outgoing replies; brief meetings.

已验证STDIO仅桌面效率与工作流沟通与协作

概览

AI 生成的概览

让助手借助确定性启发式规则和可选的 LLM 提示,解读消息中的语气、歧义与潜台词,改写外发回复,并生成会议简报。

可以做什么
提供四个工具:translate_incoming、check_tone、rewrite_outgoing 和 brief_meeting。每个工具返回确定性启发式分析(歧义模式识别、基于词表的语气评分、按说话人前缀切分会议记录),以及一段可供调用方自己的模型用于细化的提示。brief_meeting 会校验引用片段与会议记录逐字一致,否则抛出 VERBATIM_ANCHOR_FAILED。
适用场景
适合助手需要解读含糊或带有情绪的消息、起草回复,或总结会议记录的场景。它无需连接任何 LLM 即可使用,连接模型时也保持厂商中立。
运行要求
以 PyPI 包 neurodock-mcp-translation 的形式通过 stdio 在本地运行,用 uvx 或 uv run 启动。未声明任何账号、API 密钥、环境变量或请求头。仅限桌面端,无网页版。超过 20 万字符的会议记录需由调用方分块。
安装前请注意
开发者预览版(v0.0.2),启发式规则仅支持英文,没有语言包;target_language 只会传递给提示。服务器本身不向第三方发送数据,但返回的提示需要交给调用方配置的 LLM,消息内容可能因此离开本机。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

neurodock-mcp-translation

Communication and translation tools as an MCP server. Shares its schemas and prompt library with @neurodock/extension-browser (Phase 2).

Version: 0.0.2 (developer preview, deterministic baseline).

Status

v0.0.x implements the four tools specified in ADR 0005 — translation tool design:

ToolStatus
translate_incomingdeterministic baseline + LLM-refinement prompt
check_tonedeterministic baseline + LLM-refinement prompt
rewrite_outgoingdeterministic baseline + LLM-refinement prompt
brief_meetingdeterministic baseline + verbatim-anchor enforcement

Design framing: deterministic baseline + optional LLM refinement

Per ADR 0005 §1, this server contains no LLM SDK (no anthropic, no openai, no ollama import). The substrate is provider-agnostic by construction. Each tool returns an envelope of the shape:

json
{  "deterministic_analysis": {    /* v0.1.0 output shape, populated heuristically */  },  "prompt_for_llm_refinement": {    "role": "user",    "content": "<rendered prompt template>",    "output_schema_ref": "packages/mcp-translation/schemas/<tool>.schema.json"  },  "eval_corpus_slice": "packages/evals/corpora/translation/<slice>.jsonl"}

The caller's MCP client (Claude Desktop, Claude Code, a custom MCP host) can:

  1. Use the deterministic analysis alone — useful when no LLM is available, when latency matters, or when the user has not yet configured a provider. The deterministic baseline already detects common ambiguity patterns (circle back, let's revisit, next week), scores tone on simple word-list heuristics, and partitions meeting transcripts via speaker-prefix and regex matching.
  2. Refine via its own LLM — feed prompt_for_llm_refinement.content to the caller's configured model (Claude, GPT, local Llama) and ask for a JSON response conforming to the schema at output_schema_ref. Replace the deterministic analysis with the refined object before rendering to the user.

This makes the server useful without a connected LLM and vendor-neutral when one is connected.

Verbatim-anchor enforcement (brief_meeting)

brief_meeting.ambiguous_items[].quoted_span.text MUST equal input.transcript[start_char:end_char]. The server validates this on every response (including its own deterministic output) and raises VERBATIM_ANCHOR_FAILED rather than fabricating ambiguity that is not in the transcript. This is anti-hallucination armour required by plan.md §7.

References

  • Spec: Section 7.
  • Tool design rationale: docs/decisions/0005-translation-tool-design.md.
  • Authoritative schemas: packages/mcp-translation/schemas/.

Running

sh
uv run neurodock-mcp-translation

The server speaks the MCP stdio transport.

Smoke test:

sh
uv run python -c "from neurodock_mcp_translation import server; print(server.app.name)"# neurodock-mcp-translation

Development

sh
uv sync --all-packages --all-extrasuv run pytest packages/mcp-translation/tests/ -vuv run ruff check packages/mcp-translation/uv run ruff format --check packages/mcp-translation/uv run mypy --strict packages/mcp-translation/src/

Known limitations (v0.0.2)

  • No language packs. The deterministic heuristics are English-only. BCP-47 target_language is accepted but only passed through to the prompt.
  • No model_provenance from a real LLM. The deterministic analysis sets mode="unknown" on every response; a connected LLM client is responsible for setting this in the refined response.
  • No eval-corpus integration yet. The eval_corpus_slice paths are recorded on every response but the slices themselves are owned by eval-curator and land in Phase 2.
  • No streaming. Long meeting transcripts (>200k chars) must be chunked by the caller.
  • The four schemas under schemas/ are the v0.1.0 wire contract; the v0.0.2 envelope wraps them and will collapse to the wire contract once the Phase 2 LLM-refinement flow is the default path.

来源:packages/mcp-translation/README.md,提交 2d9cac6

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.3.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

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

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分