io.github.Nicolasmar91/rexact-mcp·Other

Rexact

Verify, explain and audit regexes (ReDoS, engine compatibility) offline.

Stars
0
Version
0.1.2
License
MIT
Review
Passed
Language
TypeScript
Last commit
1h ago
Forks
0
Open issues
0
Registry update
Oct 15, 2026

Connect

npm
Terminal
$claude mcp add rexact-mcp \  -e ANTHROPIC_API_KEY=<anthropic-api-key> \  -- npx -y [email protected]

Environment variables

  • ANTHROPIC_API_KEYsecret

    Optional. Only needed by the generate_regex tool; the four other tools work offline without it.

Security review

Review passed

Reviewed 8m ago.

metadata
scanned
packages
1 checked

No findings.

Tools

This server runs on your machine, so its tool list is not fetched before install — the README below describes what it offers.

rexact-mcp

Serveur MCP (Model Context Protocol) pour Rexact — vérification, analyse ReDoS, explication et compatibilité multi-moteurs de regex, adossées à @rexact/core (le même moteur déterministe que le site).

Quatre des cinq outils fonctionnent hors ligne, sans clé API, sans coût :

OutilEntréeSortie
verify_regexpattern, flags, casesCorpusReport
check_redospattern, flagsRedosVerdict
explain_regexpattern, flags, localeExplainToken[]
check_compatpattern, flags, targetsCompatIssue[]
generate_regexdescription, cases, flavormotif vérifié — nécessite ANTHROPIC_API_KEY

Aucune regex fournie n'est jamais exécutée en dehors d'un bac à sable worker_threads avec timeout dur et terminaison forcée (invariant I2 du dépôt) — jamais un new RegExp().test() direct côté serveur.

Installation locale (transport stdio)

Le plus simple pour un client MCP comme Claude Desktop : coller ce bloc dans sa configuration MCP.

{
  "mcpServers": {
    "rexact": {
      "command": "npx",
      "args": ["-y", "rexact-mcp"]
    }
  }
}

Pour activer generate_regex (facultatif), ajouter votre propre clé Anthropic — c'est votre clé, à votre coût, jamais le quota gratuit du site :

{
  "mcpServers": {
    "rexact": {
      "command": "npx",
      "args": ["-y", "rexact-mcp"],
      "env": {
        "ANTHROPIC_API_KEY": "sk-ant-..."
      }
    }
  }
}

Transport HTTP streamable

Pour héberger le serveur (auto-hébergement, réseau interne) :

pnpm --filter rexact-mcp build
PORT=3300 pnpm --filter rexact-mcp start:http

Le serveur écoute sur / (POST pour ouvrir une session et envoyer des requêtes, GET pour le flux SSE d'une session existante). L'en-tête mcp-session-id, renvoyé à l'initialisation, identifie la session sur les requêtes suivantes.

Développement

pnpm --filter rexact-mcp dev      # rebuild à chaque changement
pnpm --filter rexact-mcp typecheck

Liens

Page d'accueil, exemples et installation par client : https://rexact.dev/fr/mcp (EN : https://rexact.dev/en/mcp). Licence : MIT.

From the server's repository — third-party content, read it before running anything it suggests.

More in Other

Listing from the official MCP Registry · repository facts from GitHub, 11m ago.