@abapify/adt-mcp 0.4.10 → 0.4.13
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 +18 -0
- package/dist/bin/adt-mcp-http.mjs +1 -1
- package/dist/bin/adt-mcp.mjs +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{server-Dj44Rgau.mjs → server-C9J3D7Jf.mjs} +100 -42
- package/dist/server-C9J3D7Jf.mjs.map +1 -0
- package/dist/{server-5bFocUjx.mjs → server-DaI1Fn9E.mjs} +2 -2
- package/dist/{server-5bFocUjx.mjs.map → server-DaI1Fn9E.mjs.map} +1 -1
- package/package.json +15 -15
- package/dist/server-Dj44Rgau.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -540,6 +540,23 @@ SAP-call counts. It never contains source bodies or credentials.
|
|
|
540
540
|
|
|
541
541
|
---
|
|
542
542
|
|
|
543
|
+
#### `flow_index_tr`
|
|
544
|
+
|
|
545
|
+
Persist inventory and unresolved-boundary descriptors for an allowed local
|
|
546
|
+
workspace without reading or materializing source files. Unlike strict
|
|
547
|
+
`flow_checkout_tr`, this tool records inexact components as omissions so a
|
|
548
|
+
later exact checkout can retry them.
|
|
549
|
+
|
|
550
|
+
| Parameter | Type | Description |
|
|
551
|
+
| --------------- | -------- | --------------------------------------------- |
|
|
552
|
+
| `transports` | string[] | Non-empty transport scope |
|
|
553
|
+
| `workspaceRoot` | string | Absolute directory within a server-owned root |
|
|
554
|
+
|
|
555
|
+
The JSON result contains transport/object descriptors and omission diagnostics;
|
|
556
|
+
its source-call count is always zero.
|
|
557
|
+
|
|
558
|
+
---
|
|
559
|
+
|
|
543
560
|
### ABAP Test Cockpit (ATC)
|
|
544
561
|
|
|
545
562
|
#### `atc_run`
|
|
@@ -707,6 +724,7 @@ bunx nx test adt-mcp # run integration tests with Vitest
|
|
|
707
724
|
| `adt cts tr create` | `cts_create_transport` | ✅ |
|
|
708
725
|
| `adt cts tr release` | `cts_release_transport` | ✅ |
|
|
709
726
|
| `adt flow checkout tr` | `flow_checkout_tr` | ✅ |
|
|
727
|
+
| `adt flow index tr` | `flow_index_tr` | ✅ |
|
|
710
728
|
| `adt ls` | — | 🔜 Future |
|
|
711
729
|
| `adt cts search` | — | 🔜 Future |
|
|
712
730
|
| `adt import package` | — | 🔜 Future |
|
package/dist/bin/adt-mcp.mjs
CHANGED
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/lib/session/changeset.ts","../src/lib/session/types.ts","../src/lib/session/registry.ts","../src/lib/session/destination-registry.ts","../src/lib/http/invocation.ts","../src/lib/tools/scope-catalogue.ts","../src/lib/source-capabilities.ts","../src/lib/types.ts","../src/lib/server.ts","../src/lib/tools/index.ts","../src/lib/tools/utils.ts","../src/lib/http/oauth.ts","../src/lib/http/auth.ts","../src/lib/http/multi-system.ts","../src/lib/http/server.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuBY;UAGK;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;UAGe;;EAEf;;EAEA;;EAEA,QAAQ;;EAER,SAAS;;EAET;;;;UCtCe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA,QAAQ;;EAER,OAAO;;;;;;EAMP,YAAY;;;;;EAKZ,aAAa;;;;UCvBE;;;;;;;EAOf,OACE,sBACA,KAAK,KACH,2EAGF,aAAa,gBACZ;EACH,IAAI,uBAAuB;EAC3B,MAAM;;EAEN,OAAO,uBAAuB;EAC9B,QAAQ;;EAER,YAAY;;UAGG;;;;;;EAMf;;EAEA;;iBAKc,sBACd,UAAS,yBACR;;;UCjDc;EACf;EACA;;;UAIe;EACf;EACA;EACA;;;;;;EAMA;;EAEA,WAAW;;UAGI;EACf,QAAQ;IACN;IACA,UAAU;MACR,QAAQ;;UAGG;EACf;EACA;EACA,OAAO;EACP,QAAQ;EACR,OAAO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gBAAgB;;KAGb;;EAEH,eAAe,SAAS,eAAe;;KAG7B,eAAe,kBAAkB;;;;;cAmBhC,0BAA0B,SAAS,eAAe;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/lib/session/changeset.ts","../src/lib/session/types.ts","../src/lib/session/registry.ts","../src/lib/session/destination-registry.ts","../src/lib/http/invocation.ts","../src/lib/tools/scope-catalogue.ts","../src/lib/source-capabilities.ts","../src/lib/types.ts","../src/lib/server.ts","../src/lib/tools/index.ts","../src/lib/tools/utils.ts","../src/lib/http/oauth.ts","../src/lib/http/auth.ts","../src/lib/http/multi-system.ts","../src/lib/http/server.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuBY;UAGK;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;UAGe;;EAEf;;EAEA;;EAEA,QAAQ;;EAER,SAAS;;EAET;;;;UCtCe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA,QAAQ;;EAER,OAAO;;;;;;EAMP,YAAY;;;;;EAKZ,aAAa;;;;UCvBE;;;;;;;EAOf,OACE,sBACA,KAAK,KACH,2EAGF,aAAa,gBACZ;EACH,IAAI,uBAAuB;EAC3B,MAAM;;EAEN,OAAO,uBAAuB;EAC9B,QAAQ;;EAER,YAAY;;UAGG;;;;;;EAMf;;EAEA;;iBAKc,sBACd,UAAS,yBACR;;;UCjDc;EACf;EACA;;;UAIe;EACf;EACA;EACA;;;;;;EAMA;;EAEA,WAAW;;UAGI;EACf,QAAQ;IACN;IACA,UAAU;MACR,QAAQ;;UAGG;EACf;EACA;EACA,OAAO;EACP,QAAQ;EACR,OAAO;EACP,YAAY;EACZ;EACA;;EAEA,aAAa,GAAG,iBAAiB,QAAQ,KAAK,QAAQ;EACtD,SAAS;;UAGM;EACf,OAAO;IACL;IACA;IACA,OAAO;MACL;IACF,QAAQ;IACR,QAAQ;IACR,YAAY;IACZ,SAAS;;;UAII;EACf,IACE,sBACA,sBACC;EACH,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EA;;;;;;EAMA;;;;;;;EAOA,WAAW;;EAEX;;;;;;EAMA;;;;;;EAMA,QAAQ;;;;;;EAMR,qBAAqB;;;;;;EAMrB,mBAAmB,MANE;;;;;EAWrB;;EAEA,cAAc;;EAEd,WAAW;;EAEX;;EAEA;;EAEA;;EAEA;;;;;;EAMA;IACE,qBAAqB;IACrB,kBAAkB;MAChB,WAAW;MACX,aAAa;UACT;IACN,gBAAgB;MACd,WAAW;MACX,aAAa;UACT;IACN,sBAAsB,YADhB;IAIN,gCAAgC,YAHV;IAMtB,yBAAyB,YAHO;IAMhC,sBAAsB,YAHG;;;EAQ3B,OAAO,kCAAkC;;UAG1B;WACN;WACA;WACA;WACA,UAAU;EACnB,SAAS;;;;;;;;;UAUM;WACN,UAAU;EACnB,OAAO,KAAK,KAAK,iBAAiB,KAAK,KAAK,iBAAiB;EAC7D,SAAS;;;;;iBA6aK,qBACd,UAAS,oBACR;;;;;;;;iBAgYmB,gBACpB,UAAS,oBACR,QAAQ"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as operationClassForMcpTool, i as assertMcpToolIsClassified, l as resolveObjectUri, n as registerTools, r as MCP_TOOL_SCOPE_CATALOGUE, s as isMcpToolAllowed, t as createMcpServer } from "./server-
|
|
2
|
-
import { a as parseSafeExecutePolicy, c as createSessionRegistry, i as parseDelegatedAssistantReadPolicy, n as startHttpServer, o as parseScopedAdtInvocationPolicy, r as createMcpInvocationVerifier, s as loadMultiSystemConfig, t as createHttpMcpHandler } from "./server-
|
|
1
|
+
import { c as operationClassForMcpTool, i as assertMcpToolIsClassified, l as resolveObjectUri, n as registerTools, r as MCP_TOOL_SCOPE_CATALOGUE, s as isMcpToolAllowed, t as createMcpServer } from "./server-C9J3D7Jf.mjs";
|
|
2
|
+
import { a as parseSafeExecutePolicy, c as createSessionRegistry, i as parseDelegatedAssistantReadPolicy, n as startHttpServer, o as parseScopedAdtInvocationPolicy, r as createMcpInvocationVerifier, s as loadMultiSystemConfig, t as createHttpMcpHandler } from "./server-DaI1Fn9E.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/session/destination-registry.ts
|
|
5
5
|
const DEFAULT_TTL_MS = 18e5;
|
|
@@ -1935,6 +1935,7 @@ const MCP_TOOL_SCOPE_CATALOGUE = {
|
|
|
1935
1935
|
"changeset_rollback",
|
|
1936
1936
|
"checkin",
|
|
1937
1937
|
"flow_checkout_tr",
|
|
1938
|
+
"flow_index_tr",
|
|
1938
1939
|
"clone_object",
|
|
1939
1940
|
"create_badi",
|
|
1940
1941
|
"create_bdef",
|
|
@@ -6702,8 +6703,8 @@ async function resolveFlowWorkspaceRoot(requested, allowedRoots = [process.cwd()
|
|
|
6702
6703
|
}
|
|
6703
6704
|
|
|
6704
6705
|
//#endregion
|
|
6705
|
-
//#region src/lib/tools/flow-
|
|
6706
|
-
const
|
|
6706
|
+
//#region src/lib/tools/flow-transport-common.ts
|
|
6707
|
+
const DEFAULT_FLOW_MCP_DEPENDENCIES = {
|
|
6707
6708
|
async loadFlowConfig(root, context) {
|
|
6708
6709
|
if (context.flowConfig) return context.flowConfig;
|
|
6709
6710
|
const flowValue = (await loadConfig({ cwd: root })).raw.flow;
|
|
@@ -6717,9 +6718,55 @@ const DEFAULT_DEPENDENCIES = {
|
|
|
6717
6718
|
getFormat: getFormatPlugin,
|
|
6718
6719
|
createService: (client, format) => createAdtFlowService(createAdtFlowDependencies(client, format))
|
|
6719
6720
|
};
|
|
6721
|
+
function safeFlowErrorDetails(error) {
|
|
6722
|
+
if (!error.details) return void 0;
|
|
6723
|
+
const details = Object.fromEntries(Object.entries(error.details).filter(([key]) => key !== "cause" && key !== "rollback"));
|
|
6724
|
+
return Object.keys(details).length > 0 ? details : void 0;
|
|
6725
|
+
}
|
|
6726
|
+
async function runFlowTransportTool({ ctx, dependencies, args, extra, options }) {
|
|
6727
|
+
try {
|
|
6728
|
+
const root = await resolveFlowWorkspaceRoot(args.workspaceRoot, ctx.workspaceRoots);
|
|
6729
|
+
const config = await dependencies.loadFlowConfig(root, ctx);
|
|
6730
|
+
const format = dependencies.getFormat(config.format.id);
|
|
6731
|
+
if (!format) throw new AdtFlowError("format_unsupported", "Configured format is not registered.");
|
|
6732
|
+
if (await resolveFlowWorkspaceRoot(args.workspaceRoot, ctx.workspaceRoots) !== root) throw new AdtFlowError("workspace_root_changed", options.rootChangedMessage);
|
|
6733
|
+
const { client } = await resolveClient(ctx, args, extra);
|
|
6734
|
+
const result = await options.run(dependencies.createService(client, format), {
|
|
6735
|
+
root,
|
|
6736
|
+
transports: args.transports,
|
|
6737
|
+
config
|
|
6738
|
+
});
|
|
6739
|
+
return {
|
|
6740
|
+
content: [{
|
|
6741
|
+
type: "text",
|
|
6742
|
+
text: JSON.stringify(result, null, 2)
|
|
6743
|
+
}],
|
|
6744
|
+
structuredContent: result
|
|
6745
|
+
};
|
|
6746
|
+
} catch (error) {
|
|
6747
|
+
const isFlowError = error instanceof AdtFlowError;
|
|
6748
|
+
const code = isFlowError ? error.code : options.failureCode;
|
|
6749
|
+
const message = isFlowError ? error.message : options.failureMessage;
|
|
6750
|
+
const details = isFlowError ? safeFlowErrorDetails(error) : void 0;
|
|
6751
|
+
return {
|
|
6752
|
+
isError: true,
|
|
6753
|
+
content: [{
|
|
6754
|
+
type: "text",
|
|
6755
|
+
text: JSON.stringify({ error: {
|
|
6756
|
+
code,
|
|
6757
|
+
message,
|
|
6758
|
+
...details ? { details } : {}
|
|
6759
|
+
} })
|
|
6760
|
+
}]
|
|
6761
|
+
};
|
|
6762
|
+
}
|
|
6763
|
+
}
|
|
6764
|
+
|
|
6765
|
+
//#endregion
|
|
6766
|
+
//#region src/lib/tools/flow-checkout-tr.ts
|
|
6720
6767
|
function registerFlowCheckoutTrTool(server, ctx, overrides = {}) {
|
|
6721
6768
|
const dependencies = {
|
|
6722
|
-
...
|
|
6769
|
+
...DEFAULT_FLOW_MCP_DEPENDENCIES,
|
|
6723
6770
|
...overrides
|
|
6724
6771
|
};
|
|
6725
6772
|
server.tool("flow_checkout_tr", "Reconcile a confined workspace to the exact base or head source boundary of one or more transports.", {
|
|
@@ -6732,45 +6779,55 @@ function registerFlowCheckoutTrTool(server, ctx, overrides = {}) {
|
|
|
6732
6779
|
destructiveHint: true,
|
|
6733
6780
|
idempotentHint: true,
|
|
6734
6781
|
openWorldHint: true
|
|
6735
|
-
},
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
mode: args.base ? "base" : "head"
|
|
6747
|
-
|
|
6748
|
-
});
|
|
6749
|
-
return {
|
|
6750
|
-
content: [{
|
|
6751
|
-
type: "text",
|
|
6752
|
-
text: JSON.stringify(result, null, 2)
|
|
6753
|
-
}],
|
|
6754
|
-
structuredContent: result
|
|
6755
|
-
};
|
|
6756
|
-
} catch (error) {
|
|
6757
|
-
const isFlowError = error instanceof AdtFlowError;
|
|
6758
|
-
const code = isFlowError ? error.code : "FLOW_CHECKOUT_FAILED";
|
|
6759
|
-
const message = isFlowError ? error.message : "Could not materialize the requested transport boundary.";
|
|
6760
|
-
const cause = error instanceof Error ? error.message : String(error);
|
|
6761
|
-
return {
|
|
6762
|
-
isError: true,
|
|
6763
|
-
content: [{
|
|
6764
|
-
type: "text",
|
|
6765
|
-
text: JSON.stringify({ error: {
|
|
6766
|
-
code,
|
|
6767
|
-
message,
|
|
6768
|
-
details: isFlowError ? error.details ?? { cause } : { cause }
|
|
6769
|
-
} })
|
|
6770
|
-
}]
|
|
6771
|
-
};
|
|
6782
|
+
}, (args, extra) => runFlowTransportTool({
|
|
6783
|
+
ctx,
|
|
6784
|
+
dependencies,
|
|
6785
|
+
args,
|
|
6786
|
+
extra: extra ?? {},
|
|
6787
|
+
options: {
|
|
6788
|
+
rootChangedMessage: "Workspace root changed between configuration load and checkout.",
|
|
6789
|
+
failureCode: "FLOW_CHECKOUT_FAILED",
|
|
6790
|
+
failureMessage: "Could not materialize the requested transport boundary.",
|
|
6791
|
+
run: (service, input) => service.checkout({
|
|
6792
|
+
...input,
|
|
6793
|
+
mode: args.base ? "base" : "head"
|
|
6794
|
+
})
|
|
6772
6795
|
}
|
|
6773
|
-
});
|
|
6796
|
+
}));
|
|
6797
|
+
}
|
|
6798
|
+
|
|
6799
|
+
//#endregion
|
|
6800
|
+
//#region src/lib/tools/flow-index-tr.ts
|
|
6801
|
+
/**
|
|
6802
|
+
* Persist a transport's inventory and unresolved-boundary descriptors without
|
|
6803
|
+
* materializing any source files into the workspace.
|
|
6804
|
+
*/
|
|
6805
|
+
function registerFlowIndexTrTool(server, ctx, overrides = {}) {
|
|
6806
|
+
const dependencies = {
|
|
6807
|
+
...DEFAULT_FLOW_MCP_DEPENDENCIES,
|
|
6808
|
+
...overrides
|
|
6809
|
+
};
|
|
6810
|
+
server.tool("flow_index_tr", "Persist a confined workspace transport inventory without materializing source files.", {
|
|
6811
|
+
...sessionOrConnectionShape,
|
|
6812
|
+
transports: z.array(z.string().trim().min(1)).min(1),
|
|
6813
|
+
workspaceRoot: z.string().min(1).describe("Absolute target directory within a server-owned root")
|
|
6814
|
+
}, {
|
|
6815
|
+
readOnlyHint: false,
|
|
6816
|
+
destructiveHint: false,
|
|
6817
|
+
idempotentHint: true,
|
|
6818
|
+
openWorldHint: true
|
|
6819
|
+
}, (args, extra) => runFlowTransportTool({
|
|
6820
|
+
ctx,
|
|
6821
|
+
dependencies,
|
|
6822
|
+
args,
|
|
6823
|
+
extra: extra ?? {},
|
|
6824
|
+
options: {
|
|
6825
|
+
rootChangedMessage: "Workspace root changed between configuration load and indexing.",
|
|
6826
|
+
failureCode: "FLOW_INDEX_FAILED",
|
|
6827
|
+
failureMessage: "Could not index the requested transport inventory.",
|
|
6828
|
+
run: (service, input) => service.index(input)
|
|
6829
|
+
}
|
|
6830
|
+
}));
|
|
6774
6831
|
}
|
|
6775
6832
|
|
|
6776
6833
|
//#endregion
|
|
@@ -6881,6 +6938,7 @@ function registerTools(server, ctx) {
|
|
|
6881
6938
|
registerGetSourceVersionTool(server, ctx);
|
|
6882
6939
|
registerCtsTransportSourceManifestTool(server, ctx);
|
|
6883
6940
|
registerFlowCheckoutTrTool(server, ctx);
|
|
6941
|
+
registerFlowIndexTrTool(server, ctx);
|
|
6884
6942
|
}
|
|
6885
6943
|
|
|
6886
6944
|
//#endregion
|
|
@@ -7251,4 +7309,4 @@ function createMcpServer(options) {
|
|
|
7251
7309
|
|
|
7252
7310
|
//#endregion
|
|
7253
7311
|
export { isMcpDestinationKey as a, operationClassForMcpTool as c, assertMcpToolIsClassified as i, resolveObjectUri as l, registerTools as n, isMcpOperationClass as o, MCP_TOOL_SCOPE_CATALOGUE as r, isMcpToolAllowed as s, createMcpServer as t };
|
|
7254
|
-
//# sourceMappingURL=server-
|
|
7312
|
+
//# sourceMappingURL=server-C9J3D7Jf.mjs.map
|