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 分