Genexus18MCP GEMINI.md

Repository instructions for using GeneXus MCP, a protocol for discovering and reading knowledge-base objects through tools and resources.

In plain words
What is it for?
Initializing MCP sessions, discovering available tools and resources, querying GeneXus objects, and reading their source or metadata.
Why use it?
They clarify the current MCP request flow and warn that an older API endpoint is no longer supported.

Instructions file for Gemini CLI

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/lennix1337/genexus18mcp/gemini-md
Clone the repo
git clone --depth 1 https://github.com/lennix1337/Genexus18MCP

Made for: Gemini CLI.

Per session 1,802 This file is loaded in full into every session.
When invoked 1,802 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01802 $0.01802
Opus 5 $0.00901 $0.00901
Sonnet 5 $0.00360 $0.00360
Haiku 4.5 $0.00180 $0.00180

Measured yesterday against content hash ad75c24dd0c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Genexus18MCP GEMINI.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

GEMINI.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GeneXus MCP Protocol Guide

Required repo skills before editing KB logic:

  1. GeneXus MCP Mastery
  2. GeneXus 18 Guidelines

This repository is MCP-first. The official transport is MCP over stdio or HTTP at /mcp. The old /api/command endpoint is no longer part of the gateway surface.

Correct MCP flow

  1. Initialize the session with initialize.
  2. Discover the live surface with tools/list, resources/list, resources/templates/list, prompts/list, and completion/complete when needed.
  3. Execute work with tools/call, resources/read, and prompts/get.
  4. For HTTP MCP, send MCP-Protocol-Version: 2025-06-18 and reuse the returned MCP-Session-Id.
  • genexus_query: find objects, references, signatures, and dependency entry points. Supports optional typeFilter and domainFilter for server-side narrowing.
  • genexus_read: read object parts with pagination. Pass singular name for one object or targets[] for coordinated multi-object reads (mutually exclusive). For MCP clients, keep reads paginated; the server intentionally returns a source-first first page when no explicit offset/limit is provided. For XML metadata parts such as Layout, WebForm, and PatternInstance, the gateway applies a larger metadata budget to avoid truncating the editable XML.
  • genexus_edit: apply focused edits to a part or replace content through the MCP write path. Three modes:
    • mode: 'xml' (default): full XML replacement.
    • mode: 'ops': typed semantic op catalog (set_attribute, add_attribute, remove_attribute, add_rule, remove_rule, set_property).
    • mode: 'patch': JSON-Patch (RFC 6902) array over the canonical JSON object representation; legacy string-form text patch is also accepted for backward compatibility. Pass targets[] (array of edit-request objects) for atomic multi-object edits — mutually exclusive with singular name. PatternInstance targets the authoritative WorkWithPlus instance when the requested object is a WebPanel managed by WorkWithPlus.
  • All write tools (genexus_edit, genexus_create_object, genexus_refactor, genexus_forge, genexus_import_object) accept:
    • dryRun: true — returns a preview envelope {_meta:{dryRun,schemaVersion}, plan:{touchedObjects, xmlDiff, brokenRefs, warnings}} without mutating the KB.
    • idempotencyKey: '<token>' ([A-Za-z0-9_-]{1,128}) — deduplicates retries; concurrent calls with the same key are coalesced; cache is per-KB, sliding TTL 15 min default. dryRun bypasses the cache.
  • genexus_inspect: get structured conversion or object context.
  • genexus_analyze: one tool with mode: linter | navigation | hierarchy | impact | data_context | ui_context | pattern_metadata | summary | explain (the last two replaced the standalone genexus_summarize and genexus_explain_code in v2.3.0; explain takes code).
  • genexus_lifecycle: build, validate, index, and KB lifecycle operations.
  • genexus_sql: action=ddl for Transaction/Table DDL or action=navigation for the SQL of a procedure's For Each (replaces genexus_get_sql and genexus_get_sql_for_navigation in v2.3.0).
  • genexus_kb: multi-KB pool management (action: list | open | close | set_default). Replaces genexus_open_kb in v2.3.0.
  • genexus_create_object: create new KB objects.
  • genexus_refactor: supported rename and extraction refactors.
  • genexus_add_variable: add variables through the worker contract.
  • genexus_format: format source through the worker formatter.
  • genexus_properties: get or set object properties.
  • genexus_asset: find, read, and write KB assets such as .xlsx templates. Reads are metadata-first; request includeContent=true only for files small enough to carry as Base64 safely.
  • genexus_history: list, read, save, and restore object history.
  • genexus_structure: read or update logical and visual structure.
  • genexus_doc: access documentation, health, and visualization flows.

Read the full file on GitHub · 86 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 86 lines · 1,802 tokens per session scan A ad75c24dd0c0

Subscribe to this mod's changes

Genexus18MCP GEMINI.md is an instructions file published in the GitHub repository lennix1337/Genexus18MCP (28 stars, last pushed 4d ago), licensed MIT. It adds 1,802 tokens to every session, about $0.0090 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.