Regex Explainer

com.gumballtools由 gumballtools.com 發布官方發布者v0.1.0更新於 Oct 24, 2026

Explain a regex in plain English and detect catastrophic backtracking risk.

發布方自己的服務:Amortization Schedule

已驗證Streamable HTTP可網頁執行開發者工具安全與監控

概覽

AI 產生的概覽

一個遠端 MCP 伺服器,用淺顯英文解釋正規表示式,並找出災難性回溯等危險失效模式。

可以做什麼
用淺顯英文解釋正規表示式,說明它比對什麼以及結構如何。找出讓模式變得危險、而不只是寫錯的失效模式,包括災難性回溯風險。在模式用於不可信輸入之前進行審閱或驗證。
適用情境
適合需要讀懂、審閱或驗證他人撰寫的正規表示式時,或模式即將用於不可信輸入、希望先做安全檢查時使用。
執行需求
透過 streamable HTTP 存取的遠端端點;未宣告套件、環境變數或標頭,也未宣告身分驗證。
安裝前請注意
送出的模式文字會傳送到第三方遠端服務,避免送出內嵌密鑰或敏感資料的正規表示式。它只解釋與評估模式,不會實際執行它們。

安裝

在 SourceWeft 中

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

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

交給代理程式安裝

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

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

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

其他 MCP 客戶端

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

{
  "mcpServers": {
    "regex-explainer": {
      "type": "http",
      "url": "https://regex-explainer.gumballtools.com/api/mcp"
    }
  }
}

README

該儲存庫沒有 README。

工具

1

explain_regex

Explain a regular expression

Explain a regular expression in plain English and detect the failure modes that make patterns dangerous rather than merely wrong. Use this whenever a regex needs to be read, reviewed, or verified — and ALWAYS before putting a pattern somewhere it will run against untrusted input. The critical check is catastrophic backtracking: a pattern like (a+)+$ is three characters longer than a safe equivalent, looks harmless, and takes minutes of CPU on a 30-character input that almost matches. That makes it a denial-of-service vector. Whether a pattern is vulnerable depends on whether nested quantifiers can match the same characters in more than one way, which is a structural property that is unreliable to judge by reading. It also flags: missing anchors (an unanchored validator accepts any string that merely CONTAINS a valid value), unescaped dots, character ranges like [A-z] that span punctuation, alternation precedence mistakes where an anchor applies to only one branch, and constructs JavaScript does not support. Input: `pattern` accepts either a bare pattern or a full /pattern/flags literal. JavaScript syntax; PCRE-only constructs are reported as unsupported rather than guessed at. Returns: `summary` (one sentence), `steps` (an ordered walkthrough), `warnings` (each with a code, severity, detail, and fix), `flagNotes`, capture group counts and names, and `hasBlockingIssue` — check that flag first. If the pattern cannot be parsed it returns an error naming the position, rather than a plausible-looking explanation of something else.

輸入參數pattern必填

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 75%

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

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

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

  • 授權條款10 分

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

其他 Gumballtools 整合