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 分

    请在仓库或注册中心条目中声明许可证。