sap-adt-mcp 0.8.41 → 0.8.42
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/package.json +1 -1
- package/src/object-uris.js +7 -2
- package/src/tools/_shared.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sap-adt-mcp",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.42",
|
|
4
4
|
"mcpName": "io.github.yzonur/sap-adt-mcp",
|
|
5
5
|
"description": "MCP server giving Claude live access to SAP systems via ADT (ABAP Development Tools) REST. Read source, search, run syntax checks, and edit ABAP objects from any MCP-compatible client.",
|
|
6
6
|
"type": "module",
|
package/src/object-uris.js
CHANGED
|
@@ -25,7 +25,10 @@ const TYPE_ALIASES = {
|
|
|
25
25
|
fugr: "FUGR",
|
|
26
26
|
table: "TABL",
|
|
27
27
|
tabl: "TABL",
|
|
28
|
-
|
|
28
|
+
// Structures live at their own ADT endpoint (/ddic/structures), NOT
|
|
29
|
+
// /ddic/tables — routing them to TABL sent reads/locks to the wrong URI.
|
|
30
|
+
structure: "STRU",
|
|
31
|
+
stru: "STRU",
|
|
29
32
|
dataelement: "DTEL",
|
|
30
33
|
dtel: "DTEL",
|
|
31
34
|
domain: "DOMA",
|
|
@@ -105,6 +108,8 @@ export function objectUri({ type, name, group }) {
|
|
|
105
108
|
}
|
|
106
109
|
case "TABL":
|
|
107
110
|
return `/sap/bc/adt/ddic/tables/${enc(n)}`;
|
|
111
|
+
case "STRU":
|
|
112
|
+
return `/sap/bc/adt/ddic/structures/${enc(n)}`;
|
|
108
113
|
case "DTEL":
|
|
109
114
|
return `/sap/bc/adt/ddic/dataelements/${enc(n)}`;
|
|
110
115
|
case "DOMA":
|
|
@@ -160,7 +165,7 @@ export function sourceUri({ type, name, group, include }) {
|
|
|
160
165
|
// via the object URI directly, returned as XML. CDS / DCLS / DDLX / BDEF do
|
|
161
166
|
// use /source/main.
|
|
162
167
|
if (t === "DTEL" || t === "DOMA" || t === "MSAG") return base;
|
|
163
|
-
if (t === "TABL") return `${base}/source/main`;
|
|
168
|
+
if (t === "TABL" || t === "STRU") return `${base}/source/main`;
|
|
164
169
|
|
|
165
170
|
return `${base}/source/main`;
|
|
166
171
|
}
|
package/src/tools/_shared.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const OBJECT_TYPE_HINT =
|
|
2
|
-
"Object type — friendly alias (program, class, interface, function, functiongroup, include, table, dataelement, domain, cds) or TADIR code (PROG, CLAS, INTF, FUGR, FUGR/FF, INCL, TABL, DTEL, DOMA, DDLS).";
|
|
2
|
+
"Object type — friendly alias (program, class, interface, function, functiongroup, include, table, structure, dataelement, domain, cds) or TADIR code (PROG, CLAS, INTF, FUGR, FUGR/FF, INCL, TABL, DTEL, DOMA, DDLS).";
|
|
3
3
|
|
|
4
4
|
export const SYSTEM_HINT = "System name. Omit for default.";
|
|
5
5
|
|