@1mcp/agent 0.34.3 → 0.35.0-beta.1
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/build/admin/assets/admin-console-CX5GzncA.css +1 -0
- package/build/admin/assets/admin-console-CkZ5lBKg.js +61 -0
- package/build/admin/index.html +13 -0
- package/build/commands/admin/admin.d.ts +90 -0
- package/build/commands/admin/admin.d.ts.map +1 -0
- package/build/commands/admin/admin.js +545 -0
- package/build/commands/admin/admin.js.map +1 -0
- package/build/commands/admin/index.d.ts +3 -0
- package/build/commands/admin/index.d.ts.map +1 -0
- package/build/commands/admin/index.js +99 -0
- package/build/commands/admin/index.js.map +1 -0
- package/build/commands/auth/index.d.ts.map +1 -1
- package/build/commands/auth/index.js +24 -5
- package/build/commands/auth/index.js.map +1 -1
- package/build/commands/auth/login.d.ts +1 -0
- package/build/commands/auth/login.d.ts.map +1 -1
- package/build/commands/auth/login.js +6 -10
- package/build/commands/auth/login.js.map +1 -1
- package/build/commands/auth/logout.d.ts +3 -0
- package/build/commands/auth/logout.d.ts.map +1 -1
- package/build/commands/auth/logout.js +19 -32
- package/build/commands/auth/logout.js.map +1 -1
- package/build/commands/auth/runtimeTargetContext.d.ts +25 -0
- package/build/commands/auth/runtimeTargetContext.d.ts.map +1 -0
- package/build/commands/auth/runtimeTargetContext.js +69 -0
- package/build/commands/auth/runtimeTargetContext.js.map +1 -0
- package/build/commands/auth/status.d.ts +1 -0
- package/build/commands/auth/status.d.ts.map +1 -1
- package/build/commands/auth/status.js +10 -33
- package/build/commands/auth/status.js.map +1 -1
- package/build/commands/inspect/index.d.ts.map +1 -1
- package/build/commands/inspect/index.js +4 -0
- package/build/commands/inspect/index.js.map +1 -1
- package/build/commands/inspect/inspect.d.ts +1 -0
- package/build/commands/inspect/inspect.d.ts.map +1 -1
- package/build/commands/inspect/inspect.js +2 -2
- package/build/commands/inspect/inspect.js.map +1 -1
- package/build/commands/instructions/index.d.ts.map +1 -1
- package/build/commands/instructions/index.js +4 -0
- package/build/commands/instructions/index.js.map +1 -1
- package/build/commands/instructions/instructions.d.ts +1 -0
- package/build/commands/instructions/instructions.d.ts.map +1 -1
- package/build/commands/instructions/instructions.js.map +1 -1
- package/build/commands/instructions/instructionsUtils.js +1 -1
- package/build/commands/instructions/instructionsUtils.js.map +1 -1
- package/build/commands/mcp/enable.d.ts +89 -2
- package/build/commands/mcp/enable.d.ts.map +1 -1
- package/build/commands/mcp/enable.js +555 -35
- package/build/commands/mcp/enable.js.map +1 -1
- package/build/commands/proxy/index.d.ts +1 -0
- package/build/commands/proxy/index.d.ts.map +1 -1
- package/build/commands/proxy/index.js +4 -0
- package/build/commands/proxy/index.js.map +1 -1
- package/build/commands/run/index.d.ts.map +1 -1
- package/build/commands/run/index.js +4 -0
- package/build/commands/run/index.js.map +1 -1
- package/build/commands/run/run.d.ts +1 -0
- package/build/commands/run/run.d.ts.map +1 -1
- package/build/commands/run/run.js +2 -2
- package/build/commands/run/run.js.map +1 -1
- package/build/commands/serve/serve.d.ts.map +1 -1
- package/build/commands/serve/serve.js +4 -0
- package/build/commands/serve/serve.js.map +1 -1
- package/build/commands/shared/apiClient.d.ts +5 -1
- package/build/commands/shared/apiClient.d.ts.map +1 -1
- package/build/commands/shared/apiClient.js +17 -9
- package/build/commands/shared/apiClient.js.map +1 -1
- package/build/commands/shared/clientSurfaceAttachment.d.ts +14 -0
- package/build/commands/shared/clientSurfaceAttachment.d.ts.map +1 -1
- package/build/commands/shared/clientSurfaceAttachment.js +51 -9
- package/build/commands/shared/clientSurfaceAttachment.js.map +1 -1
- package/build/commands/shared/commandRunner.d.ts +3 -1
- package/build/commands/shared/commandRunner.d.ts.map +1 -1
- package/build/commands/shared/commandRunner.js +59 -2
- package/build/commands/shared/commandRunner.js.map +1 -1
- package/build/commands/shared/serveTargetResolver.d.ts +14 -1
- package/build/commands/shared/serveTargetResolver.d.ts.map +1 -1
- package/build/commands/shared/serveTargetResolver.js +145 -3
- package/build/commands/shared/serveTargetResolver.js.map +1 -1
- package/build/commands/target/index.d.ts +3 -0
- package/build/commands/target/index.d.ts.map +1 -0
- package/build/commands/target/index.js +171 -0
- package/build/commands/target/index.js.map +1 -0
- package/build/commands/target/target.d.ts +78 -0
- package/build/commands/target/target.d.ts.map +1 -0
- package/build/commands/target/target.js +471 -0
- package/build/commands/target/target.js.map +1 -0
- package/build/constants/mcp.d.ts +1 -1
- package/build/constants/mcp.d.ts.map +1 -1
- package/build/constants/mcp.js +1 -1
- package/build/constants/mcp.js.map +1 -1
- package/build/core/capabilities/asyncLoadingOrchestrator.d.ts +6 -14
- package/build/core/capabilities/asyncLoadingOrchestrator.d.ts.map +1 -1
- package/build/core/capabilities/asyncLoadingOrchestrator.js +24 -17
- package/build/core/capabilities/asyncLoadingOrchestrator.js.map +1 -1
- package/build/core/capabilities/asyncLoadingOrchestratorEvent.d.ts +6 -0
- package/build/core/capabilities/asyncLoadingOrchestratorEvent.d.ts.map +1 -0
- package/build/core/capabilities/asyncLoadingOrchestratorEvent.js +7 -0
- package/build/core/capabilities/asyncLoadingOrchestratorEvent.js.map +1 -0
- package/build/core/capabilities/lazyLoadingOrchestrator.d.ts.map +1 -1
- package/build/core/capabilities/lazyLoadingOrchestrator.js +6 -5
- package/build/core/capabilities/lazyLoadingOrchestrator.js.map +1 -1
- package/build/core/client/clientManager.d.ts +2 -0
- package/build/core/client/clientManager.d.ts.map +1 -1
- package/build/core/client/clientManager.js +27 -24
- package/build/core/client/clientManager.js.map +1 -1
- package/build/core/client/connectedClient.d.ts +7 -0
- package/build/core/client/connectedClient.d.ts.map +1 -0
- package/build/core/client/connectedClient.js +2 -0
- package/build/core/client/connectedClient.js.map +1 -0
- package/build/core/client/connectionHandler.d.ts +2 -1
- package/build/core/client/connectionHandler.d.ts.map +1 -1
- package/build/core/client/connectionHandler.js +2 -5
- package/build/core/client/connectionHandler.js.map +1 -1
- package/build/core/client/transportRecreationState.d.ts +11 -0
- package/build/core/client/transportRecreationState.d.ts.map +1 -0
- package/build/core/client/transportRecreationState.js +2 -0
- package/build/core/client/transportRecreationState.js.map +1 -0
- package/build/core/client/transportRecreator.d.ts +2 -0
- package/build/core/client/transportRecreator.d.ts.map +1 -1
- package/build/core/client/transportRecreator.js +24 -4
- package/build/core/client/transportRecreator.js.map +1 -1
- package/build/core/loading/parallelExecutor.d.ts +5 -5
- package/build/core/loading/parallelExecutor.d.ts.map +1 -1
- package/build/core/loading/parallelExecutor.js +31 -33
- package/build/core/loading/parallelExecutor.js.map +1 -1
- package/build/core/runtime/runtimeIdentityService.d.ts +30 -0
- package/build/core/runtime/runtimeIdentityService.d.ts.map +1 -0
- package/build/core/runtime/runtimeIdentityService.js +63 -0
- package/build/core/runtime/runtimeIdentityService.js.map +1 -0
- package/build/core/server/agentConfig.d.ts +4 -0
- package/build/core/server/agentConfig.d.ts.map +1 -1
- package/build/core/server/agentConfig.js +3 -0
- package/build/core/server/agentConfig.js.map +1 -1
- package/build/core/tools/handlers/serverManagementHandler.d.ts +7 -7
- package/build/core/tools/internal/adapters/helpers/configTransformers.d.ts +2 -2
- package/build/core/tools/internal/schemas/discovery.d.ts +1 -1
- package/build/core/tools/internal/schemas/index.d.ts +13 -13
- package/build/core/tools/internal/schemas/installation.d.ts +7 -7
- package/build/core/tools/internal/schemas/management.d.ts +5 -5
- package/build/core/types/transport.d.ts +24 -3
- package/build/core/types/transport.d.ts.map +1 -1
- package/build/core/types/transport.js +7 -2
- package/build/core/types/transport.js.map +1 -1
- package/build/domains/admin/adminConfiguredServerService.d.ts +275 -0
- package/build/domains/admin/adminConfiguredServerService.d.ts.map +1 -0
- package/build/domains/admin/adminConfiguredServerService.js +1926 -0
- package/build/domains/admin/adminConfiguredServerService.js.map +1 -0
- package/build/domains/admin/adminConnectivityChecker.d.ts +7 -0
- package/build/domains/admin/adminConnectivityChecker.d.ts.map +1 -0
- package/build/domains/admin/adminConnectivityChecker.js +42 -0
- package/build/domains/admin/adminConnectivityChecker.js.map +1 -0
- package/build/domains/admin/adminDomain.d.ts +29 -0
- package/build/domains/admin/adminDomain.d.ts.map +1 -0
- package/build/domains/admin/adminDomain.js +39 -0
- package/build/domains/admin/adminDomain.js.map +1 -0
- package/build/domains/admin/adminIdentityService.d.ts +75 -0
- package/build/domains/admin/adminIdentityService.d.ts.map +1 -0
- package/build/domains/admin/adminIdentityService.js +321 -0
- package/build/domains/admin/adminIdentityService.js.map +1 -0
- package/build/domains/admin/adminOperationService.d.ts +202 -0
- package/build/domains/admin/adminOperationService.d.ts.map +1 -0
- package/build/domains/admin/adminOperationService.js +724 -0
- package/build/domains/admin/adminOperationService.js.map +1 -0
- package/build/domains/admin/adminPresetService.d.ts +140 -0
- package/build/domains/admin/adminPresetService.d.ts.map +1 -0
- package/build/domains/admin/adminPresetService.js +248 -0
- package/build/domains/admin/adminPresetService.js.map +1 -0
- package/build/domains/admin/runtimeScopeAdminLock.d.ts +22 -0
- package/build/domains/admin/runtimeScopeAdminLock.d.ts.map +1 -0
- package/build/domains/admin/runtimeScopeAdminLock.js +121 -0
- package/build/domains/admin/runtimeScopeAdminLock.js.map +1 -0
- package/build/domains/config-change/configChange.d.ts +6 -1
- package/build/domains/config-change/configChange.d.ts.map +1 -1
- package/build/domains/config-change/configChange.js +344 -0
- package/build/domains/config-change/configChange.js.map +1 -1
- package/build/domains/config-change/types.d.ts +18 -3
- package/build/domains/config-change/types.d.ts.map +1 -1
- package/build/domains/preset/manager/presetManager.d.ts +1 -0
- package/build/domains/preset/manager/presetManager.d.ts.map +1 -1
- package/build/domains/preset/manager/presetManager.js +3 -0
- package/build/domains/preset/manager/presetManager.js.map +1 -1
- package/build/domains/preset/tagAuthoring.d.ts +10 -0
- package/build/domains/preset/tagAuthoring.d.ts.map +1 -0
- package/build/domains/preset/tagAuthoring.js +94 -0
- package/build/domains/preset/tagAuthoring.js.map +1 -0
- package/build/domains/runtime-targets/runtimeIdentityVerification.d.ts +51 -0
- package/build/domains/runtime-targets/runtimeIdentityVerification.d.ts.map +1 -0
- package/build/domains/runtime-targets/runtimeIdentityVerification.js +258 -0
- package/build/domains/runtime-targets/runtimeIdentityVerification.js.map +1 -0
- package/build/domains/runtime-targets/runtimeTargetStore.d.ts +222 -0
- package/build/domains/runtime-targets/runtimeTargetStore.d.ts.map +1 -0
- package/build/domains/runtime-targets/runtimeTargetStore.js +1456 -0
- package/build/domains/runtime-targets/runtimeTargetStore.js.map +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +7 -1
- package/build/index.js.map +1 -1
- package/build/transport/http/routes/adminRoutes.d.ts +34 -0
- package/build/transport/http/routes/adminRoutes.d.ts.map +1 -0
- package/build/transport/http/routes/adminRoutes.js +1217 -0
- package/build/transport/http/routes/adminRoutes.js.map +1 -0
- package/build/transport/http/routes/oauthRoutes.d.ts +2 -0
- package/build/transport/http/routes/oauthRoutes.d.ts.map +1 -1
- package/build/transport/http/routes/oauthRoutes.js +5 -185
- package/build/transport/http/routes/oauthRoutes.js.map +1 -1
- package/build/transport/http/routes/runtimeIdentityRoutes.d.ts +7 -0
- package/build/transport/http/routes/runtimeIdentityRoutes.d.ts.map +1 -0
- package/build/transport/http/routes/runtimeIdentityRoutes.js +9 -0
- package/build/transport/http/routes/runtimeIdentityRoutes.js.map +1 -0
- package/build/transport/http/routes/toolRoutes.d.ts.map +1 -1
- package/build/transport/http/routes/toolRoutes.js +1 -7
- package/build/transport/http/routes/toolRoutes.js.map +1 -1
- package/build/transport/http/server.d.ts +3 -0
- package/build/transport/http/server.d.ts.map +1 -1
- package/build/transport/http/server.js +92 -3
- package/build/transport/http/server.js.map +1 -1
- package/build/transport/managedStdioStderr.d.ts +40 -0
- package/build/transport/managedStdioStderr.d.ts.map +1 -0
- package/build/transport/managedStdioStderr.js +198 -0
- package/build/transport/managedStdioStderr.js.map +1 -0
- package/build/transport/managedStdioStderrEvent.d.ts +6 -0
- package/build/transport/managedStdioStderrEvent.d.ts.map +1 -0
- package/build/transport/managedStdioStderrEvent.js +7 -0
- package/build/transport/managedStdioStderrEvent.js.map +1 -0
- package/build/transport/managedStdioStderrMetadata.d.ts +9 -0
- package/build/transport/managedStdioStderrMetadata.d.ts.map +1 -0
- package/build/transport/managedStdioStderrMetadata.js +2 -0
- package/build/transport/managedStdioStderrMetadata.js.map +1 -0
- package/build/transport/managedStdioStderrOptions.d.ts +10 -0
- package/build/transport/managedStdioStderrOptions.d.ts.map +1 -0
- package/build/transport/managedStdioStderrOptions.js +2 -0
- package/build/transport/managedStdioStderrOptions.js.map +1 -0
- package/build/transport/restartableStdioTransport.d.ts +3 -1
- package/build/transport/restartableStdioTransport.d.ts.map +1 -1
- package/build/transport/restartableStdioTransport.js +5 -1
- package/build/transport/restartableStdioTransport.js.map +1 -1
- package/build/transport/transportFactory.d.ts.map +1 -1
- package/build/transport/transportFactory.js +21 -3
- package/build/transport/transportFactory.js.map +1 -1
- package/build/utils/validation/urlDetection.d.ts +13 -2
- package/build/utils/validation/urlDetection.d.ts.map +1 -1
- package/build/utils/validation/urlDetection.js +37 -6
- package/build/utils/validation/urlDetection.js.map +1 -1
- package/package.json +22 -9
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import { discoverServerWithPidFile as defaultDiscoverServerWithPidFile } from '../../utils/validation/urlDetection.js';
|
|
3
|
+
import { fetchRuntimeIdentity as defaultFetchRuntimeIdentity, } from '../../domains/runtime-targets/runtimeIdentityVerification.js';
|
|
4
|
+
import { assertRuntimeTargetConfigDirAllowed, RuntimeTargetStore, validateRuntimeTargetName, } from '../../domains/runtime-targets/runtimeTargetStore.js';
|
|
5
|
+
export class TargetCommandError extends Error {
|
|
6
|
+
code;
|
|
7
|
+
recoveryCommand;
|
|
8
|
+
details;
|
|
9
|
+
constructor(code, message, recoveryCommand, details) {
|
|
10
|
+
super(message);
|
|
11
|
+
this.code = code;
|
|
12
|
+
this.recoveryCommand = recoveryCommand;
|
|
13
|
+
this.details = details;
|
|
14
|
+
this.name = 'TargetCommandError';
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export async function targetAddCommand(options, dependencies = {}) {
|
|
18
|
+
await withTargetErrors(async () => {
|
|
19
|
+
const name = requireOption(options.name, 'target name');
|
|
20
|
+
const url = requireOption(options.url, 'target URL');
|
|
21
|
+
assertRuntimeTargetConfigDirAllowed({
|
|
22
|
+
command: 'target-store',
|
|
23
|
+
targetName: name,
|
|
24
|
+
configDir: options['config-dir'],
|
|
25
|
+
});
|
|
26
|
+
const store = dependencies.store ?? new RuntimeTargetStore();
|
|
27
|
+
const fetchRuntimeIdentity = dependencies.fetchRuntimeIdentity ?? defaultFetchRuntimeIdentity;
|
|
28
|
+
const displayName = options.displayName ?? options['display-name'];
|
|
29
|
+
const caFile = options.caFile ?? options['ca-file'];
|
|
30
|
+
const insecureSkipVerify = Boolean(options.insecureSkipVerify ?? options['insecure-skip-verify']);
|
|
31
|
+
if (options.replace) {
|
|
32
|
+
validateRuntimeTargetName(name);
|
|
33
|
+
const existing = store.inspect(name);
|
|
34
|
+
const previousRuntimeScopeId = existing.observedIdentity?.runtimeScopeId;
|
|
35
|
+
const tlsOptions = targetTlsOptions({ caFile, insecureSkipVerify });
|
|
36
|
+
const observedIdentity = tlsOptions
|
|
37
|
+
? await fetchRuntimeIdentity(url, tlsOptions)
|
|
38
|
+
: await fetchRuntimeIdentity(url);
|
|
39
|
+
const replacement = {
|
|
40
|
+
name,
|
|
41
|
+
url,
|
|
42
|
+
observedIdentity,
|
|
43
|
+
caFile,
|
|
44
|
+
insecureSkipVerify,
|
|
45
|
+
acceptNewIdentity: Boolean(options.acceptNewIdentity ?? options['accept-new-identity']),
|
|
46
|
+
};
|
|
47
|
+
if (displayName !== undefined) {
|
|
48
|
+
replacement.displayName = displayName;
|
|
49
|
+
}
|
|
50
|
+
const target = replaceTargetWithRecovery(store, replacement);
|
|
51
|
+
process.stdout.write(`Replaced runtime target "${target.name}" (${target.url}).\n`);
|
|
52
|
+
if (previousRuntimeScopeId && previousRuntimeScopeId !== observedIdentity.runtimeScopeId) {
|
|
53
|
+
process.stdout.write(`runtimeScopeId: ${previousRuntimeScopeId} -> ${observedIdentity.runtimeScopeId}\n`);
|
|
54
|
+
}
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const target = await store.addVerifiedTarget({
|
|
58
|
+
name,
|
|
59
|
+
url,
|
|
60
|
+
displayName,
|
|
61
|
+
caFile,
|
|
62
|
+
insecureSkipVerify,
|
|
63
|
+
use: Boolean(options.use),
|
|
64
|
+
}, ({ url: preparedUrl, caFile: preparedCaFile, insecureSkipVerify: preparedInsecureSkipVerify }) => {
|
|
65
|
+
const tlsOptions = targetTlsOptions({
|
|
66
|
+
caFile: preparedCaFile,
|
|
67
|
+
insecureSkipVerify: preparedInsecureSkipVerify,
|
|
68
|
+
});
|
|
69
|
+
return tlsOptions ? fetchRuntimeIdentity(preparedUrl, tlsOptions) : fetchRuntimeIdentity(preparedUrl);
|
|
70
|
+
});
|
|
71
|
+
process.stdout.write(`Added runtime target "${target.name}" (${target.url}).\n`);
|
|
72
|
+
if (target.current) {
|
|
73
|
+
process.stdout.write(`Current target: ${target.name}\n`);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
process.stdout.write(`Next: target use ${target.name}\n`);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
export async function targetUseCommand(options, dependencies = {}) {
|
|
81
|
+
await withTargetErrors(async () => {
|
|
82
|
+
const name = requireOption(options.name, 'target name');
|
|
83
|
+
assertRuntimeTargetConfigDirAllowed({
|
|
84
|
+
command: 'target-store',
|
|
85
|
+
targetName: name,
|
|
86
|
+
configDir: options['config-dir'],
|
|
87
|
+
});
|
|
88
|
+
const result = (dependencies.store ?? new RuntimeTargetStore()).useTarget(name, {
|
|
89
|
+
acceptInsecureTls: Boolean(options.acceptInsecureTls ?? options['accept-insecure-tls']),
|
|
90
|
+
});
|
|
91
|
+
if (options.json) {
|
|
92
|
+
writeTargetJsonSuccess({
|
|
93
|
+
operation: 'target.use',
|
|
94
|
+
warnings: result.warnings,
|
|
95
|
+
result,
|
|
96
|
+
});
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
process.stdout.write(`Current target: ${result.target.name}${result.target.synthetic ? ' (synthetic local)' : ''}\n`);
|
|
100
|
+
for (const warning of result.warnings) {
|
|
101
|
+
process.stdout.write(`${warning.code}: ${warning.message}. Run: target verify ${result.target.name}\n`);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
export async function targetCurrentCommand(options, dependencies = {}) {
|
|
106
|
+
await withTargetErrors(async () => {
|
|
107
|
+
assertRuntimeTargetConfigDirAllowed({
|
|
108
|
+
command: 'target-store',
|
|
109
|
+
targetName: 'current',
|
|
110
|
+
configDir: options['config-dir'],
|
|
111
|
+
});
|
|
112
|
+
const target = (dependencies.store ?? new RuntimeTargetStore()).current();
|
|
113
|
+
process.stdout.write(`Current target: ${target.name}${target.synthetic ? ' (synthetic local)' : ''}\n`);
|
|
114
|
+
process.stdout.write(`${formatEntryDetails(target)}`);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
export async function targetListCommand(options, dependencies = {}) {
|
|
118
|
+
await withTargetErrors(async () => {
|
|
119
|
+
assertRuntimeTargetConfigDirAllowed({
|
|
120
|
+
command: 'target-store',
|
|
121
|
+
targetName: 'list',
|
|
122
|
+
configDir: options['config-dir'],
|
|
123
|
+
});
|
|
124
|
+
const targets = (dependencies.store ?? new RuntimeTargetStore()).list();
|
|
125
|
+
process.stdout.write('Runtime targets:\n');
|
|
126
|
+
for (const target of targets) {
|
|
127
|
+
process.stdout.write(`${formatListEntry(target)}\n`);
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
export async function targetInspectCommand(options, dependencies = {}) {
|
|
132
|
+
await withTargetErrors(async () => {
|
|
133
|
+
const name = requireOption(options.name, 'target name');
|
|
134
|
+
assertRuntimeTargetConfigDirAllowed({
|
|
135
|
+
command: 'target-store',
|
|
136
|
+
targetName: name,
|
|
137
|
+
configDir: options['config-dir'],
|
|
138
|
+
});
|
|
139
|
+
const target = (dependencies.store ?? new RuntimeTargetStore()).inspect(name);
|
|
140
|
+
process.stdout.write(`Target: ${target.name}\n`);
|
|
141
|
+
process.stdout.write(`${formatEntryDetails(target)}`);
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
export async function targetExportCommand(options, dependencies = {}) {
|
|
145
|
+
await withTargetErrors(async () => {
|
|
146
|
+
assertRuntimeTargetConfigDirAllowed({
|
|
147
|
+
command: 'target-store',
|
|
148
|
+
targetName: 'export',
|
|
149
|
+
configDir: options['config-dir'],
|
|
150
|
+
});
|
|
151
|
+
const bundle = (dependencies.store ?? new RuntimeTargetStore()).exportTargetBundle();
|
|
152
|
+
const serialized = `${JSON.stringify(bundle, null, 2)}\n`;
|
|
153
|
+
if (options.output) {
|
|
154
|
+
fs.writeFileSync(options.output, serialized, 'utf8');
|
|
155
|
+
process.stdout.write(`Exported runtime target bundle to ${options.output}.\n`);
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
process.stdout.write(serialized);
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
export async function targetImportCommand(options, dependencies = {}) {
|
|
162
|
+
await withTargetErrors(async () => {
|
|
163
|
+
const file = requireOption(options.file, 'target import file');
|
|
164
|
+
assertRuntimeTargetConfigDirAllowed({
|
|
165
|
+
command: 'target-store',
|
|
166
|
+
targetName: 'import',
|
|
167
|
+
configDir: options['config-dir'],
|
|
168
|
+
});
|
|
169
|
+
const bundle = parseImportBundle(await readImportBundle(file));
|
|
170
|
+
const store = dependencies.store ?? new RuntimeTargetStore();
|
|
171
|
+
const dryRun = Boolean(options.dryRun ?? options['dry-run']);
|
|
172
|
+
const result = dryRun ? store.previewImportTargetBundle(bundle) : store.importTargetBundle(bundle);
|
|
173
|
+
if (options.json) {
|
|
174
|
+
writeTargetJsonSuccess({
|
|
175
|
+
operation: 'target.import',
|
|
176
|
+
warnings: result.warnings,
|
|
177
|
+
result: {
|
|
178
|
+
mode: dryRun ? 'dry_run' : 'import',
|
|
179
|
+
additions: result.additions,
|
|
180
|
+
validationFacts: result.validationFacts,
|
|
181
|
+
},
|
|
182
|
+
});
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
process.stdout.write(`${dryRun ? 'Dry run: would import' : 'Imported'} ${result.additions.length} runtime target(s).\n`);
|
|
186
|
+
for (const addition of result.additions) {
|
|
187
|
+
process.stdout.write(`- ${addition.name} ${addition.url}\n`);
|
|
188
|
+
}
|
|
189
|
+
for (const warning of result.warnings) {
|
|
190
|
+
process.stdout.write(`${warning.code}: ${warning.message}\n`);
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
export async function targetDoctorCommand(options, dependencies = {}) {
|
|
195
|
+
await withTargetErrors(async () => {
|
|
196
|
+
assertRuntimeTargetConfigDirAllowed({
|
|
197
|
+
command: 'target-store',
|
|
198
|
+
targetName: 'doctor',
|
|
199
|
+
configDir: options['config-dir'],
|
|
200
|
+
});
|
|
201
|
+
const result = (dependencies.store ?? new RuntimeTargetStore()).doctor({
|
|
202
|
+
fixSecrets: Boolean(options.fixSecrets ?? options['fix-secrets']),
|
|
203
|
+
pruneOrphans: Boolean(options.pruneOrphans ?? options['prune-orphans']),
|
|
204
|
+
});
|
|
205
|
+
if (result.issues.length === 0) {
|
|
206
|
+
process.stdout.write('No runtime target store issues found.\n');
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
process.stdout.write('Issues:\n');
|
|
210
|
+
for (const issue of result.issues) {
|
|
211
|
+
process.stdout.write(formatDoctorLine(issue));
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
if (result.repairs.length > 0) {
|
|
215
|
+
process.stdout.write('Repairs:\n');
|
|
216
|
+
for (const repair of result.repairs) {
|
|
217
|
+
process.stdout.write(formatDoctorLine(repair));
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
export async function targetDeleteCommand(options, dependencies = {}) {
|
|
223
|
+
await withTargetErrors(async () => {
|
|
224
|
+
const name = requireOption(options.name, 'target name');
|
|
225
|
+
assertRuntimeTargetConfigDirAllowed({
|
|
226
|
+
command: 'target-store',
|
|
227
|
+
targetName: name,
|
|
228
|
+
configDir: options['config-dir'],
|
|
229
|
+
});
|
|
230
|
+
(dependencies.store ?? new RuntimeTargetStore()).deleteTarget(name, { force: Boolean(options.force) });
|
|
231
|
+
process.stdout.write(`Deleted runtime target "${name}".\n`);
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
export async function targetRenameCommand(options, dependencies = {}) {
|
|
235
|
+
await withTargetErrors(async () => {
|
|
236
|
+
const oldName = requireOption(options.oldName ?? options.old, 'source target name');
|
|
237
|
+
const newName = requireOption(options.newName ?? options.new, 'destination target name');
|
|
238
|
+
assertRuntimeTargetConfigDirAllowed({
|
|
239
|
+
command: 'target-store',
|
|
240
|
+
targetName: oldName,
|
|
241
|
+
configDir: options['config-dir'],
|
|
242
|
+
});
|
|
243
|
+
const target = (dependencies.store ?? new RuntimeTargetStore()).renameTarget(oldName, newName);
|
|
244
|
+
process.stdout.write(`Renamed runtime target "${oldName}" to "${target.name}".\n`);
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
export async function targetVerifyCommand(options, dependencies = {}) {
|
|
248
|
+
await withTargetErrors(async () => {
|
|
249
|
+
const name = requireOption(options.name, 'target name');
|
|
250
|
+
assertRuntimeTargetConfigDirAllowed({ command: 'verify', targetName: name, configDir: options['config-dir'] });
|
|
251
|
+
const fetchRuntimeIdentity = dependencies.fetchRuntimeIdentity ?? defaultFetchRuntimeIdentity;
|
|
252
|
+
if (name === 'local') {
|
|
253
|
+
const discoverServerWithPidFile = dependencies.discoverServerWithPidFile ?? defaultDiscoverServerWithPidFile;
|
|
254
|
+
const discovered = await discoverServerWithPidFile(options['config-dir']);
|
|
255
|
+
const observedIdentity = await fetchRuntimeIdentity(discovered.url);
|
|
256
|
+
if (options.json) {
|
|
257
|
+
writeTargetJsonSuccess({
|
|
258
|
+
operation: 'target.verify',
|
|
259
|
+
warnings: [],
|
|
260
|
+
result: {
|
|
261
|
+
target: {
|
|
262
|
+
name: 'local',
|
|
263
|
+
kind: 'local',
|
|
264
|
+
synthetic: true,
|
|
265
|
+
url: discovered.url,
|
|
266
|
+
},
|
|
267
|
+
observedIdentity,
|
|
268
|
+
},
|
|
269
|
+
});
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
process.stdout.write(`Verified local runtime (${discovered.url}).\n`);
|
|
273
|
+
process.stdout.write(`${formatIdentityDetails(observedIdentity)}`);
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
const store = dependencies.store ?? new RuntimeTargetStore();
|
|
277
|
+
const target = store.requireInsecureTlsConfirmation({
|
|
278
|
+
name,
|
|
279
|
+
operation: 'verify',
|
|
280
|
+
acceptInsecureTls: Boolean(options.acceptInsecureTls ?? options['accept-insecure-tls']),
|
|
281
|
+
});
|
|
282
|
+
if (target.kind !== 'remote' || !target.url) {
|
|
283
|
+
throw new TargetCommandError('target_local_reserved', 'The built-in local target has no stored metadata');
|
|
284
|
+
}
|
|
285
|
+
const tlsOptions = targetTlsOptions({
|
|
286
|
+
caFile: target.caFile,
|
|
287
|
+
insecureSkipVerify: target.insecureSkipVerify,
|
|
288
|
+
});
|
|
289
|
+
const observedIdentity = tlsOptions
|
|
290
|
+
? await fetchRuntimeIdentity(target.url, tlsOptions)
|
|
291
|
+
: await fetchRuntimeIdentity(target.url);
|
|
292
|
+
const result = updateObservedIdentityWithRecovery(store, name, target.url, observedIdentity);
|
|
293
|
+
if (options.json) {
|
|
294
|
+
writeTargetJsonSuccess({
|
|
295
|
+
operation: 'target.verify',
|
|
296
|
+
warnings: result.warnings,
|
|
297
|
+
result,
|
|
298
|
+
});
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
process.stdout.write(`Verified runtime target "${name}" (${target.url}).\n`);
|
|
302
|
+
for (const warning of result.warnings) {
|
|
303
|
+
process.stdout.write(`${warning.code}: ${warning.message}\n`);
|
|
304
|
+
}
|
|
305
|
+
process.stdout.write(`${formatIdentityDetails(result.target.observedIdentity)}`);
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
async function withTargetErrors(fn) {
|
|
309
|
+
try {
|
|
310
|
+
await fn();
|
|
311
|
+
}
|
|
312
|
+
catch (error) {
|
|
313
|
+
throw normalizeTargetError(error);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
function replaceTargetWithRecovery(store, input) {
|
|
317
|
+
try {
|
|
318
|
+
return store.replaceVerifiedTarget(input);
|
|
319
|
+
}
|
|
320
|
+
catch (error) {
|
|
321
|
+
if (isCodedError(error) && error.code === 'identity_runtime_scope_mismatch') {
|
|
322
|
+
throw new TargetCommandError(error.code, error.message, `1mcp target add ${input.name} ${input.url} --replace --accept-new-identity`);
|
|
323
|
+
}
|
|
324
|
+
throw error;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
function updateObservedIdentityWithRecovery(store, name, url, observedIdentity) {
|
|
328
|
+
try {
|
|
329
|
+
return store.updateObservedIdentityMetadata(name, observedIdentity);
|
|
330
|
+
}
|
|
331
|
+
catch (error) {
|
|
332
|
+
if (isCodedError(error) && error.code === 'identity_runtime_scope_mismatch') {
|
|
333
|
+
throw new TargetCommandError(error.code, error.message, `1mcp target add ${name} ${url} --replace --accept-new-identity`);
|
|
334
|
+
}
|
|
335
|
+
throw error;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
function normalizeTargetError(error) {
|
|
339
|
+
if (error instanceof TargetCommandError) {
|
|
340
|
+
return error;
|
|
341
|
+
}
|
|
342
|
+
if (isCodedError(error)) {
|
|
343
|
+
return new TargetCommandError(error.code, error.message, 'recoveryCommand' in error && typeof error.recoveryCommand === 'string' ? error.recoveryCommand : undefined, 'details' in error ? error.details : undefined);
|
|
344
|
+
}
|
|
345
|
+
return error instanceof Error ? error : new Error(String(error));
|
|
346
|
+
}
|
|
347
|
+
function targetTlsOptions(tls) {
|
|
348
|
+
return tls.caFile || tls.insecureSkipVerify
|
|
349
|
+
? {
|
|
350
|
+
...(tls.caFile ? { caFile: tls.caFile } : {}),
|
|
351
|
+
...(tls.insecureSkipVerify ? { insecureSkipVerify: true } : {}),
|
|
352
|
+
}
|
|
353
|
+
: undefined;
|
|
354
|
+
}
|
|
355
|
+
function isCodedError(error) {
|
|
356
|
+
return (typeof error === 'object' &&
|
|
357
|
+
error !== null &&
|
|
358
|
+
'code' in error &&
|
|
359
|
+
typeof error.code === 'string' &&
|
|
360
|
+
'message' in error &&
|
|
361
|
+
typeof error.message === 'string');
|
|
362
|
+
}
|
|
363
|
+
function writeTargetJsonSuccess(input) {
|
|
364
|
+
process.stdout.write(`${JSON.stringify({
|
|
365
|
+
ok: true,
|
|
366
|
+
cliProtocolVersion: '1',
|
|
367
|
+
requestId: createCliRequestId(),
|
|
368
|
+
operation: input.operation,
|
|
369
|
+
warnings: input.warnings.map((warning) => ({
|
|
370
|
+
code: warning.code,
|
|
371
|
+
message: warning.message,
|
|
372
|
+
...(warning.targetName ? { details: { targetName: warning.targetName } } : {}),
|
|
373
|
+
})),
|
|
374
|
+
result: input.result,
|
|
375
|
+
})}\n`);
|
|
376
|
+
}
|
|
377
|
+
function createCliRequestId() {
|
|
378
|
+
return `cli_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}`;
|
|
379
|
+
}
|
|
380
|
+
function requireOption(value, label) {
|
|
381
|
+
if (!value) {
|
|
382
|
+
throw new TargetCommandError('target_argument_missing', `Missing ${label}`);
|
|
383
|
+
}
|
|
384
|
+
return value;
|
|
385
|
+
}
|
|
386
|
+
async function readImportBundle(file) {
|
|
387
|
+
if (file !== '-') {
|
|
388
|
+
return fs.readFileSync(file, 'utf8');
|
|
389
|
+
}
|
|
390
|
+
const chunks = [];
|
|
391
|
+
for await (const chunk of process.stdin) {
|
|
392
|
+
chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(String(chunk)));
|
|
393
|
+
}
|
|
394
|
+
return Buffer.concat(chunks).toString('utf8');
|
|
395
|
+
}
|
|
396
|
+
function parseImportBundle(input) {
|
|
397
|
+
try {
|
|
398
|
+
return JSON.parse(input);
|
|
399
|
+
}
|
|
400
|
+
catch {
|
|
401
|
+
throw new TargetCommandError('target_import_validation_failed', 'Runtime target import bundle failed validation', undefined, {
|
|
402
|
+
validationFacts: [
|
|
403
|
+
{
|
|
404
|
+
code: 'invalid_bundle_schema',
|
|
405
|
+
message: 'Runtime target import file must contain valid JSON',
|
|
406
|
+
},
|
|
407
|
+
],
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
function formatDoctorLine(entry) {
|
|
412
|
+
const targetName = entry.targetName ? ` target=${entry.targetName}` : '';
|
|
413
|
+
return `- ${entry.code}${targetName}: ${entry.message}\n`;
|
|
414
|
+
}
|
|
415
|
+
function formatListEntry(target) {
|
|
416
|
+
const marker = target.current ? '*' : ' ';
|
|
417
|
+
const url = target.url ? ` url=${target.url}` : '';
|
|
418
|
+
const identity = target.observedIdentity
|
|
419
|
+
? ` runtimeScopeId=${target.observedIdentity.runtimeScopeId} runtimeVersion=${target.observedIdentity.runtimeVersion}`
|
|
420
|
+
: '';
|
|
421
|
+
const verified = target.lastVerifiedAt ? ` lastVerifiedAt=${target.lastVerifiedAt}` : '';
|
|
422
|
+
return `${marker} ${target.name} kind=${target.kind}${target.synthetic ? ' synthetic=true' : ''}${url}${identity}${verified} verification=${target.verificationStatus} credentials=${formatCredentials(target)}`;
|
|
423
|
+
}
|
|
424
|
+
function formatEntryDetails(target) {
|
|
425
|
+
const lines = [
|
|
426
|
+
`kind: ${target.kind}`,
|
|
427
|
+
`current: ${target.current ? 'yes' : 'no'}`,
|
|
428
|
+
`synthetic: ${target.synthetic ? 'yes' : 'no'}`,
|
|
429
|
+
];
|
|
430
|
+
if (target.displayName) {
|
|
431
|
+
lines.push(`displayName: ${target.displayName}`);
|
|
432
|
+
}
|
|
433
|
+
if (target.url) {
|
|
434
|
+
lines.push(`url: ${target.url}`);
|
|
435
|
+
}
|
|
436
|
+
if (target.observedIdentity) {
|
|
437
|
+
lines.push(...formatIdentityDetails(target.observedIdentity).trimEnd().split('\n'));
|
|
438
|
+
}
|
|
439
|
+
if (target.lastVerifiedAt) {
|
|
440
|
+
lines.push(`lastVerifiedAt: ${target.lastVerifiedAt}`);
|
|
441
|
+
}
|
|
442
|
+
lines.push(`verification: ${target.verificationStatus}`);
|
|
443
|
+
lines.push(`credentials: ${formatCredentials(target)}`);
|
|
444
|
+
return `${lines.join('\n')}\n`;
|
|
445
|
+
}
|
|
446
|
+
function formatIdentityDetails(identity) {
|
|
447
|
+
if (!identity) {
|
|
448
|
+
return '';
|
|
449
|
+
}
|
|
450
|
+
const lines = [
|
|
451
|
+
`identityProtocolVersion: ${identity.identityProtocolVersion}`,
|
|
452
|
+
`runtimeScopeId: ${identity.runtimeScopeId}`,
|
|
453
|
+
`externalUrl: ${identity.externalUrl}`,
|
|
454
|
+
`runtimeVersion: ${identity.runtimeVersion}`,
|
|
455
|
+
];
|
|
456
|
+
if (identity.serverTime) {
|
|
457
|
+
lines.push(`serverTime: ${identity.serverTime}`);
|
|
458
|
+
}
|
|
459
|
+
return `${lines.join('\n')}\n`;
|
|
460
|
+
}
|
|
461
|
+
function formatCredentials(target) {
|
|
462
|
+
const labels = [];
|
|
463
|
+
if (target.credentialReferences.oauth) {
|
|
464
|
+
labels.push('oauth');
|
|
465
|
+
}
|
|
466
|
+
if (target.credentialReferences.adminSession) {
|
|
467
|
+
labels.push('admin');
|
|
468
|
+
}
|
|
469
|
+
return labels.length > 0 ? labels.join(',') : 'none';
|
|
470
|
+
}
|
|
471
|
+
//# sourceMappingURL=target.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"target.js","sourceRoot":"","sources":["../../../src/commands/target/target.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E;KAC7C,CAAC;IACF,IAAI,QAAQ,CAAC,UAAU,EAAE,CAAC;QACxB,KAAK,CAAC,IAAI,CAAC,eAAe,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;IACnD,CAAC;IACD,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AACjC,CAAC;AAED,SAAS,iBAAiB,CAAC,MAA8B;IACvD,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,IAAI,MAAM,CAAC,oBAAoB,CAAC,KAAK,EAAE,CAAC;QACtC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC;IACD,IAAI,MAAM,CAAC,oBAAoB,CAAC,YAAY,EAAE,CAAC;QAC7C,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AACvD,CAAC"}
|
package/build/constants/mcp.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare const MCP_CONFIG_FILE = "mcp.json";
|
|
|
6
6
|
export declare const APP_CONFIG_FILE = "config.toml";
|
|
7
7
|
export declare const MCP_INSTRUCTIONS_TEMPLATE_FILE = "instructions-template.md";
|
|
8
8
|
export declare const MCP_SERVER_NAME = "1mcp";
|
|
9
|
-
export declare const MCP_SERVER_VERSION = "0.
|
|
9
|
+
export declare const MCP_SERVER_VERSION = "0.35.0-beta.1";
|
|
10
10
|
export declare const MCP_URI_SEPARATOR = "_1mcp_";
|
|
11
11
|
/**
|
|
12
12
|
* Default maximum number of MCP servers to load concurrently
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/constants/mcp.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAG5F,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAC7C,eAAO,MAAM,8BAA8B,6BAA6B,CAAC;AACzE,eAAO,MAAM,eAAe,SAAS,CAAC;AACtC,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/constants/mcp.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAG5F,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAC7C,eAAO,MAAM,8BAA8B,6BAA6B,CAAC;AACzE,eAAO,MAAM,eAAe,SAAS,CAAC;AACtC,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAElD,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAE9C,eAAO,MAAM,uBAAuB,EAAE,kBAYrC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,kBAMrC,CAAC"}
|
package/build/constants/mcp.js
CHANGED
|
@@ -3,7 +3,7 @@ export const MCP_CONFIG_FILE = 'mcp.json';
|
|
|
3
3
|
export const APP_CONFIG_FILE = 'config.toml';
|
|
4
4
|
export const MCP_INSTRUCTIONS_TEMPLATE_FILE = 'instructions-template.md';
|
|
5
5
|
export const MCP_SERVER_NAME = '1mcp';
|
|
6
|
-
export const MCP_SERVER_VERSION = '0.
|
|
6
|
+
export const MCP_SERVER_VERSION = '0.35.0-beta.1';
|
|
7
7
|
export const MCP_URI_SEPARATOR = '_1mcp_';
|
|
8
8
|
/**
|
|
9
9
|
* Default maximum number of MCP servers to load concurrently
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../src/constants/mcp.ts"],"names":[],"mappings":"AAKA,gBAAgB;AAChB,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,CAAC;AAC1C,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC;AAC7C,MAAM,CAAC,MAAM,8BAA8B,GAAG,0BAA0B,CAAC;AACzE,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC;AACtC,MAAM,CAAC,MAAM,kBAAkB,GAAG,
|
|
1
|
+
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../src/constants/mcp.ts"],"names":[],"mappings":"AAKA,gBAAgB;AAChB,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,CAAC;AAC1C,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC;AAC7C,MAAM,CAAC,MAAM,8BAA8B,GAAG,0BAA0B,CAAC;AACzE,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC;AACtC,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAElD,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC;AAE1C;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC;AAE9C,MAAM,CAAC,MAAM,uBAAuB,GAAuB;IACzD,WAAW,EAAE,EAAE;IACf,SAAS,EAAE;QACT,WAAW,EAAE,IAAI;KAClB;IACD,KAAK,EAAE;QACL,WAAW,EAAE,IAAI;KAClB;IACD,OAAO,EAAE;QACP,WAAW,EAAE,IAAI;KAClB;IACD,OAAO,EAAE,EAAE;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAuB;IACzD,KAAK,EAAE;QACL,WAAW,EAAE,KAAK;KACnB;IACD,QAAQ,EAAE,EAAE;IACZ,WAAW,EAAE,EAAE;CAChB,CAAC"}
|
|
@@ -3,24 +3,16 @@ import { McpLoadingManager } from '../../core/loading/mcpLoadingManager.js';
|
|
|
3
3
|
import { NotificationManager } from '../../core/notifications/notificationManager.js';
|
|
4
4
|
import { ServerManager } from '../../core/server/serverManager.js';
|
|
5
5
|
import { InboundConnection, OutboundConnections } from '../../core/types/index.js';
|
|
6
|
-
import { CapabilityAggregator
|
|
6
|
+
import { CapabilityAggregator } from './capabilityAggregator.js';
|
|
7
7
|
import type { CapabilityRefreshResult } from './capabilityCatalog.js';
|
|
8
|
-
/**
|
|
9
|
-
* Events emitted by AsyncLoadingOrchestrator
|
|
10
|
-
*/
|
|
11
|
-
export interface AsyncLoadingOrchestratorEvents {
|
|
12
|
-
'orchestrator-ready': () => void;
|
|
13
|
-
'server-capabilities-updated': (serverName: string, changes: CapabilityChanges) => void;
|
|
14
|
-
'notifications-sent': (types: string[]) => void;
|
|
15
|
-
}
|
|
16
8
|
/**
|
|
17
9
|
* Orchestrates the async loading system by coordinating CapabilityAggregator,
|
|
18
10
|
* NotificationManager, and LoadingStateTracker events.
|
|
19
11
|
*
|
|
20
12
|
* This class handles the complete flow:
|
|
21
|
-
* 1. MCP server
|
|
22
|
-
* 2. Capability aggregation
|
|
23
|
-
* 3. Notifications are sent to clients about
|
|
13
|
+
* 1. Every MCP server reaches a terminal loading state
|
|
14
|
+
* 2. Capability aggregation publishes one completed snapshot
|
|
15
|
+
* 3. Notifications are sent to clients about the completed snapshot
|
|
24
16
|
*
|
|
25
17
|
* @example
|
|
26
18
|
* ```typescript
|
|
@@ -58,9 +50,9 @@ export declare class AsyncLoadingOrchestrator extends EventEmitter {
|
|
|
58
50
|
*/
|
|
59
51
|
private setupNotificationEvents;
|
|
60
52
|
/**
|
|
61
|
-
*
|
|
53
|
+
* Publish capabilities after every server reaches a terminal loading state.
|
|
62
54
|
*/
|
|
63
|
-
private
|
|
55
|
+
private handleLoadingComplete;
|
|
64
56
|
/**
|
|
65
57
|
* Handle capability changes by sending notifications
|
|
66
58
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncLoadingOrchestrator.d.ts","sourceRoot":"","sources":["../../../src/core/capabilities/asyncLoadingOrchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,
|
|
1
|
+
{"version":3,"file":"asyncLoadingOrchestrator.d.ts","sourceRoot":"","sources":["../../../src/core/capabilities/asyncLoadingOrchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,EAAmB,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AAErF,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAIlF,OAAO,EAAE,oBAAoB,EAAqB,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAGtE;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,wBAAyB,SAAQ,YAAY;IACxD,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,mBAAmB,CAAoC;IAC/D,OAAO,CAAC,cAAc,CAAoB;IAC1C,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,WAAW,CAAqB;IACxC,OAAO,CAAC,aAAa,CAAkB;IACvC,OAAO,CAAC,cAAc,CAAkB;gBAGtC,mBAAmB,EAAE,mBAAmB,EACxC,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,iBAAiB;IAanC;;OAEG;IACU,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IA0BxC;;OAEG;IACI,uBAAuB,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,IAAI;IAwB1E;;OAEG;IACH,OAAO,CAAC,eAAe;IA8BvB;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAoB/B;;OAEG;YACW,qBAAqB;IAmBnC;;OAEG;IACH,OAAO,CAAC,uB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