Official Content

The GeneXus MCP Server exposes tools that enable Agents to perform operations, such as managing authentication sessions and working with Knowledge Bases. These tools are invoked through gx CLI, which acts as the intermediary between an Agentic CLI and the GeneXus MCP Server.

This article describes some of the available GeneXus MCP Server tools and their purpose.

Authentication tools

The following tools are used to manage the authentication session of the GeneXus MCP Server.

  • login: Starts the sign-in process. Sign-in is performed in the browser through GeneXus Platform. If a valid session already exists, login can be forced to start a new sign-in process, for example, to sign in as a different user. If the browser cannot be opened automatically, the sign-in URL is provided so that the authentication process can be completed manually.
  • logout: Closes the current GeneXus Platform authentication session.
  • switch_organization: Changes the active Organization or lists the available Organizations. Organizations are managed in GeneXus Platform.
  • auth_status: Returns information about the currently authenticated user and the session expiration time.

Knowledge Base tools

The following tools are used to perform operations on GeneXus Knowledge Bases.

  • create_knowledge_base: Creates a new GeneXus Knowledge Base with the specified configuration.
  • open_knowledge_base: Opens an existing GeneXus Knowledge Base so that it can be used by subsequent operations.
  • close_knowledge_base: Closes the currently open GeneXus Knowledge Base.
  • list_kb_versions: Lists the versions of the open GeneXus Knowledge Base and indicates which one is active.
  • set_active_kb_version: Changes the active version of the open GeneXus Knowledge Base.
  • get_kb_text_mirror_status: Reports the status of the automatic Knowledge Base-to-text mirror on disk.

Build and Run tools

The following tools are used to build and run GeneXus applications.

  • build_one: Builds a specific object by name or key.
  • build_all: Builds all objects in the active model.
  • run: Runs the application.
  • reorganize: Runs the database reorganization.
  • create_or_impact_database: Creates or impacts the database.

Text files tools

The following tools are used to export, import, and validate GeneXus objects in text format.

  • export_kb_to_text: Exports Knowledge Base objects to files in GeneXus Object Text format.
  • import_text_to_kb: Imports files in GeneXus Object Text format into the Knowledge Base.
  • validate_kb_text_files: Validates files in GeneXus Object Text format without modifying the Knowledge Base.

Note: Each GeneXus MCP Server tool has an equivalent command in gx CLI. The MCP Server tools use underscores (_) in their names, while the corresponding gx CLI commands use hyphens (-).

 

Last update: 2026 | © GeneXus. All rights reserved. GeneXus Powered by Globant