
Effect 中文文档
io.github.aaronlouPublished by GitHub account aaronlouv0.1.0Updated Oct 24, 2026
Effect 官方文档的中文译文检索(234 页,v3 + v4)。每条结果带可核验引用:能点回原文小节、能看到该译文对着哪次上游提交译的。零依赖、离线自包含。
Overview
A local MCP server that lets an assistant search the Chinese translation of the Effect (TypeScript) documentation, with verifiable citations back to the source.
- What you can do
- Search and retrieve Chinese translations of the Effect documentation (234 pages, v3 and v4). Return results with citations that link back to the original section and show which upstream commit the translation was based on. Answer questions about the docs with per-sentence citations, refusing when there is no supporting evidence. Look up real error messages in an error encyclopedia index. Expose documentation resources and prompts alongside the tools.
- When to use it
- Useful when working with Effect in TypeScript and you want Chinese-language documentation answers inside a coding assistant, especially when you need to check that an answer is actually backed by the official docs.
- Requirements
- Runs as a local stdio process, installed from the npm package effect-ts-cn-mcp. No authentication, environment variables or headers are declared. The documentation corpus is described as offline and self-contained.
Installation
In SourceWeft
- Open Effect 中文文档 in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Effect 中文社区
站点:https://effect-ts.cn —— Effect(TypeScript 的 effect system)官方文档全量中文翻译 (v4 + v3 共 234 页,每页标注上游基线)+ 可溯源的问答(每条引用可点回原文,无依据即拒答)
- 报错百科(真实报错的检索索引)+ 26 个用 Effect 写的开源 AI 项目推荐。
给 AI / Agent 的入口:
/llms.txt·/llms-full.txt·/docs/<slug>.md·/cite/<digest>.json(引用核验记录) · MCP server(仓库内pnpm mcp)。
中文世界 Effect 的第一入口:官方文档的高质量中文译站 + 内容社区 + 由 Effect 与 DDD 自建的开源标本。
- 产品与技术规划见 PLAN.md;译者规范见 docs/translation-guide.md; 上线步骤见 docs/deployment.md。
- 站点当前状态:已具备公开发布条件 —— v3 + v4 全量 234 篇中文译文(v4 110 · v3 124,覆盖率 100%), 每篇 frontmatter 记录译者 / 审校 / 上游基线;搜索、RSS、llms.txt 全部为构建期产物,不依赖后端。
- 审校口径:当前 234 篇的
reviewers一律为ecn-review,含义是机器可复核 (代码块与上游逐字节一致、结构对齐、术语 0 命中、锚点可达),非人类精读,尚无人类精读署名; 展示口径见apps/site/src/data/provenance.ts,维护者精读抽查后请追加自己的名字。
快速开始
- 前台:http://localhost:4321(
/api/*已由 dev 代理到后端) - 后端:http://localhost:8787
GET /api/health健康检查GET /api/questions问题列表 /POST /api/questions提问 /GET /api/questions/:id详情GET /openapi.json自动生成的 OpenAPI(来自@effect/schema契约)
常用命令
站点具备什么
目录速览
技术栈与为什么
后端 DDD 要点(详见 PLAN §5):
- 限界上下文:
Identity / Publishing / QnA / Curation / Notification(Moderation 先内嵌) - 每个上下文是垂直切片:
domain / application / infrastructure / interfaces - 端口(仓储/ID/事件)定义在 domain,适配在 infrastructure,用 Layer 一键替换
- 领域错误用
Data.TaggedError,wire 错误用@effect/schema的Schema.TaggedError(在 interfaces 层完成映射)
Layer 可移植性的活例子:同一个
QuestionRepository端口,bootstrap/main.ts按DATABASE_URL是否存在,在 InMemory 仓储与 Postgres 仓储之间切换 —— 这就是依赖倒置 + DI 容器。 测试里也用 Layer 注入确定性 ID 与内存仓储。
CI 与上游同步(“同步即信誉”自动化)
.github/workflows/ci.yml:内容门禁 →typecheck→test→build。.github/workflows/upstream-sync.yml:每日定时(可手动触发)克隆官方内容仓库Effect-TS/website的apps/web/src/content/docs(官方文档真正的源 ——Effect-TS/effect仓库里并没有docs/)→ 生成上游快照 → 比对译文落后 → 检查导航漂移 → 自动开/更新upstream-sync标签的 issue。
本地可复用同一套能力:packages/content 的 snapshot / diff / nav / check 子命令。
公开发布清单
- 内容:v3 + v4 全量 234 篇中文译文(v4 110 · v3 124,100%),全部
status: published并记录译者 / 审校 / 上游基线(@bf46254);审校为ecn-review(机器可复核,见上「审校口径」) - 可追溯同步:基线标注 + 每日比对 + 落后告警
- 阅读闭环:镜像侧边栏、TOC、上下页、版本切换、未翻译占位页(无死链)
- 体验:站内搜索(⌘K)、RSS、
llms.txt、robots、sitemap、404、canonical/OG - 质量门禁:内容门禁(CI)+ 全仓 typecheck/test/build
- 信任与协作:LICENSE、行为准则、Issue/PR 模板、术语表、非官方声明
- 部署:静态托管步骤 + API 容器化(docs/deployment.md)
- 待办:
<Tabs>交互切换;人类精读审校署名;社区功能(Phase 2)
里程碑
- Phase 0 · 地基:monorepo、Astro 壳、Effect/DDD 后端骨架、契约、CI
- Phase 1 · 内容为主:镜像官方结构的译站、内容管线、门禁与自动化、首屏阅读体验
- Phase 1.5 · 内容扩充:v3 + v4 全量 234/234 页(v4 110 · v3 124),覆盖率 100%
- Phase 2 · 社区功能:身份认证、问答/评论、审核、通知
- Phase 3 · 增长:案例库、活动日历、全文检索(分词)、自托管 Playground
指向
- 官方站点:https://effect.website/ · 官方内容仓库:https://github.com/Effect-TS/website
- 译者指南:docs/translation-guide.md · 部署指南:docs/deployment.md
- AI-Native 产品设计(Agent 时代的知识层):docs/ai-native.md
- Agent 接入指南(MCP / HTTP / 静态 .md / 引用核验):docs/agent-integration.md
- MCP 分发(各目录的实际机制、MCPB 打包、待人工步骤):docs/mcp-distribution.md
- 给 Agent 的安装说明(Cline 一类工具会找这个文件):llms-install.md
- 度量与周报(收什么 / 落哪 / 怎么看):docs/metrics.md
- 生态观测台(Effect × AI Agent 调查:口径、数据集、报告):docs/observatory/methodology.md · 线上 https://effect-ts.cn/observatory/
- 给编码 Agent 的仓库契约:AGENTS.md(架构不变量 / 必跑门禁 / 不许做的事)
- Agent 提案队列(机器写、人审):.proposals/README.md
- 行为准则:CODE_OF_CONDUCT.md · 许可:LICENSE(内容与商标说明见 NOTICE.md)
Source: README.md at commit 114ca14
Tools
0Version history
1- v0.1.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts