LexQ
LexQ CLI
La plataforma de decisiones para equipos de ingeniería. CLI y servidor MCP para LexQ — saca las reglas de negocio de tu pipeline de despliegue, prueba cada cambio con simulaciones y publica sin necesidad de un git push.
Sitio web · Documentación · Consola
¿Por qué LexQ?
Tus reglas de negocio — precios, promociones, lógica de tarifas, comprobaciones de elegibilidad — cambian a menudo. Pero cada cambio se envía a través del mismo ciclo de PR → revisión → staging → despliegue que el código de tu aplicación principal. Una regla de descuento de una línea tarda dos semanas.
Este es un problema arquitectónico, no un problema de proceso. La lógica de negocio que cambia semanalmente no debería residir en el código que se publica trimestralmente.
LexQ separa ambos. Las reglas viven fuera de tu aplicación. Las cambias en una consola visual o a través de esta CLI. Demuestras cada cambio con simulaciones por lotes frente a datos de ejecución reales. Despliegas sin tocar tu base de código.
Cada decisión deja un rastro de auditoría completo.
Related MCP server: @run-iq/mcp-server
Instalación
npm install -g @lexq/cliO ejecútalo sin instalar:
npx @lexq/cliRequiere Node.js 18+.
Inicio rápido
# 1. Authenticate
lexq auth login
# Enter your API key (create one at console.lexq.io → Management → API Keys)
# 2. Verify
lexq auth whoami
# 3. Create a policy group
lexq groups create --json '{"name":"my-policy","priority":0}'
# 4. Create a draft version
lexq versions create --group-id <GROUP_ID> --json '{"commitMessage":"v1"}'
# 5. Add a rule
lexq rules create --group-id <GROUP_ID> --version-id <VERSION_ID> --json '{
"name": "VIP Discount",
"priority": 0,
"condition": {
"type": "SINGLE",
"field": "customer_tier",
"operator": "EQUALS",
"value": "VIP",
"valueType": "STRING"
},
"actions": [{
"type": "DISCOUNT",
"parameters": {"method":"PERCENTAGE","rate":10,"refVar":"payment_amount"}
}]
}'
# 6. Test against your data before shipping
lexq analytics dry-run --version-id <VERSION_ID> --debug --mock \
--json '{"facts":{"customer_tier":"VIP","payment_amount":100000}}'
# 7. Deploy
lexq deploy publish --group-id <GROUP_ID> --version-id <VERSION_ID> --memo "v1"
lexq deploy live --group-id <GROUP_ID> --version-id <VERSION_ID> --memo "Initial deploy"Para agentes de IA — 63 herramientas MCP
LexQ está diseñado para ser nativo de IA. Toda la API del motor de políticas — las 63 herramientas — se expone a través del Protocolo de Contexto de Modelo (MCP). Claude, Cursor y otros agentes compatibles con MCP pueden crear, simular y desplegar reglas de forma autónoma, con aprobación humana antes de pasar a producción.
Claude.ai (Nube — sin instalación)
Configuración → Conectores → Añadir integración personalizada
Introduce:
https://mcp.lexq.ioInicia sesión con tu cuenta de LexQ y selecciona una clave API
Listo — 63 herramientas disponibles en cada conversación
Remoto (HTTP transmitible)
Para cualquier cliente MCP que admita servidores remotos:
{
"mcpServers": {
"lexq": {
"url": "https://mcp.lexq.io"
}
}
}La autenticación OAuth 2.1 es gestionada automáticamente por tu cliente.
Local (stdio)
Ejecuta LexQ CLI como un servidor MCP local:
lexq serve --mcpClaude Desktop
Añade a claude_desktop_config.json:
{
"mcpServers": {
"lexq": {
"command": "npx",
"args": [
"-y",
"@lexq/cli",
"serve",
"--mcp"
]
}
}
}VS Code / Cursor
.vscode/mcp.json:
{
"servers": {
"lexq": {
"command": "npx",
"args": [
"-y",
"@lexq/cli",
"serve",
"--mcp"
]
}
}
}Requisito previo:
lexq auth logindebe haberse ejecutado una vez para almacenar una clave API en~/.lexq/config.json.
Habilidades de agentes de IA
LexQ CLI incluye Habilidades de agentes de IA — documentación estructurada que los agentes leen para entender cómo usar las herramientas, no solo qué son.
skills/
├── lexq-shared/SKILL.md Core concepts, auth, workflow
├── lexq-groups/SKILL.md Policy groups, conflict resolution, A/B testing
├── lexq-rules/SKILL.md Condition syntax, action types, mutex
├── lexq-simulation/SKILL.md Dry run, batch simulation, compare
├── lexq-execution/SKILL.md Execution history, stats, failure logs
└── lexq-recipes/SKILL.md End-to-end recipes
.claude/CLAUDE.md Claude Code project context
AGENTS.md Universal agent guide (Cursor, Windsurf, Gemini CLI, Cline)
CONTEXT.md Platform architecture & glossaryDespués de instalar @lexq/cli, los agentes pueden leer las habilidades desde:
node_modules/@lexq/cli/skills/
node_modules/@lexq/cli/AGENTS.md
node_modules/@lexq/cli/CONTEXT.mdComandos
lexq auth login | logout | whoami
lexq status API health check
lexq serve Run as MCP stdio server (--mcp)
lexq groups list | get | create | update | delete
lexq groups ab-test start | stop | adjust
lexq versions list | get | create | update | delete | clone
lexq rules list | get | create | update | delete | reorder | toggle
lexq facts list | create | update | delete | action-metadata
lexq deploy publish | live | rollback | undeploy | history | detail | overview | deployable | diff
lexq analytics dry-run | dry-run-compare | requirements
lexq analytics simulation start | status | list | cancel | export
lexq analytics dataset upload | template
lexq history list | get | stats
lexq integrations list | get | save | delete | config-spec
lexq logs list | get | action | bulk-action
lexq webhook-subscriptions list | get | save | delete | testOpciones globales
Flag | Descripción |
| Formato de salida (predeterminado: |
| Sobrescribir clave API almacenada |
| Sobrescribir URL base de la API |
| Previsualizar la solicitud HTTP sin ejecutar |
| Mostrar detalles de solicitud/respuesta |
| Desactivar salida en color |
Configuración
La configuración se almacena en ~/.lexq/config.json:
{
"apiKey": "YOUR_API_KEY",
"baseUrl": "https://api.lexq.io/api/v1/partners",
"format": "json"
}Desarrollo
git clone https://github.com/lexq-io/lexq-cli.git
cd lexq-cli
pnpm install
pnpm build
pnpm start -- groups listpnpm typecheck # Type check
pnpm lint # ESLint
bash tests/e2e.sh # CLI E2E tests (requires API key)
bash tests/test-engine-api.sh # Engine API integration testsLicencia
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
AlicenseCqualityDmaintenanceProvides unified access to 100+ MCP tools from the marketplace plus custom MCPs through a single gateway with search and execute capabilities.21023MIT
@run-iq/mcp-serverofficial
AlicenseNot gradedqualityDmaintenanceMCP server exposing a parametric policy engine for evaluating, simulating, and managing rules, with dynamic plugin support for domain-specific calculations.611MIT- AlicenseNot gradedqualityAmaintenanceThe first full-featured MCP server for Adobe Experience Platform: 29 tools across schemas, datasets, profiles, segments, query service, and GDPR/CCPA privacy operations. Extends Adobe's read-only beta with production-grade write operations.426Apache 2.0
- AlicenseNot gradedqualityBmaintenanceProvides portable working rules and tooling instructions as MCP resources, ensuring consistent agent behavior across clients.MIT
Related MCP Connectors
34 production API tools over one hosted MCP endpoint.
100+ MCP tools for AI agents: content metadata, trade intelligence, business-expertise analysis.
Free MCP tools: the only MCP linter, health checks, cost estimation, and trust evaluation.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lexq-io/lexq-cli'
If you have feedback or need assistance with the MCP directory API, please join our Discord server