Fonto Docs

io.github.DrRataplan由 GitHub 账号 DrRataplan 发布v1.8.1更新于 Oct 24, 2026

Fonto (FontoXML) documentation for AI tools. Converts DITA XML to Markdown on demand.

已验证Streamable HTTP可网页运行知识与记忆开发者工具

概览

AI 生成的概览

远程 MCP 服务器,让助手以 Markdown 形式检索并阅读 Fonto(FontoXML)文档及其 API 参考。

可以做什么
  • 按关键词全文搜索 Fonto 文档,返回带标题、描述和 slug 的相关度排序结果
  • 按 slug 获取文档页面的完整 Markdown 内容
  • 按精确名称、调用写法或导入路径查找 API 符号,一次调用即返回其文档页
  • 按标题、产品或层级关键词筛选页面列表,或读取完整目录资源
  • 通过页面资源模板直接按 slug 访问任意页面
适用场景
适合在进行 Fonto XML / FontoXML 编辑器开发时使用,让助手基于实时文档回答 API、配置、组件或升级指南相关问题,而不是凭空推测。
运行要求
需要一个远程 streamable HTTP 端点,无需本地安装、账号、API 密钥或 OAuth。客户端需支持远程 HTTP MCP 服务器或自定义连接器。服务器自身需访问 Fonto 文档站点,因此其侧需要网络访问。
安装前请注意
仅做只读查询,不索取任何凭据,也不会写回数据。查询词和页面请求会发送到第三方托管的服务器,该服务器再从 Fonto 文档站点抓取页面,因此搜索词与所请求的 slug 对该运营方可见。

安装

在 SourceWeft 中

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

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.DrRataplan%2Ffonto-docs/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "fonto-docs": {
      "type": "http",
      "url": "https://fonto-docs.elliat.nl/mcp"
    }
  }
}

README

fonto-docs-mcp

[Deploy to Cloud Run] [MIT License]

An MCP server that makes the Fonto XML documentation accessible to AI tools like Claude Code, Cursor, and Claude Desktop. Live at fonto-docs.elliat.nl.

The Fonto docs are rendered by a JavaScript SPA, which makes them impossible for AI to read directly. This server fetches the underlying XML and converts it to clean, readable Markdown on demand.

What is MCP?

MCP (Model Context Protocol) is a standard way to give AI assistants access to external tools. Once you connect this server to your AI tool, it gains access to these tools and resources:

ToolWhat it does
search_fonto_docsSearch by keyword — returns matching pages with titles, descriptions, and slugs
get_fonto_pageFetch the full content of a page by its slug
lookup_apiResolve an API name (e.g. documentsManager, createIconWidget) straight to its page in one call
list_pagesList all pages matching a keyword, with full section hierarchy — useful for discovery
ResourceWhat it contains
fonto://catalogAll ~2000 pages with real titles, product grouping, and ancestry paths
fonto://page/{slug}Resource template — address any page directly by its slug

You can then ask things like "How does addDocumentChangeCallback work?" and the AI will look it up in the live Fonto docs.

Connect to your AI tool

The server is already running at https://fonto-docs.elliat.nl/mcp — you just need to point your tool at it.

Claude Code (CLI)

bash
claude mcp add --transport http fonto-docs https://fonto-docs.elliat.nl/mcp

Cursor

Add to .cursor/mcp.json in your project (or ~/.cursor/mcp.json globally):

json
{  "mcpServers": {    "fonto-docs": {      "type": "http",      "url": "https://fonto-docs.elliat.nl/mcp"    }  }}

Claude Desktop / claude.ai

Add it as a custom connector: go to Customize → Connectors, click + → Add custom connector, and paste https://fonto-docs.elliat.nl/mcp. No OAuth settings are needed. Connectors added this way are available in both Claude Desktop and claude.ai. See Get started with custom connectors using remote MCP.

(claude_desktop_config.json only launches local stdio servers, so it can't be used for this server.)

Mistral AI / Vibe

The easiest way is through the Connectors page in the Mistral console:

  1. Go to the Connectors page and click + Add Connector.
  2. Open the Custom MCP Connector tab.
  3. Enter a name (e.g. fonto-docs) and the server URL https://fonto-docs.elliat.nl/mcp, then click Connect.

No authentication is needed. Vibe automatically discovers connectors registered this way, so the tools are available in every Vibe session where you're signed in with your Mistral account — no local configuration required.

Alternatively, add the server to your local Vibe configuration by editing ~/.vibe/config.toml:

toml
[[mcp_servers]]name = "fonto-docs"transport = "streamable-http"url = "https://fonto-docs.elliat.nl/mcp"

No auth block is needed — the server requires no authentication.

See the MCP Connectors documentation for more details.

Usage examples

Once connected, ask your AI assistant:

  • "Search the Fonto docs for documentsManager"
  • "Get the Fonto docs page for clearundostackfordocument-f0187fade723"
  • "How does addDocumentChangeCallback work according to the Fonto docs?"
  • "List all pages in the configure section"
  • "What upgrade guides are available?"

HTTP API

The server also exposes a plain HTTP API if you want to use it without MCP:

  • GET /search?q={query} — search pages by keyword
  • GET /page/{slug} — fetch a page as Markdown
  • GET /api/{name} — fetch the page for an API symbol by exact name, as Markdown (404 with suggestions if none)
  • GET /catalog — full page catalog grouped by section; add ?section={keyword} to filter

How it works

The Fonto documentation site stores its content as XML at predictable URLs under /static/xml/. This server fetches those XML files directly and converts them to Markdown, bypassing the JavaScript rendering. Page content is cached in-process for 10 minutes to absorb repeated lookups in the same session; after that, get_fonto_page fetches it live from documentation.fontoxml.com again. The page catalog (used by list_pages and fonto://catalog) is fetched once from the Fonto search index on first use and held in memory for the lifetime of the process.

Self-hosting

bash
npm installnpm start        # runs on port 8080 by defaultPORT=3000 npm start

Contributing

PRs welcome. The XML-to-Markdown conversion in src/fonto.js handles two formats:

  • DITA guide pages — <topic>, <body>, <section> structure
  • API reference pages — custom <type>, <members>, <description> structure

If you find pages that don't convert well, open an issue with the slug.

License

MIT

来源:README.md,提交 ebe2b49

工具

4

search_fonto_docs

Search Fonto Documentation

Search the Fonto XML documentation using full-text search. Returns results ranked by relevance with titles, descriptions, and slugs. Best for looking up a concept, API name, or feature by keyword.

输入参数query必填

get_fonto_page

Get Fonto Page

Fetch the full content of a Fonto documentation page by its slug (the part of the URL after /latest/). Use search_fonto_docs or list_pages first to find the right slug.

输入参数slug必填

lookup_api

Look Up Fonto API

Look up a Fonto API symbol by exact name (function, class, manager, type, or component — e.g. 'documentsManager', 'createIconWidget', 'CvkOptions') and return its full documentation page in one call. Accepts call syntax ('registerWidget()'), import paths ('fontoxml-families/src/createIconWidget'), and member access ('documentsManager.getNodeById', resolved to the owner's page). Matching is case-sensitive first, so 'DocumentsManager' (class) and 'documentsManager' (instance) resolve to different pages; other same-named pages are listed as alternatives. If no page has that name, returns search suggestions instead — use search_fonto_docs for concepts or partial names.

输入参数name必填

list_pages

List Fonto Pages

Filter Fonto documentation pages by title, product, or ancestry keyword. Returns all matches without ranking — useful when you know the product area or part of the page title. For full-text relevance search use search_fonto_docs; for the complete catalog use the fonto://catalog resource.

输入参数keyword必填

版本历史

5
  1. v1.8.1最新Oct 9, 2026
  2. v1.8.0Oct 8, 2026
  3. v1.7.0Oct 3, 2026
  4. v1.6.4Sep 25, 2026
  5. v1.6.3Sep 16, 2026

评分

已满足适用检查项的 100%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分