
gomddoc
io.github.monolithiclab由 GitHub 账号 monolithiclab 发布v0.5.1更新于 Nov 5, 2026
Search and read a Markdown documentation directory: pages, sections, table of contents.
概览
以只读方式访问 Markdown 文档站点,让助手搜索页面、阅读章节并浏览目录。
- 可以做什么
- 全文搜索文档,并支持标签过滤
- 读取单个页面及其章节内容
- 浏览导航与目录结构
- 可通过 gomddoc mcp 命令以 stdio 方式运行,或通过站点的 /_mcp/ 端点以 Streamable HTTP 方式访问
- 所有工具均为只读
- 适用场景
- 适合团队以 Markdown 维护文档(本地目录或 Git 仓库),希望助手基于这些页面作答而不是凭空推测;也适合已用 gomddoc 搭建站点、想把内容开放给 AI 代理的场景。
- 运行要求
- 作为本地进程运行,通常使用 Docker 镜像 ghcr.io/monolithiclab/gomddoc:0.5.1 并挂载文档目录。未声明认证、环境变量或请求头。仅支持桌面端。
安装
在 SourceWeft 中
- 打开 控制台中的 gomddoc,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Gomddoc
A production-ready HTTP server and static site generator for Markdown documentation, with content negotiation, full-text search, SEO output and a built-in MCP server.
Status
Released and in use: v0.5.1 (2026-11-05) is on GitHub Releases, the Homebrew tap (monolithiclab/tap) and
ghcr.io/monolithiclab/gomddoc, and it publishes Monolithic Lab's own sites. Pre-1.0: configuration keys can still
change between minor versions (since v0.1.2 an unknown key in .gomddoc/config.yml is a load error, so check a site
with gomddoc doctor before bumping a pinned version). Open bugs and the ranked backlog are in ROADMAP.md.
Features
- Universal Content Serving: Renders Markdown to HTML inside a theme; serves HTML, CSS, JS, images and every other file type with its detected MIME type
- Content Negotiation:
Acceptheader support;Accept: text/markdownreturns the raw Markdown source, an unsatisfiableAcceptgets406 - Clean URLs:
.mdis stripped from URLs by default (/guideserves the page forguide.md); links between pages written asguide.mdpoint at the clean URL - Markdown URLs: every page's
.mdURL (/guide.md) serves its Markdown with generated frontmatter, inserveand in static builds, and each HTML page links it asrel="alternate" - llms.txt:
/llms.txtindexes the site for AI agents from the navigation, each page linked by its Markdown URL - Git-Native Content: Serve a local directory or a
git+https:///git+ssh://repository URL (in-memory or on-disk clone) - Static Site Generation:
gomddoc buildwrites a static site with clean-URL directories,404.html, sitemap, feed and redirect stubs - Full-Text Search: TF-IDF inverted index built at startup,
tag:filter syntax,GET /api/search, and a Ctrl+K search dialog in every theme - SEO: Canonical URLs,
sitemap.xml,robots.txt, Atomfeed.xml, Open Graph and Twitter tags, JSON-LD, per-pagerobots,redirect_fromandrel="prev/next", enabled by setting a domain - Tags: Frontmatter tags rendered as chips,
/tags/and/tags/{tag}pages, a see-also section and/api/tags - Internationalization: BCP 47 language directories (
fr-FR/) served under/{lang}/, translated UI strings, a language switcher andhreflangtags - MCP Server:
gomddoc mcp(stdio) and/_mcp/(Streamable HTTP) expose read-only search, page, section and navigation tools to AI agents; every stable release is listed in the MCP Registry asio.github.monolithiclab/gomddoc, running the container image - Themes: One bundled theme (
default) plus seven more in gomddoc-themes; feature toggles and CSS variables in config - Review Annotations: Select text on a rendered page, attach a note, and copy every note of the page as Markdown
naming the source file, ready to paste into an LLM harness; notes stay in the browser's
localStorage - Self-Documenting:
gomddoc help,gomddoc info,gomddoc schemaandgomddoc doctorread the embedded guide, list every setting, print the config JSON Schema and check a site for problems - Secure Defaults: Path jail, hidden-file and
excludeblocking (404), GET/HEAD-only content routes, security headers, optional htpasswd Basic Auth - Operations: Graceful shutdown, configurable timeouts, gzip, ETags, Prometheus metrics, health endpoints, optional pprof, and a separate admin listener
Install
Release archives carry an SPDX SBOM each and a Sigstore-signed SHA256SUMS; the
Quick Start explains the install script's options and how to verify a release by hand.
gomddoc is free for noncommercial use under the PolyForm Noncommercial License 1.0.0, which covers open-source projects, personal sites, non-profits and education; any for-profit use, internal documentation included, needs a commercial license. Request a free license through the issue form.
Use
Documentation
The user guide is docs/guide/, the same pages gomddoc help and the gomddoc mcp server
serve:
For contributors: docs/architecture.md (how the pieces fit),
docs/decisions.md (why, D-numbered), docs/specs/ and plans/ (feature designs and
their execution notes), docs/reviews/ (review rounds) and ROADMAP.md.
Development
Requirements: Go (the exact toolchain is pinned by go.mod's toolchain line and fetched automatically) and Make.
Lint and benchmark tools are pinned in tools/go.mod; nothing needs installing globally.
Contributions: branch, make lint-fix, make ci, then a pull request. Coverage stays at 87% or above.
License
gomddoc is dual-licensed:
- Noncommercial use (personal projects, hobby use, education, research, and other noncommercial purposes) is free under the PolyForm Noncommercial License 1.0.0.
- Commercial use — any use that is not a noncommercial purpose, including use in or for a for-profit business, product, or service — requires a separate commercial license. See LICENSE-COMMERCIAL.md.
Release notes for each version are on GitHub Releases, generated by GoReleaser from conventional commit messages.
来源:README.md,提交 19f2c07
工具
0版本历史
2- v0.5.1最新Nov 5, 2026
- v0.5.0Nov 3, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。
