@abapify/adt-mcp 0.3.6 → 0.4.5

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.
@@ -0,0 +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;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;EAC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BxB;;EAEf;;EAEA;;EAEA;;;;;;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 ADDED
@@ -0,0 +1,164 @@
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-Dj44Rgau.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-5bFocUjx.mjs";
3
+
4
+ //#region src/lib/session/destination-registry.ts
5
+ const DEFAULT_TTL_MS = 18e5;
6
+ function contextKey(mcpSessionId, destination) {
7
+ return `${mcpSessionId}\u0000${destination}`;
8
+ }
9
+ function createSerialiser() {
10
+ let tail = Promise.resolve();
11
+ return async (operation) => {
12
+ const previous = tail;
13
+ let release = () => void 0;
14
+ tail = new Promise((resolve) => {
15
+ release = resolve;
16
+ });
17
+ await previous;
18
+ try {
19
+ return await operation();
20
+ } finally {
21
+ release();
22
+ }
23
+ };
24
+ }
25
+ function createDestinationContextRegistry(options) {
26
+ const now = options.now ?? Date.now;
27
+ const ttlMs = options.ttlMs ?? DEFAULT_TTL_MS;
28
+ const contexts = /* @__PURE__ */ new Map();
29
+ const pending = /* @__PURE__ */ new Map();
30
+ let sweepTimer;
31
+ let stopped = false;
32
+ const closeOnce = (close) => {
33
+ let closed = false;
34
+ return async () => {
35
+ if (closed) return;
36
+ closed = true;
37
+ await close();
38
+ };
39
+ };
40
+ const buildContextClose = ({ runExclusive, created, lease }) => closeOnce(async () => {
41
+ await runExclusive(async () => {
42
+ try {
43
+ await created.close();
44
+ } finally {
45
+ await lease.release();
46
+ }
47
+ });
48
+ });
49
+ const registry = {
50
+ get(mcpSessionId, destination) {
51
+ return contexts.get(contextKey(mcpSessionId, destination));
52
+ },
53
+ async getOrCreate(mcpSessionId, destination, identity) {
54
+ if (stopped) throw new Error("Destination context registry is shut down");
55
+ const key = contextKey(mcpSessionId, destination);
56
+ const existing = contexts.get(key);
57
+ if (existing) {
58
+ if (existing.lease.expiresAt <= now()) {
59
+ await registry.release(mcpSessionId, destination);
60
+ return await registry.getOrCreate(mcpSessionId, destination, identity);
61
+ }
62
+ existing.lastUsedAt = now();
63
+ return existing;
64
+ }
65
+ const inFlight = pending.get(key);
66
+ if (inFlight) return await inFlight;
67
+ const creating = (async () => {
68
+ const lease = await options.leaseProvider.acquire({
69
+ destination,
70
+ identity
71
+ });
72
+ if (lease.destination !== destination) {
73
+ await lease.release().catch(() => void 0);
74
+ throw new Error("Destination lease did not match the requested destination");
75
+ }
76
+ let created;
77
+ try {
78
+ created = await options.contextFactory.create({
79
+ mcpSessionId,
80
+ destination,
81
+ lease
82
+ });
83
+ } catch (error) {
84
+ await lease.release().catch(() => void 0);
85
+ throw error;
86
+ }
87
+ const timestamp = now();
88
+ const runExclusive = createSerialiser();
89
+ const context = {
90
+ mcpSessionId,
91
+ destination,
92
+ lease,
93
+ client: created.client,
94
+ locks: created.locks ?? /* @__PURE__ */ new Set(),
95
+ ...created.changeset ? { changeset: created.changeset } : {},
96
+ createdAt: timestamp,
97
+ lastUsedAt: timestamp,
98
+ runExclusive,
99
+ close: buildContextClose({
100
+ runExclusive,
101
+ created,
102
+ lease
103
+ })
104
+ };
105
+ if (stopped) {
106
+ await context.close().catch(() => void 0);
107
+ throw new Error("Destination context registry is shut down");
108
+ }
109
+ contexts.set(key, context);
110
+ return context;
111
+ })();
112
+ pending.set(key, creating);
113
+ try {
114
+ return await creating;
115
+ } finally {
116
+ pending.delete(key);
117
+ }
118
+ },
119
+ touch(mcpSessionId, destination) {
120
+ const context = contexts.get(contextKey(mcpSessionId, destination));
121
+ if (context) context.lastUsedAt = now();
122
+ },
123
+ async release(mcpSessionId, destination) {
124
+ const key = contextKey(mcpSessionId, destination);
125
+ const creating = pending.get(key);
126
+ if (creating) await creating.catch(() => void 0);
127
+ const context = contexts.get(key);
128
+ if (!context) return;
129
+ contexts.delete(key);
130
+ try {
131
+ await context.close();
132
+ } catch {}
133
+ },
134
+ async releaseAll(mcpSessionId) {
135
+ const prefix = `${mcpSessionId}\u0000`;
136
+ const destinations = /* @__PURE__ */ new Set([...Array.from(contexts.values()).filter((context) => context.mcpSessionId === mcpSessionId).map((context) => context.destination), ...Array.from(pending.keys()).filter((key) => key.startsWith(prefix)).map((key) => key.slice(prefix.length))]);
137
+ await Promise.allSettled(Array.from(destinations, (destination) => registry.release(mcpSessionId, destination)));
138
+ },
139
+ list() {
140
+ return Array.from(contexts.values());
141
+ },
142
+ async shutdown() {
143
+ stopped = true;
144
+ if (sweepTimer) {
145
+ clearInterval(sweepTimer);
146
+ sweepTimer = void 0;
147
+ }
148
+ await Promise.allSettled(Array.from(new Set(registry.list().map((context) => context.mcpSessionId))).map((sessionId) => registry.releaseAll(sessionId)));
149
+ }
150
+ };
151
+ if (ttlMs > 0) {
152
+ const interval = options.sweepIntervalMs ?? Math.min(Math.floor(ttlMs / 4), 6e4);
153
+ sweepTimer = setInterval(() => {
154
+ const cutoff = now() - ttlMs;
155
+ for (const context of contexts.values()) if (context.lastUsedAt < cutoff) registry.release(context.mcpSessionId, context.destination);
156
+ }, Math.max(1e3, interval));
157
+ sweepTimer.unref?.();
158
+ }
159
+ return registry;
160
+ }
161
+
162
+ //#endregion
163
+ export { MCP_TOOL_SCOPE_CATALOGUE, assertMcpToolIsClassified, createDestinationContextRegistry, createHttpMcpHandler, createMcpInvocationVerifier, createMcpServer, createSessionRegistry, isMcpToolAllowed, loadMultiSystemConfig, operationClassForMcpTool, parseDelegatedAssistantReadPolicy, parseSafeExecutePolicy, parseScopedAdtInvocationPolicy, registerTools, resolveObjectUri, startHttpServer };
164
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/lib/session/destination-registry.ts"],"sourcesContent":["import type { AdtClient } from '@abapify/adt-client';\nimport type { Changeset } from './changeset.js';\n\nexport interface RequestIdentity {\n principal: string;\n agentId?: string;\n}\n\n/** Private lease material is deliberately opaque to MCP and REST handlers. */\nexport interface DestinationLease {\n destination: string;\n expiresAt: number;\n version: number;\n /**\n * Private broker material. It is deliberately opaque and is only passed to\n * the context factory inside this process; MCP/REST handlers never receive\n * or serialise it.\n */\n material: unknown;\n /** Idempotent broker/secret cleanup. */\n release(): Promise<void>;\n}\n\nexport interface DestinationLeaseProvider {\n acquire(input: {\n destination: string;\n identity: RequestIdentity;\n }): Promise<DestinationLease>;\n}\n\nexport interface DestinationContext {\n mcpSessionId: string;\n destination: string;\n lease: DestinationLease;\n client: AdtClient;\n locks: Set<string>;\n changeset?: Changeset;\n createdAt: number;\n lastUsedAt: number;\n /** Serialise mutation work for this context without blocking other keys. */\n runExclusive<T>(operation: () => Promise<T>): Promise<T>;\n close(): Promise<void>;\n}\n\nexport interface DestinationContextFactory {\n create(input: {\n mcpSessionId: string;\n destination: string;\n lease: DestinationLease;\n }): Promise<{\n client: AdtClient;\n locks?: Set<string>;\n changeset?: Changeset;\n close(): Promise<void>;\n }>;\n}\n\nexport interface DestinationContextRegistry {\n get(\n mcpSessionId: string,\n destination: string,\n ): DestinationContext | undefined;\n getOrCreate(\n mcpSessionId: string,\n destination: string,\n identity: RequestIdentity,\n ): Promise<DestinationContext>;\n touch(mcpSessionId: string, destination: string): void;\n release(mcpSessionId: string, destination: string): Promise<void>;\n releaseAll(mcpSessionId: string): Promise<void>;\n list(): DestinationContext[];\n shutdown(): Promise<void>;\n}\n\nexport interface DestinationContextRegistryOptions {\n leaseProvider: DestinationLeaseProvider;\n contextFactory: DestinationContextFactory;\n ttlMs?: number;\n sweepIntervalMs?: number;\n now?: () => number;\n}\n\nconst DEFAULT_TTL_MS = 30 * 60 * 1000;\n\nfunction contextKey(mcpSessionId: string, destination: string): string {\n return `${mcpSessionId}\\u0000${destination}`;\n}\n\nfunction createSerialiser(): DestinationContext['runExclusive'] {\n let tail: Promise<void> = Promise.resolve();\n return async <T>(operation: () => Promise<T>): Promise<T> => {\n const previous = tail;\n let release: () => void = () => undefined;\n tail = new Promise<void>((resolve) => {\n release = resolve;\n });\n await previous;\n try {\n return await operation();\n } finally {\n release();\n }\n };\n}\n\nexport function createDestinationContextRegistry(\n options: DestinationContextRegistryOptions,\n): DestinationContextRegistry {\n const now = options.now ?? Date.now;\n const ttlMs = options.ttlMs ?? DEFAULT_TTL_MS;\n const contexts = new Map<string, DestinationContext>();\n const pending = new Map<string, Promise<DestinationContext>>();\n let sweepTimer: NodeJS.Timeout | undefined;\n let stopped = false;\n\n const closeOnce = (close: () => Promise<void>): (() => Promise<void>) => {\n let closed = false;\n return async () => {\n if (closed) return;\n closed = true;\n await close();\n };\n };\n\n const buildContextClose = ({\n runExclusive,\n created,\n lease,\n }: {\n runExclusive: DestinationContext['runExclusive'];\n created: Awaited<ReturnType<DestinationContextFactory['create']>>;\n lease: DestinationLease;\n }): (() => Promise<void>) =>\n closeOnce(async () => {\n await runExclusive(async () => {\n try {\n await created.close();\n } finally {\n await lease.release();\n }\n });\n });\n\n const registry: DestinationContextRegistry = {\n get(mcpSessionId, destination) {\n return contexts.get(contextKey(mcpSessionId, destination));\n },\n async getOrCreate(mcpSessionId, destination, identity) {\n if (stopped) throw new Error('Destination context registry is shut down');\n const key = contextKey(mcpSessionId, destination);\n const existing = contexts.get(key);\n if (existing) {\n if (existing.lease.expiresAt <= now()) {\n await registry.release(mcpSessionId, destination);\n return await registry.getOrCreate(\n mcpSessionId,\n destination,\n identity,\n );\n }\n existing.lastUsedAt = now();\n return existing;\n }\n const inFlight = pending.get(key);\n if (inFlight) return await inFlight;\n\n const creating = (async () => {\n const lease = await options.leaseProvider.acquire({\n destination,\n identity,\n });\n if (lease.destination !== destination) {\n await lease.release().catch(() => undefined);\n throw new Error(\n 'Destination lease did not match the requested destination',\n );\n }\n let created: Awaited<ReturnType<DestinationContextFactory['create']>>;\n try {\n created = await options.contextFactory.create({\n mcpSessionId,\n destination,\n lease,\n });\n } catch (error) {\n await lease.release().catch(() => undefined);\n throw error;\n }\n const timestamp = now();\n const runExclusive = createSerialiser();\n const context: DestinationContext = {\n mcpSessionId,\n destination,\n lease,\n client: created.client,\n locks: created.locks ?? new Set<string>(),\n ...(created.changeset ? { changeset: created.changeset } : {}),\n createdAt: timestamp,\n lastUsedAt: timestamp,\n runExclusive,\n close: buildContextClose({ runExclusive, created, lease }),\n };\n if (stopped) {\n await context.close().catch(() => undefined);\n throw new Error('Destination context registry is shut down');\n }\n contexts.set(key, context);\n return context;\n })();\n pending.set(key, creating);\n try {\n return await creating;\n } finally {\n pending.delete(key);\n }\n },\n touch(mcpSessionId, destination) {\n const context = contexts.get(contextKey(mcpSessionId, destination));\n if (context) context.lastUsedAt = now();\n },\n async release(mcpSessionId, destination) {\n const key = contextKey(mcpSessionId, destination);\n const creating = pending.get(key);\n if (creating) {\n await creating.catch(() => undefined);\n }\n const context = contexts.get(key);\n if (!context) return;\n contexts.delete(key);\n try {\n await context.close();\n } catch {\n // Teardown is best-effort; other destination contexts must still close.\n }\n },\n async releaseAll(mcpSessionId) {\n const prefix = `${mcpSessionId}\\u0000`;\n const destinations = new Set([\n ...Array.from(contexts.values())\n .filter((context) => context.mcpSessionId === mcpSessionId)\n .map((context) => context.destination),\n ...Array.from(pending.keys())\n .filter((key) => key.startsWith(prefix))\n .map((key) => key.slice(prefix.length)),\n ]);\n await Promise.allSettled(\n Array.from(destinations, (destination) =>\n registry.release(mcpSessionId, destination),\n ),\n );\n },\n list() {\n return Array.from(contexts.values());\n },\n async shutdown() {\n stopped = true;\n if (sweepTimer) {\n clearInterval(sweepTimer);\n sweepTimer = undefined;\n }\n await Promise.allSettled(\n Array.from(\n new Set(registry.list().map((context) => context.mcpSessionId)),\n ).map((sessionId) => registry.releaseAll(sessionId)),\n );\n },\n };\n\n if (ttlMs > 0) {\n const interval =\n options.sweepIntervalMs ?? Math.min(Math.floor(ttlMs / 4), 60_000);\n sweepTimer = setInterval(\n () => {\n const cutoff = now() - ttlMs;\n for (const context of contexts.values()) {\n if (context.lastUsedAt < cutoff) {\n void registry.release(context.mcpSessionId, context.destination);\n }\n }\n },\n Math.max(1_000, interval),\n );\n sweepTimer.unref?.();\n }\n\n return registry;\n}\n"],"mappings":";;;;AAkFA,MAAM,iBAAiB;AAEvB,SAAS,WAAW,cAAsB,aAA6B;CACrE,OAAO,GAAG,aAAa,QAAQ;AACjC;AAEA,SAAS,mBAAuD;CAC9D,IAAI,OAAsB,QAAQ,QAAQ;CAC1C,OAAO,OAAU,cAA4C;EAC3D,MAAM,WAAW;EACjB,IAAI,gBAA4B;EAChC,OAAO,IAAI,SAAe,YAAY;GACpC,UAAU;EACZ,CAAC;EACD,MAAM;EACN,IAAI;GACF,OAAO,MAAM,UAAU;EACzB,UAAU;GACR,QAAQ;EACV;CACF;AACF;AAEA,SAAgB,iCACd,SAC4B;CAC5B,MAAM,MAAM,QAAQ,OAAO,KAAK;CAChC,MAAM,QAAQ,QAAQ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Q,WAAW,GACvC,GAAG,MAAM,KAAK,QAAQ,KAAK,CAAC,CAAC,CAC1B,QAAQ,QAAQ,IAAI,WAAW,MAAM,CAAC,CAAC,CACvC,KAAK,QAAQ,IAAI,MAAM,OAAO,MAAM,CAAC,CAC1C,CAAC;GACD,MAAM,QAAQ,WACZ,MAAM,KAAK,eAAe,gBACxB,SAAS,QAAQ,cAAc,WAAW,CAC5C,CACF;EACF;EACA,OAAO;GACL,OAAO,MAAM,KAAK,SAAS,OAAO,CAAC;EACrC;EACA,MAAM,WAAW;GACf,UAAU;GACV,IAAI,YAAY;IACd,cAAc,UAAU;IACxB,aAAa;GACf;GACA,MAAM,QAAQ,WACZ,MAAM,KACJ,IAAI,IAAI,SAAS,KAAK,CAAC,CAAC,KAAK,YAAY,QAAQ,YAAY,CAAC,CAChE,CAAC,CAAC,KAAK,cAAc,SAAS,WAAW,SAAS,CAAC,CACrD;EACF;CACF;CAEA,IAAI,QAAQ,GAAG;EACb,MAAM,WACJ,QAAQ,mBAAmB,KAAK,IAAI,KAAK,MAAM,QAAQ,CAAC,GAAG,GAAM;EACnE,aAAa,kBACL;GACJ,MAAM,SAAS,IAAI,IAAI;GACvB,KAAK,MAAM,WAAW,SAAS,OAAO,GACpC,IAAI,QAAQ,aAAa,QACvB,AAAK,SAAS,QAAQ,QAAQ,cAAc,QAAQ,WAAW;EAGrE,GACA,KAAK,IAAI,KAAO,QAAQ,CAC1B;EACA,WAAW,QAAQ;CACrB;CAEA,OAAO;AACT"}
@@ -0,0 +1,2 @@
1
+ import { MockAdtServer, createMockAdtServer } from "@abapify/adt-fixtures";
2
+ export { type MockAdtServer, createMockAdtServer };
package/dist/mock.mjs ADDED
@@ -0,0 +1,3 @@
1
+ import { createMockAdtServer } from "@abapify/adt-fixtures";
2
+
3
+ export { createMockAdtServer };