Rexact
Verify, explain and audit regexes (ReDoS, engine compatibility) offline.
Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
rexact-mcpclaude mcp add rexact -e 'ANTHROPIC_API_KEY=<your anthropic_api_key>' -- npx -y rexact-mcp@0.1.2
{
"mcpServers": {
"rexact": {
"command": "npx",
"args": [
"-y",
"rexact-mcp@0.1.2"
],
"env": {
"ANTHROPIC_API_KEY": "<your anthropic_api_key>"
}
}
}
}
Environment variables
ANTHROPIC_API_KEYsecret Optional. Only needed by the generate_regex tool; the four other tools work offline without it.
Documentation
From the project's README on GitHub, refreshed weekly. Links open on GitHub.
rexact-mcp
Serveur MCP de Rexact : votre assistant IA vérifie, explique et audite des regex (ReDoS, compatibilité entre moteurs) avec le moteur de Rexact, hors ligne.
{ "mcpServers": { "rexact": { "command": "npx", "args": ["-y", "rexact-mcp"] } } }
Documentation d'usage : apps/mcp/README.md · Page du projet : https://rexact.dev/fr/mcp · Paquet npm : https://www.npmjs.com/package/rexact-mcp
Contenu du dépôt
| Dossier | Rôle |
|---|---|
apps/mcp | le serveur MCP (publié sur npm sous le nom rexact-mcp) |
packages/core | moteur : analyse, exécution du corpus, ReDoS, compatibilité, explication |
packages/generate | bac à sable d'exécution et boucle de génération (outil facultatif) |
Le site rexact.dev lui-même n'est pas dans ce dépôt.
Développement
pnpm install
pnpm build
pnpm test
Ce dépôt est généré depuis le dépôt de développement de Rexact : les contributions sont les bienvenues via les issues et les pull requests, qui seront reportées à la main dans la source.
Licence
MIT, voir LICENSE.
Frequently asked questions
What is Rexact?
Verify, explain and audit regexes (ReDoS, engine compatibility) offline.
How do I install Rexact?
It runs on your machine. In Claude Code: claude mcp add rexact -e 'ANTHROPIC_API_KEY=<your anthropic_api_key>' -- npx -y rexact-mcp@0.1.2. For other clients, paste the JSON configuration from this page into their MCP settings.
Does Rexact need an API key?
Yes. It expects ANTHROPIC_API_KEY, which you set in its configuration.
Is Rexact open source?
Yes. Its code is on GitHub under the MIT license.
Who maintains Rexact?
It is published by Nicolasmar91. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.