spintax.net MCP server

net.spintax由 spintax.net 發布官方發布者v1.3.0更新於 Oct 27, 2026

Write, validate, render and analyze spintax templates. Backed by @spintax/core. No auth.

已驗證Streamable HTTP可網頁執行開發者工具媒體與設計

概覽

AI 產生的概覽

讓助理撰寫、驗證、算繪與分析 spintax 範本,回傳診斷資訊以及最多 20 個算繪變體。

可以做什麼
  • 驗證範本並回傳含嚴重程度、穩定代碼、訊息與行列位置的診斷
  • 算繪最多 20 個變體,提供種子時結果固定,否則隨機
  • 分析範本引用的變數、#set 與 #def 巨集、include、診斷及建構數量
  • 讀取權威撰寫指南,其中包含依語言區分的語法一致性與格位規則
適用情境
適合在產生或維護用於文字變化的 spintax 範本時使用,讓助理先檢查結構、找出缺少的變數並預覽變體。多語撰寫、需要遵循特定語言文法規則時也適用。
執行需求
可作為 spintax.net 的遠端端點使用,也可透過 stdio 執行本機 npm 套件 @spintax/mcp,本機方式需要 Node.js。未宣告任何驗證、環境變數或標頭。
安裝前請注意
算繪較為寬鬆:結構錯誤不會拋出例外,只會反映在輸出中,因此應先驗證。plural.locale-missing 等警告可能代表某個區塊無法解析。使用遠端端點時,範本及傳入的變數會傳送到該服務。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 spintax.net MCP server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/net.spintax%2Fmcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "spintax-net": {
      "type": "http",
      "url": "https://spintax.net/mcp"
    }
  }
}

工具

4

validate_spintax

Validate a spintax template

Static validation: returns diagnostics with severity, stable code, message and 1-based line/column. No "error"-severity diagnostic means the template is structurally sound — read the warnings before rendering, because some of them (plural.locale-missing) mean a block will not resolve. Pass knownVariables for names you will supply at render time to silence their variable.undefined warnings.

輸入參數localetemplate必填knownVariables

render_spintax

Render spintax variants

Renders up to 20 variants. With a seed the output is deterministic (variant i uses seed "<seed>#<i>"); without one it is random. The engine is lenient: structural mistakes never throw, they surface in the output — run validate_spintax first.

輸入參數seedcountlocalecontexttemplate必填

analyze_spintax

Analyze a spintax template

Reports what the template needs and contains: refs (variables referenced), sets (#set macros, re-picked per reference), defs (#def, rolled once per render), includes, diagnostics, and best-effort construct counts. Answers "what variables must I supply" — it is NOT a variant-cardinality counter.

輸入參數localetemplate必填knownVariables

spintax_authoring_guide

How to write a spintax template

Read this BEFORE writing or editing a spintax template — it is the canonical authoring guide the whole spintax toolchain is written against, not a tutorial. Pass the locale you will author in: for ru/uk/be and sr/hr/bs it carries the agreement and case rules that decide whether the variants read as human writing, which is the hard part and the part a valid template can still get wrong; for ar, the six plural forms and their order. Returns text to read, not a template.

輸入參數localevariationLevel

版本歷史

6
  1. v1.3.0最新Oct 19, 2026
  2. v1.2.3Oct 19, 2026
  3. v1.2.2Oct 6, 2026
  4. v1.2.1Oct 3, 2026
  5. v1.2.0Oct 3, 2026
  6. v1.1.2Sep 16, 2026

評分

已滿足適用檢查項的 75%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。