genexus-mcp 2.1.7 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -6
- package/package.json +1 -1
- package/publish/GxMcp.Gateway.deps.json +2 -2
- package/publish/GxMcp.Gateway.dll +0 -0
- package/publish/GxMcp.Gateway.exe +0 -0
- package/publish/GxMcp.Gateway.pdb +0 -0
- package/publish/config.json +19 -18
- package/publish/tool_definitions.json +31 -1062
- package/publish/worker/GxMcp.Worker.exe +0 -0
- package/publish/worker/GxMcp.Worker.pdb +0 -0
|
@@ -1,1062 +1,31 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"required": [
|
|
35
|
-
"query"
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"name": "genexus_list_objects",
|
|
41
|
-
"description": "Hierarchical object listing for navigation and pagination. Prefer parentPath over parent for disambiguation, and always pass limit/offset. Returns {count, total, offset, hasMore, nextOffset?, results[]}: feed `nextOffset` into the next call and stop when `hasMore` is false. Supports optional fields and axiCompact in MCP arguments.",
|
|
42
|
-
"inputSchema": {
|
|
43
|
-
"type": "object",
|
|
44
|
-
"properties": {
|
|
45
|
-
"filter": {
|
|
46
|
-
"type": "string",
|
|
47
|
-
"description": "Optional partial name or comma-separated type filter."
|
|
48
|
-
},
|
|
49
|
-
"limit": {
|
|
50
|
-
"type": "integer",
|
|
51
|
-
"description": "Max results (default 5000).",
|
|
52
|
-
"default": 5000
|
|
53
|
-
},
|
|
54
|
-
"offset": {
|
|
55
|
-
"type": "integer",
|
|
56
|
-
"description": "Pagination offset."
|
|
57
|
-
},
|
|
58
|
-
"parent": {
|
|
59
|
-
"type": "string",
|
|
60
|
-
"description": "Legacy immediate parent label filter."
|
|
61
|
-
},
|
|
62
|
-
"parentPath": {
|
|
63
|
-
"type": "string",
|
|
64
|
-
"description": "Canonical hierarchical parent path, for example 'ModuloA/Procs'."
|
|
65
|
-
},
|
|
66
|
-
"typeFilter": {
|
|
67
|
-
"type": "string",
|
|
68
|
-
"description": "Optional server-side type filter applied before returning results."
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"name": "genexus_read",
|
|
75
|
-
"description": "Reads source/metadata parts. Use after discovery (query/list) and keep reads paginated with offset/limit. Supports parts like Source, Rules, Events, Layout, WebForm, PatternInstance, and PatternVirtual. Use 'name' for a single object, or 'targets' (plural) for batch reads. The two are mutually exclusive.",
|
|
76
|
-
"inputSchema": {
|
|
77
|
-
"type": "object",
|
|
78
|
-
"properties": {
|
|
79
|
-
"name": {
|
|
80
|
-
"type": "string",
|
|
81
|
-
"description": "Single object name. Mutually exclusive with 'targets'."
|
|
82
|
-
},
|
|
83
|
-
"targets": {
|
|
84
|
-
"type": "array",
|
|
85
|
-
"items": { "type": "string" },
|
|
86
|
-
"description": "Plural form: list of object names for batch read. Mutually exclusive with 'name'."
|
|
87
|
-
},
|
|
88
|
-
"part": {
|
|
89
|
-
"type": "string",
|
|
90
|
-
"description": "Part (for example Source, Rules, Events, Layout, WebForm, PatternInstance).",
|
|
91
|
-
"default": "Source"
|
|
92
|
-
},
|
|
93
|
-
"offset": {
|
|
94
|
-
"type": "integer",
|
|
95
|
-
"description": "Start line for pagination."
|
|
96
|
-
},
|
|
97
|
-
"limit": {
|
|
98
|
-
"type": "integer",
|
|
99
|
-
"description": "Lines to read."
|
|
100
|
-
},
|
|
101
|
-
"type": {
|
|
102
|
-
"type": "string",
|
|
103
|
-
"description": "Optional object type (e.g., 'Procedure', 'File') to resolve name collisions."
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"name": "genexus_edit",
|
|
110
|
-
"description": "Mutation tool for source/metadata. Prefer mode='patch' with dryRun=true + expectedCount before applying changes. Use mode='full' only for intentional full overwrite. Use mode='ops' to apply a list of structural semantic operations (set_attribute, add_attribute, remove_attribute, add_rule, remove_rule, set_property) against a single part XML. Use 'name' for a single edit, or 'targets' (plural) for batch edits across one or many objects. The two are mutually exclusive.",
|
|
111
|
-
"inputSchema": {
|
|
112
|
-
"type": "object",
|
|
113
|
-
"properties": {
|
|
114
|
-
"name": {
|
|
115
|
-
"type": "string",
|
|
116
|
-
"description": "Object name."
|
|
117
|
-
},
|
|
118
|
-
"part": {
|
|
119
|
-
"type": "string",
|
|
120
|
-
"description": "Part name (for example Source, Rules, Layout, WebForm, PatternInstance).",
|
|
121
|
-
"default": "Source"
|
|
122
|
-
},
|
|
123
|
-
"mode": {
|
|
124
|
-
"type": "string",
|
|
125
|
-
"enum": [
|
|
126
|
-
"full",
|
|
127
|
-
"patch",
|
|
128
|
-
"ops"
|
|
129
|
-
],
|
|
130
|
-
"description": "Edit mode."
|
|
131
|
-
},
|
|
132
|
-
"content": {
|
|
133
|
-
"type": "string",
|
|
134
|
-
"description": "New code or patch content."
|
|
135
|
-
},
|
|
136
|
-
"ops": {
|
|
137
|
-
"type": "array",
|
|
138
|
-
"description": "For mode='ops': list of semantic operations applied to the resolved part XML.",
|
|
139
|
-
"items": {
|
|
140
|
-
"type": "object",
|
|
141
|
-
"properties": {
|
|
142
|
-
"op": {
|
|
143
|
-
"type": "string",
|
|
144
|
-
"description": "Operation name (set_attribute, add_attribute, remove_attribute, add_rule, remove_rule, set_property)."
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
"required": [
|
|
148
|
-
"op"
|
|
149
|
-
]
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
"patch": {
|
|
153
|
-
"oneOf": [
|
|
154
|
-
{ "type": "string", "description": "legacy text patch (passed to PatchService)" },
|
|
155
|
-
{
|
|
156
|
-
"type": "array",
|
|
157
|
-
"description": "JSON-Patch RFC 6902 ops applied over canonical JSON",
|
|
158
|
-
"items": {
|
|
159
|
-
"type": "object",
|
|
160
|
-
"properties": {
|
|
161
|
-
"op": { "type": "string", "description": "Operation name (add, remove, replace, test)." },
|
|
162
|
-
"path": { "type": "string", "description": "JSON Pointer (RFC 6901) to the target location." },
|
|
163
|
-
"value": { "description": "Value for add/replace/test ops." }
|
|
164
|
-
},
|
|
165
|
-
"required": ["op", "path"]
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
],
|
|
169
|
-
"description": "string = legacy text patch; array = JSON-Patch (RFC 6902). Used when mode='patch'."
|
|
170
|
-
},
|
|
171
|
-
"context": {
|
|
172
|
-
"type": "string",
|
|
173
|
-
"description": "For patch mode: The exact text (old_string) to replace."
|
|
174
|
-
},
|
|
175
|
-
"operation": {
|
|
176
|
-
"type": "string",
|
|
177
|
-
"enum": [
|
|
178
|
-
"Replace",
|
|
179
|
-
"Insert_After",
|
|
180
|
-
"Append"
|
|
181
|
-
],
|
|
182
|
-
"description": "For patch mode: Operation to perform."
|
|
183
|
-
},
|
|
184
|
-
"expectedCount": {
|
|
185
|
-
"type": "integer",
|
|
186
|
-
"description": "For patch mode: expected number of matching context blocks (default 1).",
|
|
187
|
-
"default": 1
|
|
188
|
-
},
|
|
189
|
-
"dryRun": {
|
|
190
|
-
"type": "boolean",
|
|
191
|
-
"description": "For patch mode: validates and computes patch result without persisting changes.",
|
|
192
|
-
"default": false
|
|
193
|
-
},
|
|
194
|
-
"verifyRollback": {
|
|
195
|
-
"type": "boolean",
|
|
196
|
-
"description": "For patch mode: applies the patch, verifies persisted content, then automatically restores the original content and verifies the rollback.",
|
|
197
|
-
"default": false
|
|
198
|
-
},
|
|
199
|
-
"targets": {
|
|
200
|
-
"type": "array",
|
|
201
|
-
"items": {
|
|
202
|
-
"type": "object",
|
|
203
|
-
"properties": {
|
|
204
|
-
"name": {
|
|
205
|
-
"type": "string",
|
|
206
|
-
"description": "Object name for this target."
|
|
207
|
-
},
|
|
208
|
-
"part": {
|
|
209
|
-
"type": "string"
|
|
210
|
-
},
|
|
211
|
-
"mode": {
|
|
212
|
-
"type": "string",
|
|
213
|
-
"enum": [
|
|
214
|
-
"full",
|
|
215
|
-
"patch"
|
|
216
|
-
]
|
|
217
|
-
},
|
|
218
|
-
"content": {
|
|
219
|
-
"type": "string"
|
|
220
|
-
},
|
|
221
|
-
"context": {
|
|
222
|
-
"type": "string"
|
|
223
|
-
},
|
|
224
|
-
"operation": {
|
|
225
|
-
"type": "string",
|
|
226
|
-
"enum": [
|
|
227
|
-
"Replace",
|
|
228
|
-
"Insert_After",
|
|
229
|
-
"Append"
|
|
230
|
-
]
|
|
231
|
-
},
|
|
232
|
-
"expectedCount": {
|
|
233
|
-
"type": "integer",
|
|
234
|
-
"description": "For patch mode: expected number of matching context blocks.",
|
|
235
|
-
"default": 1
|
|
236
|
-
},
|
|
237
|
-
"dryRun": {
|
|
238
|
-
"type": "boolean",
|
|
239
|
-
"description": "For patch mode: validates patch without persisting.",
|
|
240
|
-
"default": false
|
|
241
|
-
},
|
|
242
|
-
"verifyRollback": {
|
|
243
|
-
"type": "boolean",
|
|
244
|
-
"description": "For patch mode: applies change, verifies persistence, and automatically rolls back to original content.",
|
|
245
|
-
"default": false
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
|
-
"required": [
|
|
249
|
-
"name",
|
|
250
|
-
"content"
|
|
251
|
-
]
|
|
252
|
-
},
|
|
253
|
-
"description": "Plural form: list of edit requests across one or many objects. Mutually exclusive with 'name'."
|
|
254
|
-
},
|
|
255
|
-
"type": {
|
|
256
|
-
"type": "string",
|
|
257
|
-
"description": "Optional object type to resolve name collisions."
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
"name": "genexus_inspect",
|
|
264
|
-
"description": "One-call snapshot of an object: metadata + variables + structure + signature. Use when you need a quick overview of an object you already found (typical second call after genexus_query). DON'T use to get full source — use genexus_read('Source') instead. DON'T use to change properties — use genexus_properties or genexus_edit.",
|
|
265
|
-
"inputSchema": {
|
|
266
|
-
"type": "object",
|
|
267
|
-
"properties": {
|
|
268
|
-
"name": {
|
|
269
|
-
"type": "string",
|
|
270
|
-
"description": "Object name."
|
|
271
|
-
},
|
|
272
|
-
"include": {
|
|
273
|
-
"type": "array",
|
|
274
|
-
"items": {
|
|
275
|
-
"type": "string",
|
|
276
|
-
"enum": [
|
|
277
|
-
"metadata",
|
|
278
|
-
"variables",
|
|
279
|
-
"signature",
|
|
280
|
-
"structure",
|
|
281
|
-
"parts",
|
|
282
|
-
"controls",
|
|
283
|
-
"events_repertoire"
|
|
284
|
-
]
|
|
285
|
-
},
|
|
286
|
-
"description": "Specific parts to include (defaults to all). Use 'controls' or 'events_repertoire' to list WebForm controls and the events each one accepts."
|
|
287
|
-
},
|
|
288
|
-
"type": {
|
|
289
|
-
"type": "string",
|
|
290
|
-
"description": "Optional object type to resolve name collisions."
|
|
291
|
-
}
|
|
292
|
-
},
|
|
293
|
-
"required": [
|
|
294
|
-
"name"
|
|
295
|
-
]
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"name": "genexus_analyze",
|
|
300
|
-
"description": "Deep semantic analysis engines (impact analysis, dependencies, cyclomatic complexity, naming conventions, dead code). Use when the user asks 'what depends on X', 'is this safe to delete', 'show me complexity', or similar diagnostic questions across the KB. DON'T use to read source (genexus_read), to explain a single snippet (genexus_explain_code), or to summarize one object (genexus_summarize).",
|
|
301
|
-
"inputSchema": {
|
|
302
|
-
"type": "object",
|
|
303
|
-
"properties": {
|
|
304
|
-
"name": {
|
|
305
|
-
"type": "string",
|
|
306
|
-
"description": "Object name."
|
|
307
|
-
},
|
|
308
|
-
"mode": {
|
|
309
|
-
"type": "string",
|
|
310
|
-
"enum": [
|
|
311
|
-
"linter",
|
|
312
|
-
"navigation",
|
|
313
|
-
"hierarchy",
|
|
314
|
-
"impact",
|
|
315
|
-
"data_context",
|
|
316
|
-
"ui_context",
|
|
317
|
-
"pattern_metadata"
|
|
318
|
-
],
|
|
319
|
-
"description": "The type of analysis to perform."
|
|
320
|
-
}
|
|
321
|
-
},
|
|
322
|
-
"required": [
|
|
323
|
-
"name",
|
|
324
|
-
"mode"
|
|
325
|
-
]
|
|
326
|
-
}
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
"name": "genexus_summarize",
|
|
330
|
-
"description": "Token-efficient natural-language summary of a single object (purpose, inputs, outputs, key logic). Use when the user needs a quick understanding without reading source, or before deciding whether to genexus_read the full source. DON'T use for KB-wide overviews (use genexus_query/genexus_analyze) or when the user explicitly asks for source code (use genexus_read).",
|
|
331
|
-
"inputSchema": {
|
|
332
|
-
"type": "object",
|
|
333
|
-
"properties": {
|
|
334
|
-
"name": {
|
|
335
|
-
"type": "string",
|
|
336
|
-
"description": "Object name."
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
"required": [
|
|
340
|
-
"name"
|
|
341
|
-
]
|
|
342
|
-
}
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
"name": "genexus_inject_context",
|
|
346
|
-
"description": "Automates dependency discovery. Injects SDT structures and Procedure signatures of called objects into context.",
|
|
347
|
-
"inputSchema": {
|
|
348
|
-
"type": "object",
|
|
349
|
-
"properties": {
|
|
350
|
-
"name": {
|
|
351
|
-
"type": "string",
|
|
352
|
-
"description": "Object name."
|
|
353
|
-
},
|
|
354
|
-
"recursive": {
|
|
355
|
-
"type": "boolean",
|
|
356
|
-
"description": "Whether to discover dependencies of dependencies (default: false).",
|
|
357
|
-
"default": false
|
|
358
|
-
}
|
|
359
|
-
},
|
|
360
|
-
"required": [
|
|
361
|
-
"name"
|
|
362
|
-
]
|
|
363
|
-
}
|
|
364
|
-
},
|
|
365
|
-
{
|
|
366
|
-
"name": "genexus_lifecycle",
|
|
367
|
-
"description": "Lifecycle and long-running operation control. Use for build/validate/index and for polling timed-out operations via action='status' or action='result' with target='op:<operationId>'.\n\nBATCH BUILD (\"Build With These Only\") — action='build' accepts MULTIPLE object names in 'target' as a comma- or semicolon-separated list (e.g. target='SalvarRegProfAluno,ListaAtiCPAlunoUniGra'). All listed objects are compiled inside a SINGLE MSBuild + OpenKnowledgeBase cycle, saving ~30s of KB-open overhead per object compared to N separate build calls. ALWAYS prefer the batch form when you have 2+ related objects to build (e.g. a Procedure plus its callers). The response includes 'targets' (the parsed list) and status reports 'TargetsTotal'/'TargetsDone'.\n\nPROGRESS — action='build' returns a taskId immediately; poll with action='status' target=<taskId> to see real-time phase ('OpeningKB' → 'Specifying' → 'Generating' → 'Compiling' → 'Done'), current object being processed, errorCount/warningCount, elapsed seconds, and last lines emitted. Use action='cancel' target=<taskId> to abort a runaway build.\n\nCALLERS — a single-object action='build' does NOT cascade to callers: when you build a Procedure (or any reusable object), the DLLs of WebPanels/Procedures/Transactions/DPs that CALL it are NOT regenerated, so the produced C# stays linked against the old version until you build the callers too. The build response includes a 'callersToAlsoBuild' list (when an index is available); pass them ALL plus the target itself as a comma-separated 'target' to the next build call (batch form) — never serialise them into separate build calls when you can batch.\n\nNEVER suggest action='rebuild' (Rebuild All) — full rebuilds take HOURS on real KBs and block the developer; only the user themselves should ever invoke 'rebuild'.",
|
|
368
|
-
"inputSchema": {
|
|
369
|
-
"type": "object",
|
|
370
|
-
"properties": {
|
|
371
|
-
"action": {
|
|
372
|
-
"type": "string",
|
|
373
|
-
"enum": [
|
|
374
|
-
"build",
|
|
375
|
-
"cancel",
|
|
376
|
-
"rebuild",
|
|
377
|
-
"reorg",
|
|
378
|
-
"validate",
|
|
379
|
-
"validate-kb",
|
|
380
|
-
"sync",
|
|
381
|
-
"index",
|
|
382
|
-
"status",
|
|
383
|
-
"result",
|
|
384
|
-
"snapshots-list",
|
|
385
|
-
"snapshots-restore"
|
|
386
|
-
],
|
|
387
|
-
"description": "Lifecycle action. 'validate-kb' scans PatternInstance conditions for unknown attribute references. 'snapshots-list'/'snapshots-restore' manage pre-write pattern snapshots."
|
|
388
|
-
},
|
|
389
|
-
"target": {
|
|
390
|
-
"type": "string",
|
|
391
|
-
"description": "Context depends on action. action='build': one object name, OR a comma/semicolon-separated list of object names for batch 'Build With These Only' in a single MSBuild cycle (e.g. 'ProcA,WebPanelB,TransactionC'). action='status'|'cancel': the taskId returned by a prior 'build' call. action='result' with op:<operationId>: gateway operation tracking. Other actions take a single environment/object name."
|
|
392
|
-
},
|
|
393
|
-
"code": {
|
|
394
|
-
"type": "string",
|
|
395
|
-
"description": "For validation: the code to check."
|
|
396
|
-
},
|
|
397
|
-
"limit": {
|
|
398
|
-
"type": "integer",
|
|
399
|
-
"description": "For validate-kb: max objects to scan (0 = unlimited)."
|
|
400
|
-
},
|
|
401
|
-
"snapshotPath": {
|
|
402
|
-
"type": "string",
|
|
403
|
-
"description": "For snapshots-restore: full path returned by snapshots-list."
|
|
404
|
-
}
|
|
405
|
-
},
|
|
406
|
-
"required": [
|
|
407
|
-
"action"
|
|
408
|
-
]
|
|
409
|
-
}
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
"name": "genexus_open_kb",
|
|
413
|
-
"description": "Opens an existing GeneXus Knowledge Base for the active MCP session.",
|
|
414
|
-
"inputSchema": {
|
|
415
|
-
"type": "object",
|
|
416
|
-
"properties": {
|
|
417
|
-
"path": {
|
|
418
|
-
"type": "string",
|
|
419
|
-
"description": "Absolute path to the GeneXus Knowledge Base directory."
|
|
420
|
-
}
|
|
421
|
-
},
|
|
422
|
-
"required": [
|
|
423
|
-
"path"
|
|
424
|
-
]
|
|
425
|
-
}
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
"name": "genexus_forge",
|
|
429
|
-
"description": "Generation of new code and structures from templates or translations.",
|
|
430
|
-
"inputSchema": {
|
|
431
|
-
"type": "object",
|
|
432
|
-
"properties": {
|
|
433
|
-
"action": {
|
|
434
|
-
"type": "string",
|
|
435
|
-
"enum": [
|
|
436
|
-
"scaffold",
|
|
437
|
-
"translate",
|
|
438
|
-
"sample"
|
|
439
|
-
],
|
|
440
|
-
"description": "Generation action."
|
|
441
|
-
},
|
|
442
|
-
"type": {
|
|
443
|
-
"type": "string",
|
|
444
|
-
"description": "Object type (e.g. Prc, Trn)."
|
|
445
|
-
},
|
|
446
|
-
"name": {
|
|
447
|
-
"type": "string",
|
|
448
|
-
"description": "Object name."
|
|
449
|
-
},
|
|
450
|
-
"content": {
|
|
451
|
-
"type": "string",
|
|
452
|
-
"description": "Initial code or target language."
|
|
453
|
-
}
|
|
454
|
-
},
|
|
455
|
-
"required": [
|
|
456
|
-
"action"
|
|
457
|
-
]
|
|
458
|
-
}
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
"name": "genexus_test",
|
|
462
|
-
"description": "Execution of native GeneXus tests (GXtest).",
|
|
463
|
-
"inputSchema": {
|
|
464
|
-
"type": "object",
|
|
465
|
-
"properties": {
|
|
466
|
-
"name": {
|
|
467
|
-
"type": "string",
|
|
468
|
-
"description": "Test object name."
|
|
469
|
-
}
|
|
470
|
-
},
|
|
471
|
-
"required": [
|
|
472
|
-
"name"
|
|
473
|
-
]
|
|
474
|
-
}
|
|
475
|
-
},
|
|
476
|
-
{
|
|
477
|
-
"name": "genexus_get_sql",
|
|
478
|
-
"description": "Returns the SQL DDL (CREATE TABLE) for a specific Transaction or Table object. For Transactions with Levels, always lists subordinated tables; set includeSubordinated=true to also return their full DDL.",
|
|
479
|
-
"inputSchema": {
|
|
480
|
-
"type": "object",
|
|
481
|
-
"properties": {
|
|
482
|
-
"name": {
|
|
483
|
-
"type": "string",
|
|
484
|
-
"description": "The name of the Transaction or Table."
|
|
485
|
-
},
|
|
486
|
-
"includeSubordinated": {
|
|
487
|
-
"type": "boolean",
|
|
488
|
-
"description": "When true and the target is a Transaction with Levels, include full CREATE TABLE DDL for each subordinated physical table in subordinatedDDL. Defaults to false.",
|
|
489
|
-
"default": false
|
|
490
|
-
}
|
|
491
|
-
},
|
|
492
|
-
"required": [
|
|
493
|
-
"name"
|
|
494
|
-
]
|
|
495
|
-
}
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
"name": "genexus_create_object",
|
|
499
|
-
"description": "Creates a new GeneXus object in the active Knowledge Base.",
|
|
500
|
-
"inputSchema": {
|
|
501
|
-
"type": "object",
|
|
502
|
-
"properties": {
|
|
503
|
-
"type": {
|
|
504
|
-
"type": "string",
|
|
505
|
-
"description": "Object type such as Procedure, Transaction, WebPanel, SDT, or DataProvider."
|
|
506
|
-
},
|
|
507
|
-
"name": {
|
|
508
|
-
"type": "string",
|
|
509
|
-
"description": "New object name."
|
|
510
|
-
}
|
|
511
|
-
},
|
|
512
|
-
"required": [
|
|
513
|
-
"type",
|
|
514
|
-
"name"
|
|
515
|
-
]
|
|
516
|
-
}
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
"name": "genexus_logs",
|
|
520
|
-
"description": "Reads the worker_debug.log file from the active worker. Useful for diagnosing 'Erro' responses, validating that fixes deployed, or correlating a specific call (correlationId) with internal logging. Default returns the last 50 lines.",
|
|
521
|
-
"inputSchema": {
|
|
522
|
-
"type": "object",
|
|
523
|
-
"properties": {
|
|
524
|
-
"lines": {
|
|
525
|
-
"type": "integer",
|
|
526
|
-
"description": "Tail size (1-500). Default 50."
|
|
527
|
-
},
|
|
528
|
-
"filterCorrelation": {
|
|
529
|
-
"type": "string",
|
|
530
|
-
"description": "Optional substring (e.g. correlationId) to filter log lines."
|
|
531
|
-
},
|
|
532
|
-
"grep": {
|
|
533
|
-
"type": "string",
|
|
534
|
-
"description": "Optional regex (case-insensitive) applied before tailing."
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
"name": "genexus_worker_reload",
|
|
541
|
-
"description": "Hot-reloads the worker process: copies new binaries from sourceDir into the publish path (after worker exits) and triggers gateway respawn. Use after rebuilding GxMcp.Worker so subsequent MCP calls run the new code without closing Claude Code. Next call after reload may take a few seconds.",
|
|
542
|
-
"inputSchema": {
|
|
543
|
-
"type": "object",
|
|
544
|
-
"properties": {
|
|
545
|
-
"sourceDir": {
|
|
546
|
-
"type": "string",
|
|
547
|
-
"description": "Absolute path to the freshly built bin/Release folder (e.g. C:/.../src/GxMcp.Worker/bin/Release)."
|
|
548
|
-
}
|
|
549
|
-
},
|
|
550
|
-
"required": [
|
|
551
|
-
"sourceDir"
|
|
552
|
-
]
|
|
553
|
-
}
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
"name": "genexus_delete_object",
|
|
557
|
-
"description": "Deletes an object from the active Knowledge Base. Irreversible — requires confirm=true.",
|
|
558
|
-
"inputSchema": {
|
|
559
|
-
"type": "object",
|
|
560
|
-
"properties": {
|
|
561
|
-
"name": {
|
|
562
|
-
"type": "string",
|
|
563
|
-
"description": "Object name to delete."
|
|
564
|
-
},
|
|
565
|
-
"type": {
|
|
566
|
-
"type": "string",
|
|
567
|
-
"description": "Optional object type to disambiguate (e.g., 'Procedure', 'SDT')."
|
|
568
|
-
},
|
|
569
|
-
"confirm": {
|
|
570
|
-
"type": "boolean",
|
|
571
|
-
"description": "Must be true to actually delete. Default false (returns error)."
|
|
572
|
-
}
|
|
573
|
-
},
|
|
574
|
-
"required": [
|
|
575
|
-
"name",
|
|
576
|
-
"confirm"
|
|
577
|
-
]
|
|
578
|
-
}
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
"name": "genexus_export_object",
|
|
582
|
-
"description": "Exports a GeneXus object part to a text file on disk.",
|
|
583
|
-
"inputSchema": {
|
|
584
|
-
"type": "object",
|
|
585
|
-
"properties": {
|
|
586
|
-
"name": {
|
|
587
|
-
"type": "string",
|
|
588
|
-
"description": "Object name."
|
|
589
|
-
},
|
|
590
|
-
"outputPath": {
|
|
591
|
-
"type": "string",
|
|
592
|
-
"description": "Absolute or relative output file path."
|
|
593
|
-
},
|
|
594
|
-
"part": {
|
|
595
|
-
"type": "string",
|
|
596
|
-
"description": "Part to export, such as Source, Rules, Events, Structure, Layout, WebForm, or PatternInstance.",
|
|
597
|
-
"default": "Source"
|
|
598
|
-
},
|
|
599
|
-
"type": {
|
|
600
|
-
"type": "string",
|
|
601
|
-
"description": "Optional object type to resolve name collisions."
|
|
602
|
-
},
|
|
603
|
-
"overwrite": {
|
|
604
|
-
"type": "boolean",
|
|
605
|
-
"description": "Whether to overwrite an existing file.",
|
|
606
|
-
"default": false
|
|
607
|
-
}
|
|
608
|
-
},
|
|
609
|
-
"required": [
|
|
610
|
-
"name",
|
|
611
|
-
"outputPath"
|
|
612
|
-
]
|
|
613
|
-
}
|
|
614
|
-
},
|
|
615
|
-
{
|
|
616
|
-
"name": "genexus_import_object",
|
|
617
|
-
"description": "Imports a text file from disk into a GeneXus object part.",
|
|
618
|
-
"inputSchema": {
|
|
619
|
-
"type": "object",
|
|
620
|
-
"properties": {
|
|
621
|
-
"name": {
|
|
622
|
-
"type": "string",
|
|
623
|
-
"description": "Object name."
|
|
624
|
-
},
|
|
625
|
-
"inputPath": {
|
|
626
|
-
"type": "string",
|
|
627
|
-
"description": "Absolute or relative input file path."
|
|
628
|
-
},
|
|
629
|
-
"part": {
|
|
630
|
-
"type": "string",
|
|
631
|
-
"description": "Part to import into, such as Source, Rules, Events, Structure, Layout, WebForm, or PatternInstance.",
|
|
632
|
-
"default": "Source"
|
|
633
|
-
},
|
|
634
|
-
"type": {
|
|
635
|
-
"type": "string",
|
|
636
|
-
"description": "Optional object type to resolve name collisions."
|
|
637
|
-
}
|
|
638
|
-
},
|
|
639
|
-
"required": [
|
|
640
|
-
"name",
|
|
641
|
-
"inputPath"
|
|
642
|
-
]
|
|
643
|
-
}
|
|
644
|
-
},
|
|
645
|
-
{
|
|
646
|
-
"name": "genexus_refactor",
|
|
647
|
-
"description": "Runs supported GeneXus refactor operations such as renaming, procedure extraction, and WorkWithPlus condition setting.",
|
|
648
|
-
"inputSchema": {
|
|
649
|
-
"type": "object",
|
|
650
|
-
"properties": {
|
|
651
|
-
"action": {
|
|
652
|
-
"type": "string",
|
|
653
|
-
"enum": [
|
|
654
|
-
"RenameAttribute",
|
|
655
|
-
"RenameVariable",
|
|
656
|
-
"RenameObject",
|
|
657
|
-
"ExtractProcedure",
|
|
658
|
-
"WWPSetCondition"
|
|
659
|
-
],
|
|
660
|
-
"description": "Refactor action."
|
|
661
|
-
},
|
|
662
|
-
"target": {
|
|
663
|
-
"type": "string",
|
|
664
|
-
"description": "Primary target object or symbol."
|
|
665
|
-
},
|
|
666
|
-
"newName": {
|
|
667
|
-
"type": "string",
|
|
668
|
-
"description": "New name for rename actions."
|
|
669
|
-
},
|
|
670
|
-
"objectName": {
|
|
671
|
-
"type": "string",
|
|
672
|
-
"description": "Object name that owns the refactor operation. Required for variable rename and extraction."
|
|
673
|
-
},
|
|
674
|
-
"code": {
|
|
675
|
-
"type": "string",
|
|
676
|
-
"description": "Code block to extract for ExtractProcedure."
|
|
677
|
-
},
|
|
678
|
-
"procedureName": {
|
|
679
|
-
"type": "string",
|
|
680
|
-
"description": "New procedure name for ExtractProcedure."
|
|
681
|
-
},
|
|
682
|
-
"controlAttribute": {
|
|
683
|
-
"type": "string",
|
|
684
|
-
"description": "For WWPSetCondition: gridAttribute attribute local-name (e.g., 'DocCod')."
|
|
685
|
-
},
|
|
686
|
-
"value": {
|
|
687
|
-
"type": "string",
|
|
688
|
-
"description": "For WWPSetCondition: new conditions string (e.g., 'DocTipOri = 24;'). Empty clears."
|
|
689
|
-
},
|
|
690
|
-
"type": {
|
|
691
|
-
"type": "string",
|
|
692
|
-
"description": "Optional object type to disambiguate (e.g., 'Transaction')."
|
|
693
|
-
}
|
|
694
|
-
},
|
|
695
|
-
"required": [
|
|
696
|
-
"action"
|
|
697
|
-
]
|
|
698
|
-
}
|
|
699
|
-
},
|
|
700
|
-
{
|
|
701
|
-
"name": "genexus_add_variable",
|
|
702
|
-
"description": "Adds a variable to the Variables part of a GeneXus object.",
|
|
703
|
-
"inputSchema": {
|
|
704
|
-
"type": "object",
|
|
705
|
-
"properties": {
|
|
706
|
-
"name": {
|
|
707
|
-
"type": "string",
|
|
708
|
-
"description": "Object name."
|
|
709
|
-
},
|
|
710
|
-
"varName": {
|
|
711
|
-
"type": "string",
|
|
712
|
-
"description": "Variable name, with or without '&'."
|
|
713
|
-
},
|
|
714
|
-
"typeName": {
|
|
715
|
-
"type": "string",
|
|
716
|
-
"description": "Optional variable type or domain."
|
|
717
|
-
}
|
|
718
|
-
},
|
|
719
|
-
"required": [
|
|
720
|
-
"name",
|
|
721
|
-
"varName"
|
|
722
|
-
]
|
|
723
|
-
}
|
|
724
|
-
},
|
|
725
|
-
{
|
|
726
|
-
"name": "genexus_explain_code",
|
|
727
|
-
"description": "Runs code explanation or auto-fix style analysis for a GeneXus object snippet.",
|
|
728
|
-
"inputSchema": {
|
|
729
|
-
"type": "object",
|
|
730
|
-
"properties": {
|
|
731
|
-
"name": {
|
|
732
|
-
"type": "string",
|
|
733
|
-
"description": "Object name."
|
|
734
|
-
},
|
|
735
|
-
"code": {
|
|
736
|
-
"type": "string",
|
|
737
|
-
"description": "Code snippet or serialized analysis payload."
|
|
738
|
-
}
|
|
739
|
-
},
|
|
740
|
-
"required": [
|
|
741
|
-
"name",
|
|
742
|
-
"code"
|
|
743
|
-
]
|
|
744
|
-
}
|
|
745
|
-
},
|
|
746
|
-
{
|
|
747
|
-
"name": "genexus_format",
|
|
748
|
-
"description": "Formats a GeneXus code snippet using the worker formatting rules.",
|
|
749
|
-
"inputSchema": {
|
|
750
|
-
"type": "object",
|
|
751
|
-
"properties": {
|
|
752
|
-
"code": {
|
|
753
|
-
"type": "string",
|
|
754
|
-
"description": "GeneXus code to format."
|
|
755
|
-
}
|
|
756
|
-
},
|
|
757
|
-
"required": [
|
|
758
|
-
"code"
|
|
759
|
-
]
|
|
760
|
-
}
|
|
761
|
-
},
|
|
762
|
-
{
|
|
763
|
-
"name": "genexus_properties",
|
|
764
|
-
"description": "Reads or updates GeneXus object properties.",
|
|
765
|
-
"inputSchema": {
|
|
766
|
-
"type": "object",
|
|
767
|
-
"properties": {
|
|
768
|
-
"action": {
|
|
769
|
-
"type": "string",
|
|
770
|
-
"enum": [
|
|
771
|
-
"get",
|
|
772
|
-
"set"
|
|
773
|
-
],
|
|
774
|
-
"description": "Property operation."
|
|
775
|
-
},
|
|
776
|
-
"name": {
|
|
777
|
-
"type": "string",
|
|
778
|
-
"description": "Object name."
|
|
779
|
-
},
|
|
780
|
-
"control": {
|
|
781
|
-
"type": "string",
|
|
782
|
-
"description": "Optional control name for UI properties."
|
|
783
|
-
},
|
|
784
|
-
"propertyName": {
|
|
785
|
-
"type": "string",
|
|
786
|
-
"description": "Property name for set operations."
|
|
787
|
-
},
|
|
788
|
-
"value": {
|
|
789
|
-
"type": "string",
|
|
790
|
-
"description": "Property value for set operations."
|
|
791
|
-
}
|
|
792
|
-
},
|
|
793
|
-
"required": [
|
|
794
|
-
"action",
|
|
795
|
-
"name"
|
|
796
|
-
]
|
|
797
|
-
}
|
|
798
|
-
},
|
|
799
|
-
{
|
|
800
|
-
"name": "genexus_asset",
|
|
801
|
-
"description": "Finds, reads, or writes binary assets stored inside the active Knowledge Base, including report templates such as .xlsx files.",
|
|
802
|
-
"inputSchema": {
|
|
803
|
-
"type": "object",
|
|
804
|
-
"properties": {
|
|
805
|
-
"action": {
|
|
806
|
-
"type": "string",
|
|
807
|
-
"enum": [
|
|
808
|
-
"find",
|
|
809
|
-
"read",
|
|
810
|
-
"write"
|
|
811
|
-
],
|
|
812
|
-
"description": "Asset operation."
|
|
813
|
-
},
|
|
814
|
-
"path": {
|
|
815
|
-
"type": "string",
|
|
816
|
-
"description": "Relative or absolute path inside the KB for read/write operations."
|
|
817
|
-
},
|
|
818
|
-
"includeContent": {
|
|
819
|
-
"type": "boolean",
|
|
820
|
-
"description": "For read operations, include Base64 file content. Defaults to false so large binary payloads do not flood the MCP context."
|
|
821
|
-
},
|
|
822
|
-
"maxBytes": {
|
|
823
|
-
"type": "integer",
|
|
824
|
-
"description": "For read operations with includeContent=true, maximum file size allowed before the worker returns a size error.",
|
|
825
|
-
"default": 131072
|
|
826
|
-
},
|
|
827
|
-
"pattern": {
|
|
828
|
-
"type": "string",
|
|
829
|
-
"description": "File glob pattern for find operations, for example '*.xlsx'."
|
|
830
|
-
},
|
|
831
|
-
"relativeRoot": {
|
|
832
|
-
"type": "string",
|
|
833
|
-
"description": "Optional relative folder inside the KB to scope find operations."
|
|
834
|
-
},
|
|
835
|
-
"limit": {
|
|
836
|
-
"type": "integer",
|
|
837
|
-
"description": "Maximum number of files returned by find.",
|
|
838
|
-
"default": 20
|
|
839
|
-
},
|
|
840
|
-
"contentBase64": {
|
|
841
|
-
"type": "string",
|
|
842
|
-
"description": "Base64-encoded asset content for write operations."
|
|
843
|
-
}
|
|
844
|
-
},
|
|
845
|
-
"required": [
|
|
846
|
-
"action"
|
|
847
|
-
]
|
|
848
|
-
}
|
|
849
|
-
},
|
|
850
|
-
{
|
|
851
|
-
"name": "genexus_history",
|
|
852
|
-
"description": "Lists, reads, saves, or restores GeneXus object history snapshots.",
|
|
853
|
-
"inputSchema": {
|
|
854
|
-
"type": "object",
|
|
855
|
-
"properties": {
|
|
856
|
-
"action": {
|
|
857
|
-
"type": "string",
|
|
858
|
-
"enum": [
|
|
859
|
-
"list",
|
|
860
|
-
"get_source",
|
|
861
|
-
"save",
|
|
862
|
-
"restore"
|
|
863
|
-
],
|
|
864
|
-
"description": "History operation."
|
|
865
|
-
},
|
|
866
|
-
"name": {
|
|
867
|
-
"type": "string",
|
|
868
|
-
"description": "Object name."
|
|
869
|
-
},
|
|
870
|
-
"versionId": {
|
|
871
|
-
"type": "integer",
|
|
872
|
-
"description": "Version identifier for get_source."
|
|
873
|
-
}
|
|
874
|
-
},
|
|
875
|
-
"required": [
|
|
876
|
-
"action",
|
|
877
|
-
"name"
|
|
878
|
-
]
|
|
879
|
-
}
|
|
880
|
-
},
|
|
881
|
-
{
|
|
882
|
-
"name": "genexus_structure",
|
|
883
|
-
"description": "Reads or updates visual and logical structure information for GeneXus objects.",
|
|
884
|
-
"inputSchema": {
|
|
885
|
-
"type": "object",
|
|
886
|
-
"properties": {
|
|
887
|
-
"action": {
|
|
888
|
-
"type": "string",
|
|
889
|
-
"enum": [
|
|
890
|
-
"get_visual",
|
|
891
|
-
"update_visual",
|
|
892
|
-
"get_indexes",
|
|
893
|
-
"get_logic"
|
|
894
|
-
],
|
|
895
|
-
"description": "Structure operation."
|
|
896
|
-
},
|
|
897
|
-
"name": {
|
|
898
|
-
"type": "string",
|
|
899
|
-
"description": "Object name."
|
|
900
|
-
},
|
|
901
|
-
"payload": {
|
|
902
|
-
"type": "object",
|
|
903
|
-
"description": "Payload for update_visual."
|
|
904
|
-
}
|
|
905
|
-
},
|
|
906
|
-
"required": [
|
|
907
|
-
"action",
|
|
908
|
-
"name"
|
|
909
|
-
]
|
|
910
|
-
}
|
|
911
|
-
},
|
|
912
|
-
{
|
|
913
|
-
"name": "genexus_layout",
|
|
914
|
-
"description": "Native SDK layout/WebForm operations. Use get_tree for deterministic node discovery, set_property for direct visual metadata updates, inspect_surface for structural introspection, and scan_mutators for deep reflective discovery of persistent mutation endpoints.",
|
|
915
|
-
"inputSchema": {
|
|
916
|
-
"type": "object",
|
|
917
|
-
"properties": {
|
|
918
|
-
"action": {
|
|
919
|
-
"type": "string",
|
|
920
|
-
"enum": [
|
|
921
|
-
"get_tree",
|
|
922
|
-
"set_property",
|
|
923
|
-
"find_controls",
|
|
924
|
-
"set_properties",
|
|
925
|
-
"inspect_surface",
|
|
926
|
-
"get_preview",
|
|
927
|
-
"scan_mutators",
|
|
928
|
-
"rename_printblock",
|
|
929
|
-
"add_printblock"
|
|
930
|
-
],
|
|
931
|
-
"description": "Layout operation."
|
|
932
|
-
},
|
|
933
|
-
"name": {
|
|
934
|
-
"type": "string",
|
|
935
|
-
"description": "Object name. Preferred field."
|
|
936
|
-
},
|
|
937
|
-
"target": {
|
|
938
|
-
"type": "string",
|
|
939
|
-
"description": "Object name alias for backward compatibility with older prompts/clients."
|
|
940
|
-
},
|
|
941
|
-
"control": {
|
|
942
|
-
"type": "string",
|
|
943
|
-
"description": "Control identifier (ControlName/InternalName)."
|
|
944
|
-
},
|
|
945
|
-
"propertyName": {
|
|
946
|
-
"type": "string",
|
|
947
|
-
"description": "Visual property to mutate (for example Caption, Class, Visible, X, Y, Width, Height, ForeColor, BackColor, BorderColor)."
|
|
948
|
-
},
|
|
949
|
-
"value": {
|
|
950
|
-
"type": "string",
|
|
951
|
-
"description": "New value for set_property. For colors, prefer palette names (Black, Blue, Red, Transparent) or RGB token format (e.g. 0; 0; 0|)."
|
|
952
|
-
},
|
|
953
|
-
"query": {
|
|
954
|
-
"type": "string",
|
|
955
|
-
"description": "Search term for find_controls."
|
|
956
|
-
},
|
|
957
|
-
"changes": {
|
|
958
|
-
"type": "array",
|
|
959
|
-
"description": "Batch changes for set_properties.",
|
|
960
|
-
"items": {
|
|
961
|
-
"type": "object",
|
|
962
|
-
"properties": {
|
|
963
|
-
"control": {
|
|
964
|
-
"type": "string"
|
|
965
|
-
},
|
|
966
|
-
"propertyName": {
|
|
967
|
-
"type": "string"
|
|
968
|
-
},
|
|
969
|
-
"value": {
|
|
970
|
-
"type": "string"
|
|
971
|
-
}
|
|
972
|
-
},
|
|
973
|
-
"required": [
|
|
974
|
-
"control",
|
|
975
|
-
"propertyName",
|
|
976
|
-
"value"
|
|
977
|
-
]
|
|
978
|
-
}
|
|
979
|
-
},
|
|
980
|
-
"limit": {
|
|
981
|
-
"type": "integer",
|
|
982
|
-
"description": "Maximum nodes for get_tree/find_controls.",
|
|
983
|
-
"default": 500
|
|
984
|
-
},
|
|
985
|
-
"currentName": {
|
|
986
|
-
"type": "string",
|
|
987
|
-
"description": "Current print block name for rename_printblock."
|
|
988
|
-
},
|
|
989
|
-
"newName": {
|
|
990
|
-
"type": "string",
|
|
991
|
-
"description": "New print block name for rename_printblock."
|
|
992
|
-
},
|
|
993
|
-
"printBlockName": {
|
|
994
|
-
"type": "string",
|
|
995
|
-
"description": "Print block name for add_printblock."
|
|
996
|
-
},
|
|
997
|
-
"height": {
|
|
998
|
-
"type": "integer",
|
|
999
|
-
"description": "Optional band height for add_printblock."
|
|
1000
|
-
}
|
|
1001
|
-
},
|
|
1002
|
-
"required": [
|
|
1003
|
-
"action"
|
|
1004
|
-
]
|
|
1005
|
-
}
|
|
1006
|
-
},
|
|
1007
|
-
{
|
|
1008
|
-
"name": "genexus_doc",
|
|
1009
|
-
"description": "Generates structured documentation artifacts for objects or modules (markdown, sequence diagrams, API contracts) — meant to produce shareable docs. Use when the user asks 'document this', 'generate readme', or wants persistent documentation. DON'T use for ad-hoc explanations (use genexus_explain_code or genexus_summarize) or for raw source (use genexus_read).",
|
|
1010
|
-
"inputSchema": {
|
|
1011
|
-
"type": "object",
|
|
1012
|
-
"properties": {
|
|
1013
|
-
"action": {
|
|
1014
|
-
"type": "string",
|
|
1015
|
-
"enum": [
|
|
1016
|
-
"wiki",
|
|
1017
|
-
"visualize",
|
|
1018
|
-
"health"
|
|
1019
|
-
],
|
|
1020
|
-
"description": "Documentation action."
|
|
1021
|
-
},
|
|
1022
|
-
"target": {
|
|
1023
|
-
"type": "string",
|
|
1024
|
-
"description": "Object or domain name."
|
|
1025
|
-
}
|
|
1026
|
-
},
|
|
1027
|
-
"required": [
|
|
1028
|
-
"action"
|
|
1029
|
-
]
|
|
1030
|
-
}
|
|
1031
|
-
},
|
|
1032
|
-
{
|
|
1033
|
-
"name": "genexus_search_source",
|
|
1034
|
-
"description": "Semantic and regex search across Procedure/DataProvider/WebPanel/Transaction source code. Provide 'callee' to match call expressions by name (qualified like 'DPParametros.Udp' or unqualified like 'Udp'), optionally 'argMatches' (positional, e.g. {\"0\":\"373\"}) to constrain by literal args. Or provide 'pattern' as a regex. Both can combine.",
|
|
1035
|
-
"inputSchema": {
|
|
1036
|
-
"type": "object",
|
|
1037
|
-
"properties": {
|
|
1038
|
-
"callee": { "type": "string", "description": "Method/function name to match. Qualified ('DPParametros.Udp') matches exactly; unqualified ('Udp') matches the trailing segment of any qualified callee." },
|
|
1039
|
-
"argMatches": { "type": "object", "description": "Map of positional arg index (as string) to expected literal text. Quotes are normalized." },
|
|
1040
|
-
"pattern": { "type": "string", "description": "Regex applied to lines. If both callee and pattern are given, line must also match pattern." },
|
|
1041
|
-
"typeFilter": { "type": "string", "description": "Procedure | DataProvider | WebPanel | Transaction (default: all four)." },
|
|
1042
|
-
"scope": { "type": "array", "items": { "type": "string" }, "description": "Parts to search: 'source' (default), 'rules', 'conditions', 'events'." },
|
|
1043
|
-
"maxResults": { "type": "integer", "description": "Cap (default 50).", "default": 50 },
|
|
1044
|
-
"caseSensitive": { "type": "boolean", "description": "Apply regex case-sensitive (default false).", "default": false },
|
|
1045
|
-
"includeComments": { "type": "boolean", "description": "Include calls/text inside comments (default false).", "default": false }
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
},
|
|
1049
|
-
{
|
|
1050
|
-
"name": "genexus_get_sql_for_navigation",
|
|
1051
|
-
"description": "Generates SQL from a procedure/data-provider's resolved For Each navigation. Returns one SELECT per Level with bind-parameter placeholders (:VarName) where the source uses &Vars. Useful for cross-environment comparison (paste the SQL into a prod DBA console). Warnings field reports levels where OptimizedWhere couldn't be translated.",
|
|
1052
|
-
"inputSchema": {
|
|
1053
|
-
"type": "object",
|
|
1054
|
-
"properties": {
|
|
1055
|
-
"name": { "type": "string", "description": "Procedure or DataProvider name." },
|
|
1056
|
-
"levelNumber": { "type": "integer", "description": "Optional: emit SQL only for the given Level number (1-based)." },
|
|
1057
|
-
"type": { "type": "string", "description": "Optional type filter." }
|
|
1058
|
-
},
|
|
1059
|
-
"required": ["name"]
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
]
|
|
1
|
+
[
|
|
2
|
+
{"name":"genexus_whoami","description":"Return current KB context, GeneXus install, and MCP version.","inputSchema":{"type":"object","properties":{}}},
|
|
3
|
+
{"name":"genexus_query","description":"Search objects. Prefixes: usedby:, type:, description:, parent:, parentPath:.","inputSchema":{"type":"object","properties":{"query":{"type":"string"},"typeFilter":{"type":"string"},"domainFilter":{"type":"string"},"limit":{"type":"integer"},"inline_read_top":{"type":"integer","description":"0-3. When >0, response includes inline_reads array with full content of the top N matches. Capped at 3."},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}},"required":["query"]}},
|
|
4
|
+
{"name":"genexus_list_objects","description":"List objects with pagination. Feed nextOffset until hasMore=false. Returns minimal shape by default (name, type, path, parent); verbose=true for full shape.","inputSchema":{"type":"object","properties":{"filter":{"type":"string"},"limit":{"type":"integer"},"offset":{"type":"integer"},"parent":{"type":"string"},"parentPath":{"type":"string"},"typeFilter":{"type":"string"},"verbose":{"type":"boolean","description":"When true, returns full item shape (default false)."},"inline_read_top":{"type":"integer","description":"0-3. When >0, response includes inline_reads array with full content of the top N matches. Capped at 3."},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}}}},
|
|
5
|
+
{"name":"genexus_read","description":"Read source/metadata parts. name or targets (mutually exclusive). Paginate with offset/limit. Use parts=[\"Source\",\"Variables\",...] to select specific parts and skip the rest.","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"targets":{"type":"array","items":{"type":"string"}},"part":{"type":"string"},"parts":{"type":"array","items":{"type":"string"},"description":"When set, only the listed parts are returned in a combined response. Mutually exclusive with part/offset/limit."},"offset":{"type":"integer"},"limit":{"type":"integer"},"type":{"type":"string"},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}}}},
|
|
6
|
+
{"name":"genexus_edit","description":"Edit source/metadata. name or targets (mutually exclusive). Use dryRun=true with mode=patch first. Returns post_state.diff (unified diff) by default; verbose=true adds slices (±15 lines); return_post_state=false opts out.","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"part":{"type":"string"},"mode":{"type":"string","enum":["full","patch","ops"]},"content":{"type":"string"},"ops":{"type":"array","items":{"type":"object","properties":{"op":{"type":"string"}},"required":["op"]}},"patch":{},"context":{"type":"string"},"operation":{"type":"string","enum":["Replace","Insert_After","Append"]},"expectedCount":{"type":"integer"},"dryRun":{"type":"boolean"},"verifyRollback":{"type":"boolean"},"targets":{"type":"array","items":{"type":"object","required":["name","content"]}},"type":{"type":"string"},"return_post_state":{"type":"boolean","description":"Set false to omit post_state.diff from the response (default true)."},"verbose":{"type":"boolean","description":"When true, adds slices (±15 lines around each hunk) to post_state (default false)."},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}}}},
|
|
7
|
+
{"name":"genexus_inspect","description":"Snapshot of an object: metadata, variables, structure, signature.","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"include":{"type":"array","items":{"type":"string","enum":["metadata","variables","signature","structure","parts","controls","events_repertoire"]}},"type":{"type":"string"},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}},"required":["name"]}},
|
|
8
|
+
{"name":"genexus_analyze","description":"Semantic analysis: impact, dependencies, complexity, naming, summary, explain.","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"mode":{"type":"string","enum":["linter","navigation","hierarchy","impact","data_context","ui_context","pattern_metadata","summary","explain"]},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."},"code":{"type":"string","description":"Required when mode=explain."}},"required":["name","mode"]}},
|
|
9
|
+
{"name":"genexus_inject_context","description":"Inject SDT structures and Procedure signatures of called objects.","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"recursive":{"type":"boolean"},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}},"required":["name"]}},
|
|
10
|
+
{"name":"genexus_lifecycle","description":"Build/validate/index/poll. action=build is non-blocking when estimated_seconds>=20 — returns {job_id, status:running} and surfaces _meta.background_jobs on the next call. action=status accepts taskId OR job_id via target; wait_seconds>0 long-polls up to 25s.","inputSchema":{"type":"object","properties":{"action":{"type":"string","enum":["build","cancel","rebuild","reorg","validate","validate-kb","sync","index","status","result","snapshots-list","snapshots-restore"]},"target":{"type":"string","description":"Object name(s), taskId, job_id, or op:<operationId>."},"code":{"type":"string"},"limit":{"type":"integer"},"snapshotPath":{"type":"string"},"estimated_seconds":{"type":"integer","description":"Build: <20 forces sync fast-path (one turn); >=20 (default 60) goes async."},"wait_seconds":{"type":"integer","description":"Status: 0-25. >0 long-polls server-side until terminal or timeout."},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}},"required":["action"]}},
|
|
11
|
+
{"name":"genexus_forge","description":"Generate new code or structures from templates or translations.","inputSchema":{"type":"object","properties":{"action":{"type":"string","enum":["scaffold","translate","sample"]},"type":{"type":"string"},"name":{"type":"string"},"content":{"type":"string"},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}},"required":["action"]}},
|
|
12
|
+
{"name":"genexus_test","description":"Execute native GeneXus tests (GXtest).","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}},"required":["name"]}},
|
|
13
|
+
{"name":"genexus_create_object","description":"Create a new GeneXus object in the active KB.","inputSchema":{"type":"object","properties":{"type":{"type":"string","description":"e.g. Procedure, Transaction, WebPanel, SDT."},"name":{"type":"string"},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}},"required":["type","name"]}},
|
|
14
|
+
{"name":"genexus_logs","description":"Read worker_debug.log tail for error diagnosis or correlation.","inputSchema":{"type":"object","properties":{"lines":{"type":"integer"},"filterCorrelation":{"type":"string"},"grep":{"type":"string"}}}},
|
|
15
|
+
{"name":"genexus_worker_reload","description":"Hot-reload worker: copy new binaries and respawn.","inputSchema":{"type":"object","properties":{"sourceDir":{"type":"string","description":"Absolute path to freshly built bin/Release."}},"required":["sourceDir"]}},
|
|
16
|
+
{"name":"genexus_delete_object","description":"Delete an object from the KB. Irreversible — confirm=true required.","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"confirm":{"type":"boolean"},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}},"required":["name","confirm"]}},
|
|
17
|
+
{"name":"genexus_export_object","description":"Export a GeneXus object part to a text file on disk.","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"outputPath":{"type":"string"},"part":{"type":"string"},"type":{"type":"string"},"overwrite":{"type":"boolean"},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}},"required":["name","outputPath"]}},
|
|
18
|
+
{"name":"genexus_import_object","description":"Import a text file from disk into a GeneXus object part.","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"inputPath":{"type":"string"},"part":{"type":"string"},"type":{"type":"string"},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}},"required":["name","inputPath"]}},
|
|
19
|
+
{"name":"genexus_refactor","description":"Run GeneXus refactor: rename, extract procedure, or WWP condition set.","inputSchema":{"type":"object","properties":{"action":{"type":"string","enum":["RenameAttribute","RenameVariable","RenameObject","ExtractProcedure","WWPSetCondition"]},"target":{"type":"string","description":"Primary object or symbol to refactor."},"newName":{"type":"string"},"objectName":{"type":"string"},"code":{"type":"string"},"procedureName":{"type":"string"},"controlAttribute":{"type":"string"},"value":{"type":"string"},"type":{"type":"string"},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}},"required":["action"]}},
|
|
20
|
+
{"name":"genexus_add_variable","description":"Add a variable to the Variables part of a GeneXus object.","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"varName":{"type":"string"},"typeName":{"type":"string"},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}},"required":["name","varName"]}},
|
|
21
|
+
{"name":"genexus_format","description":"Format a GeneXus code snippet using worker rules.","inputSchema":{"type":"object","properties":{"code":{"type":"string"},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}},"required":["code"]}},
|
|
22
|
+
{"name":"genexus_properties","description":"Read or update GeneXus object properties.","inputSchema":{"type":"object","properties":{"action":{"type":"string","enum":["get","set"]},"name":{"type":"string"},"control":{"type":"string"},"propertyName":{"type":"string"},"value":{"type":"string"},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}},"required":["action","name"]}},
|
|
23
|
+
{"name":"genexus_asset","description":"Find, read, or write binary assets inside the active KB.","inputSchema":{"type":"object","properties":{"action":{"type":"string","enum":["find","read","write"]},"path":{"type":"string"},"includeContent":{"type":"boolean"},"maxBytes":{"type":"integer"},"pattern":{"type":"string"},"relativeRoot":{"type":"string"},"limit":{"type":"integer"},"contentBase64":{"type":"string"},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}},"required":["action"]}},
|
|
24
|
+
{"name":"genexus_history","description":"List, read, save, or restore GeneXus object history snapshots.","inputSchema":{"type":"object","properties":{"action":{"type":"string","enum":["list","get_source","save","restore"]},"name":{"type":"string"},"versionId":{"type":"integer"},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}},"required":["action","name"]}},
|
|
25
|
+
{"name":"genexus_structure","description":"Read or update visual and logical structure of GeneXus objects.","inputSchema":{"type":"object","properties":{"action":{"type":"string","enum":["get_visual","update_visual","get_indexes","get_logic"]},"name":{"type":"string"},"payload":{"type":"object","description":"Update payload for update_visual."},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}},"required":["action","name"]}},
|
|
26
|
+
{"name":"genexus_layout","description":"Native SDK layout/WebForm operations: get_tree, set_property, find_controls, inspect_surface, scan_mutators.","inputSchema":{"type":"object","properties":{"action":{"type":"string","enum":["get_tree","set_property","find_controls","set_properties","inspect_surface","get_preview","scan_mutators","rename_printblock","add_printblock"]},"name":{"type":"string"},"target":{"type":"string","description":"Object name alias for backward compatibility."},"control":{"type":"string"},"propertyName":{"type":"string"},"value":{"type":"string"},"query":{"type":"string"},"changes":{"type":"array","items":{"type":"object","required":["control","propertyName","value"]}},"limit":{"type":"integer"},"currentName":{"type":"string"},"newName":{"type":"string"},"printBlockName":{"type":"string"},"height":{"type":"integer"},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}},"required":["action"]}},
|
|
27
|
+
{"name":"genexus_doc","description":"Generate structured docs (markdown, sequence diagrams, API contracts).","inputSchema":{"type":"object","properties":{"action":{"type":"string","enum":["wiki","visualize","health"]},"target":{"type":"string","description":"Object or domain name."}},"required":["action"]}},
|
|
28
|
+
{"name":"genexus_search_source","description":"Regex/semantic search across Procedure/DataProvider/WebPanel/Transaction source.","inputSchema":{"type":"object","properties":{"callee":{"type":"string","description":"Method/function name (qualified or unqualified)."},"argMatches":{"type":"object","description":"Positional arg index to expected literal text."},"pattern":{"type":"string"},"typeFilter":{"type":"string"},"scope":{"type":"array","items":{"type":"string"}},"maxResults":{"type":"integer"},"caseSensitive":{"type":"boolean"},"includeComments":{"type":"boolean"},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}}}},
|
|
29
|
+
{"name":"genexus_kb","description":"Manage open KBs: list (with PID/RSS/idle), open (acquire Worker), close (release), set_default (persist alias to config.json).","inputSchema":{"type":"object","properties":{"action":{"type":"string","enum":["list","open","close","set_default"]},"alias":{"type":"string","description":"KB alias (for open/close). For open, auto-generated from path basename if omitted."},"path":{"type":"string","description":"Absolute path to the KB (required for action=open if alias is not declared in config)."}},"required":["action"]}},
|
|
30
|
+
{"name":"genexus_sql","description":"SQL for a Transaction/Table (DDL) or a procedure For Each navigation.","inputSchema":{"type":"object","properties":{"action":{"type":"string","enum":["ddl","navigation"]},"name":{"type":"string"},"includeSubordinated":{"type":"boolean","description":"action=ddl only."},"levelNumber":{"type":"integer","description":"action=navigation only."},"type":{"type":"string"},"kb":{"type":"string","description":"Target KB (alias or path). Required when 2+ KBs are open."}},"required":["action","name"]}}
|
|
31
|
+
]
|