Rexact
Verify, explain and audit regexes (ReDoS, engine compatibility) offline.
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
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>"
}
}
}
}
متغيرات البيئة
ANTHROPIC_API_KEYسري Optional. Only needed by the generate_regex tool; the four other tools work offline without it.
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على 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.
الأسئلة الشائعة
ما هو Rexact؟
Verify, explain and audit regexes (ReDoS, engine compatibility) offline.
كيف أثبّت Rexact؟
يعمل على جهازك. في Claude Code: claude mcp add rexact -e 'ANTHROPIC_API_KEY=<your anthropic_api_key>' -- npx -y rexact-mcp@0.1.2. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج Rexact إلى مفتاح API؟
نعم. يتطلب ANTHROPIC_API_KEY، وتضبطها في إعداداته.
هل Rexact مفتوح المصدر؟
نعم. شيفرته متاحة على GitHub بترخيص MIT.
من يصون Rexact؟
ينشره Nicolasmar91. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.