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 分