A high-performance Model Context Protocol (MCP) server for GeneXus 18. It integrates native GeneXus SDK access via a .NET 8 gateway and a .NET Framework 4.8 worker, exposing direct read/write/analysis operations directly to AI Agents and IDEs.
You do NOT need to clone this repository, and you do NOT need to install anything globally via npm i -g. The standard Node.js npx runner will dynamically fetch and launch the compiled gateway for you.
To initialize configuration in a deterministic, agent-friendly way:
npx genexus-mcp@latest init --kb "C:\KBs\YourKB" --gx "C:\Program Files (x86)\GeneXus\GeneXus18"If you want the setup wizard prompts explicitly, run:
npx genexus-mcp@latest init --interactiveOnce the wizard outputs 🎉 You are all set!, simply Restart or Refresh your AI Assistant (Claude Desktop, Antigravity, Cursor, etc.). The AI will automatically spin up the server in the background and connect.
If you want your AI Assistant to install and configure everything itself without you touching the terminal, copy and paste this exact prompt into your chat window:
Please configure your Model Context Protocol (MCP) server to connect to my GeneXus Knowledge Base by following these exact steps:
1. Run the command `npx genexus-mcp@latest init` directly in the terminal in non-interactive mode using this configuration format (do not use interactive prompts). You must inject my raw KB path and GX path via environment variables or a direct config patch if needed, or simply let the zero-config auto-discovery handle it if we are already in the KB folder.
2. If I haven't told you my GeneXus path or KB path, STOP and ask me for them now.
3. Once the setup is complete, read the generated JSON block from the console output.
4. If you use a global configuration file (like `mcp_config.json` or `claude_desktop_config.json`), insert the exact `mcpServers` block provided in the console output. Use `npx.cmd` as the command.
5. Provide a summary of the installation and notify me when you are ready to query GeneXus!The package now includes agent-facing commands optimized for shell automation:
genexus-mcp home
genexus-mcp axi home
genexus-mcp llm help
genexus-mcp status
genexus-mcp doctor --mcp-smoke
genexus-mcp tools list
genexus-mcp config showGlobal AXI flags:
--format toon|json|text (default for AXI commands: toon)--fields f1,f2,... (minimal schema by default; request extra fields explicitly)--limit <n> (for list commands)--query <text> (for tools list)--full (expand truncated long-form content when supported)--mcp-smoke (for doctor; executes protocol smoke checks)--quiet and --no-color (agent-safe output control)Notes:
stdout.stderr.meta.command is always present for stable command identity in AXI outputs.genexus-mcp <command> --help for command-specific usage/examples.meta.schemaVersion for contract stability.--fields is validated strictly per command; invalid fields return usage_error and exit code 2.genexus-mcp without an AXI subcommand keeps the original MCP gateway launcher behavior.genexus-mcp home (genexus-mcp axi home) is the explicit content-first AXI entrypoint.genexus-mcp llm help returns protocol-first usage guidance for agents.docs/axi_cli_contract.mddocs/llm_cli_mcp_playbook.md(See GEMINI.md for extended guidelines). The worker natively exposes the following tools to the MCP Router:
genexus_query, genexus_read, genexus_batch_read, genexus_inspect, genexus_list_objects, genexus_propertiesgenexus_edit, genexus_batch_edit, genexus_create_object, genexus_refactor, genexus_forgegenexus_analyze, genexus_inject_context, genexus_doc, genexus_explain_code, genexus_summarizegenexus_asset, genexus_export_object, genexus_import_objectgenexus_history, genexus_get_sql, genexus_structuregenexus_lifecycle, genexus_test, genexus_formatFor tools/call, the gateway keeps MCP compatibility and adds lightweight response metadata:
meta.schemaVersion currently mcp-axi/1meta.tool with the normalized tool namereturned, total, empty, and (when inferable) hasMore and nextOffsetmeta.truncated plus contextual helpFor list-heavy calls (genexus_query, genexus_list_objects), optional arguments can reduce token usage:
fields: explicit projection (["name","type"] or "name,type")axiCompact: true: compact default projectionTimeout behavior for long-running MCP tools:
result.isError=true with status=Running plus operationId/correlationId.genexus_lifecycle(action='status'|'result', target='op:<operationId>').If you want to contribute, build the project yourself, or use the local Nexus-IDE VS Code Extension, use the classic source-based workflow.
.\setup.bat.The repository includes src/nexus-ide, a lightweight VS Code extension containing:
genexus:// schemeYou can expand your local config.json for advanced networking or timeouts:
{
"Server": {
"HttpPort": 5000,
"BindAddress": "127.0.0.1",
"SessionIdleTimeoutMinutes": 10,
"WorkerIdleTimeoutMinutes": 5
},
"GeneXus": {
"InstallationPath": "C:\\Program Files (x86)\\GeneXus\\GeneXus18",
"WorkerExecutable": "worker\\GxMcp.Worker.exe"
},
"Environment": {
"KBPath": "C:\\KBs\\YourKB"
}
}Server.WorkerIdleTimeoutMinutes of inactivity to unlock build artifacts.%LOCALAPPDATA%\GenexusMCP\gateway-leases.http://127.0.0.1:5000/mcp (Supports SSE notifications alongside standard POST JSON-RPC). Protocol expects MCP-Protocol-Version: 2025-06-18.graph LR
A[AI Client or Nexus-IDE] -->|MCP stdio or HTTP /mcp| B[Gateway .NET 8]
B -->|JSON-RPC over process boundary| C[Worker .NET Framework 4.8]
C -->|Native SDK| D[GeneXus KB]lennix1337/Genexus18MCP
February 18, 2026
April 13, 2026
C#