RegexForge

Deterministic regex synthesis from labeled examples. Zero LLM, proof matrix, backtracking audit.

我该使用它吗

质量与安全性

A
描述质量
100%
模式完整度
90%
命名质量
80%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~184token 数(工具定义)
~1.3 KB典型响应大小
对注意力的影响极小(占 128k 上下文窗口的 0.14%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "regexforge": {
      "url": "https://regexforge.jason-12c.workers.dev/mcp"
    }
  }
}

远程端点

https://regexforge.jason-12c.workers.dev/mcpstreamable-http

它能做什么

工具清单

工具(1)

🟢 只读🟡 写入🔴 删除⚪ 未知
⚪regexforge_synth(description, examples)

Synthesize a battle-tested regex from labeled examples. Input: optional natural-language description + 20 examples (10 positive, 10 negative, or any mix of ≥4). Output: regex + flags + test matrix proving every example is handled correctly + backtracking-risk analysis. Deterministic; no LLM at serve time.

输入模式

{
  "type": "object",
  "properties": {
    "description": {
      "type": "string",
      "description": "Optional natural-language description, used only for tie-breaking."
    },
    "examples": {
      "type": "array",
      "minItems": 2,
      "maxItems": 100,
      "items": {
        "type": "object",
        "required": [
          "text",
          "match"
        ],
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 2048
          },
          "match": {
            "type": "boolean",
            "description": "true if the regex should match this string; false if it should NOT match."
          }
        }
      }
    }
  },
  "required": [
    "examples"
  ]
}

社区

评价此服务器

证据

最近观测

已验证未记录版本1 个工具
已验证未记录版本1 个工具