Matra

com.matrajs由 matrajs.com 发布v1.1.6更新于 Oct 24, 2026

The Matra rich text editor's documentation as an MCP server: every extension, command and API.

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

把 Matra 富文本编辑器的文档作为 MCP 服务器提供给 AI 助手,可列出、阅读和搜索每个扩展、命令与 API 页面。

可以做什么
  • 列出所有文档页面及其 slug 和一句话简介
  • 按 slug 以 Markdown 形式读取单个页面
  • 搜索文档并返回带摘要的排序结果
  • 把每个页面作为文档 URI 方案下的资源提供
  • 让助手依据随包发布的文档而非模型记忆回答 Matra 相关问题
适用场景
在使用 Matra 富文本编辑器开发时,希望助手依据官方文档、引擎说明、基准测试、安全说明和更新日志作答而不是凭记忆猜测。它是文档查询服务器,不能操作编辑器。
运行要求
通过 npm 包 @matrajs/mcp 以 npx 在本地运行,需要 Node.js,首次下载包需要网络。默认使用 stdio,也可选用本地 3333 端口的 HTTP 模式。未声明账号、API 密钥或环境变量。
安装前请注意
仅提供只读文档访问,文档在构建时打包,运行时不会抓取任何内容。包通过 npx 在本地安装并执行,需信任该已发布包。不涉及凭据或写入操作。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@matrajs/mcp

The Matra documentation as a Model Context Protocol server, so any AI tool can read it. Zero dependencies, like every other Matra package.

sh
npx -y @matrajs/mcp            # stdio · what a desktop client spawnsnpx -y @matrajs/mcp --http     # http://localhost:3333/mcp

Connect it, step by step

Claude Code

sh
claude mcp add matra -- npx -y @matrajs/mcp

Claude Desktop — in claude_desktop_config.json:

json
{  "mcpServers": {    "matra": { "command": "npx", "args": ["-y", "@matrajs/mcp"] }  }}

Cursor — in .cursor/mcp.json, the same object under "mcpServers".

Codex — in ~/.codex/config.toml:

toml
[mcp_servers.matra]command = "npx"args = ["-y", "@matrajs/mcp"]

Anything that speaks HTTP — run npx -y @matrajs/mcp --http 3333 and point the client at http://localhost:3333/mcp.

Then ask the tool something about Matra. It will call search_docs, read the page it needs, and answer from the documentation rather than from memory.

What it serves

ToolDoes
list_docsEvery page, with its slug and a one-line description.
read_doc { slug }One page, as Markdown.
search_docs { query, limit? }Ranked pages with a snippet each.

Every page is also a resource at matra://docs/<slug>.

The pages are the repository's Markdown — README, the engine notes, benchmarks, security, the changelog — and every page of matrajs.com/docs, converted to Markdown at build time and shipped inside the package. Nothing is fetched at runtime.

Use it from code

ts
import { createServer } from '@matrajs/mcp'
const server = createServer(docs)server.handle({ jsonrpc: '2.0', id: 1, method: 'tools/list' })

createServer is the protocol without a transport: one message in, one reply out. Put it behind whatever transport you already have.

来源:packages/mcp/README.md,提交 4077a82

工具

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

版本历史

1
  1. v1.1.6最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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