@1mcp/agent 0.38.0 → 0.38.2
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-OAuthServicesWorkspace-CzXIIHM0.js → admin-OAuthServicesWorkspace-BnEBXa_2.js} +1 -1
- package/build/admin/assets/{admin-console-Mv3xmdoU.js → admin-console-5rVJC_G2.js} +3 -3
- package/build/admin/index.html +1 -1
- package/build/auth/oauthAuthorizationFlow.d.ts +4 -0
- package/build/auth/oauthAuthorizationFlow.d.ts.map +1 -1
- package/build/auth/oauthAuthorizationFlow.js +61 -4
- package/build/auth/oauthAuthorizationFlow.js.map +1 -1
- package/build/auth/storage/authCodeRepository.d.ts +1 -1
- package/build/auth/storage/authRequestRepository.d.ts +1 -1
- package/build/auth/storage/clientSessionRepository.d.ts +1 -1
- package/build/auth/storage/fileStorageService.d.ts +1 -1
- package/build/auth/storage/refreshTokenFamilyRepository.d.ts +1 -1
- package/build/auth/storage/refreshTokenFamilyRepository.js +1 -1
- package/build/auth/storage/sessionRepository.d.ts +1 -1
- package/build/auth/storage/sessionRepository.js +1 -1
- package/build/commands/admin/admin.d.ts +2 -2
- package/build/commands/admin/admin.js +3 -3
- package/build/commands/admin/index.js +1 -1
- package/build/commands/app/consolidate.js +1 -1
- package/build/commands/auth/index.js +1 -1
- package/build/commands/auth/login.js +1 -1
- package/build/commands/auth/runtimeTargetContext.js +1 -1
- package/build/commands/auth/status.js +1 -1
- package/build/commands/inspect/index.js +1 -1
- package/build/commands/inspect/inspect.d.ts +2 -2
- package/build/commands/inspect/inspect.d.ts.map +1 -1
- package/build/commands/inspect/inspect.js +37 -7
- package/build/commands/inspect/inspect.js.map +1 -1
- package/build/commands/inspect/inspectUtils.d.ts +1 -1
- package/build/commands/inspect/inspectUtils.d.ts.map +1 -1
- package/build/commands/inspect/inspectUtils.js +12 -3
- package/build/commands/inspect/inspectUtils.js.map +1 -1
- package/build/commands/instructions/index.js +1 -1
- package/build/commands/instructions/instructions.js +4 -4
- package/build/commands/mcp/enable.d.ts +1 -1
- package/build/commands/mcp/enable.js +2 -2
- package/build/commands/mcp/restart.d.ts +1 -1
- package/build/commands/mcp/restart.js +2 -2
- package/build/commands/mcp/status.d.ts +1 -1
- package/build/commands/mcp/status.js +2 -2
- package/build/commands/mcp/tokens.js +1 -1
- package/build/commands/mcp/tools.d.ts +1 -1
- package/build/commands/mcp/tools.js +1 -1
- package/build/commands/mcp/utils/mcpServerConfig.d.ts +1 -1
- package/build/commands/mcp/utils/mcpServerConfig.js +2 -2
- package/build/commands/preset/edit.js +1 -1
- package/build/commands/preset/interactive.js +1 -1
- package/build/commands/preset/show.js +1 -1
- package/build/commands/preset/test.js +1 -1
- package/build/commands/proxy/proxy.js +1 -1
- package/build/commands/run/index.js +1 -1
- package/build/commands/run/run.d.ts +3 -3
- package/build/commands/run/run.d.ts.map +1 -1
- package/build/commands/run/run.js +14 -8
- package/build/commands/run/run.js.map +1 -1
- package/build/commands/run/upstreamEofGuidance.d.ts +3 -0
- package/build/commands/run/upstreamEofGuidance.d.ts.map +1 -0
- package/build/commands/run/upstreamEofGuidance.js +19 -0
- package/build/commands/run/upstreamEofGuidance.js.map +1 -0
- package/build/commands/serve/legacyRuntimeStop.d.ts +16 -0
- package/build/commands/serve/legacyRuntimeStop.d.ts.map +1 -0
- package/build/commands/serve/legacyRuntimeStop.js +143 -0
- package/build/commands/serve/legacyRuntimeStop.js.map +1 -0
- package/build/commands/serve/serveBackground.d.ts +3 -0
- package/build/commands/serve/serveBackground.d.ts.map +1 -1
- package/build/commands/serve/serveBackground.js +19 -5
- package/build/commands/serve/serveBackground.js.map +1 -1
- package/build/commands/serve/serveStatus.d.ts +2 -1
- package/build/commands/serve/serveStatus.d.ts.map +1 -1
- package/build/commands/serve/serveStatus.js +36 -12
- package/build/commands/serve/serveStatus.js.map +1 -1
- package/build/commands/serve/serveStop.d.ts +2 -1
- package/build/commands/serve/serveStop.d.ts.map +1 -1
- package/build/commands/serve/serveStop.js +137 -20
- package/build/commands/serve/serveStop.js.map +1 -1
- package/build/commands/shared/clientSurfaceAttachment.d.ts +3 -3
- package/build/commands/shared/clientSurfaceAttachment.js +4 -4
- package/build/commands/shared/inspectApiSchemas.d.ts +13 -0
- package/build/commands/shared/inspectApiSchemas.d.ts.map +1 -1
- package/build/commands/shared/inspectApiSchemas.js +18 -0
- package/build/commands/shared/inspectApiSchemas.js.map +1 -1
- package/build/commands/shared/serveTargetResolver.d.ts +1 -1
- package/build/commands/shared/serveTargetResolver.js +1 -1
- package/build/commands/target/index.js +1 -1
- package/build/commands/wait/index.js +1 -1
- package/build/commands/wait/wait.d.ts +2 -2
- package/build/commands/wait/wait.js +4 -4
- package/build/config/configLoader.js +1 -1
- package/build/config/configManager.js +3 -3
- package/build/config/configuredServerTargets.js +1 -1
- package/build/config/mcpConfigManager.js +3 -3
- package/build/constants/mcp.d.ts +1 -1
- package/build/constants/mcp.js +1 -1
- package/build/constants.d.ts +1 -1
- package/build/constants.js +1 -1
- package/build/core/capabilities/asyncLoadingOrchestrator.d.ts +4 -4
- package/build/core/capabilities/asyncLoadingOrchestrator.js +3 -3
- package/build/core/capabilities/capabilityAggregator.d.ts +1 -1
- package/build/core/capabilities/capabilityAggregator.js +1 -1
- package/build/core/capabilities/capabilityCatalog.d.ts +2 -2
- package/build/core/capabilities/capabilityCatalog.js +5 -5
- package/build/core/capabilities/capabilityManager.d.ts +1 -1
- package/build/core/capabilities/capabilityManager.js +2 -2
- package/build/core/capabilities/capabilityPagination.d.ts +1 -1
- package/build/core/capabilities/configuredToolSnapshot.d.ts +1 -1
- package/build/core/capabilities/configuredToolSnapshot.js +1 -1
- package/build/core/capabilities/inspectPagination.d.ts +16 -0
- package/build/core/capabilities/inspectPagination.d.ts.map +1 -0
- package/build/core/capabilities/inspectPagination.js +41 -0
- package/build/core/capabilities/inspectPagination.js.map +1 -0
- package/build/core/capabilities/internal/discoveryTools.js +1 -1
- package/build/core/capabilities/internal/installationTools.js +1 -1
- package/build/core/capabilities/internal/managementTools.js +1 -1
- package/build/core/capabilities/internalCapabilitiesProvider.d.ts +2 -2
- package/build/core/capabilities/internalCapabilitiesProvider.js +8 -8
- package/build/core/capabilities/lazyLoadingOrchestrator.d.ts +3 -3
- package/build/core/capabilities/lazyLoadingOrchestrator.js +3 -3
- package/build/core/capabilities/metaToolProvider.d.ts +2 -2
- package/build/core/capabilities/runtimeCapabilityCatalog.d.ts +1 -1
- package/build/core/capabilities/runtimeCapabilityCatalog.js +4 -4
- package/build/core/capabilities/toolRegistry.d.ts +1 -1
- package/build/core/client/postAuthOAuthRecovery.d.ts +1 -1
- package/build/core/client/postAuthOAuthRecovery.js +3 -3
- package/build/core/client/renderableOutboundConnection.d.ts +2 -2
- package/build/core/configChangeHandler.js +6 -6
- package/build/core/filtering/clientFiltering.d.ts +1 -1
- package/build/core/filtering/filterCache.d.ts +1 -1
- package/build/core/filtering/filterSelection.d.ts +1 -1
- package/build/core/filtering/filteringService.d.ts +1 -1
- package/build/core/filtering/filteringService.js +1 -1
- package/build/core/filtering/templateFilteringService.d.ts +2 -2
- package/build/core/filtering/templateIndex.d.ts +1 -1
- package/build/core/flags/flagManager.js +1 -1
- package/build/core/instructions/effectiveServerInstructions.d.ts +1 -1
- package/build/core/instructions/instructionAggregator.d.ts +3 -3
- package/build/core/instructions/instructionAggregator.js +1 -1
- package/build/core/loading/loadingStateTracker.d.ts.map +1 -1
- package/build/core/loading/loadingStateTracker.js +5 -1
- package/build/core/loading/loadingStateTracker.js.map +1 -1
- package/build/core/loading/mcpLoadingManager.d.ts +2 -2
- package/build/core/notifications/notificationManager.d.ts +2 -2
- package/build/core/notifications/notificationManager.js +2 -2
- package/build/core/protocol/requestHandlerUtils.d.ts +4 -4
- package/build/core/protocol/requestHandlerUtils.js +9 -9
- package/build/core/server/adapters/ExternalServerAdapter.d.ts +2 -2
- package/build/core/server/adapters/ServerRegistry.d.ts +3 -3
- package/build/core/server/adapters/TemplateServerAdapter.d.ts +3 -3
- package/build/core/server/adapters/types.d.ts +3 -3
- package/build/core/server/adapters/types.js +1 -1
- package/build/core/server/agentConfig.d.ts +3 -3
- package/build/core/server/agentConfig.js +2 -2
- package/build/core/server/backendStdioSupervisor.d.ts.map +1 -1
- package/build/core/server/backendStdioSupervisor.js +8 -5
- package/build/core/server/backendStdioSupervisor.js.map +1 -1
- package/build/core/server/backgroundLaunchConfig.d.ts +1 -1
- package/build/core/server/backgroundLaunchConfig.js +1 -1
- package/build/core/server/backgroundRuntimeSupervisor.d.ts +2 -2
- package/build/core/server/backgroundRuntimeSupervisor.d.ts.map +1 -1
- package/build/core/server/backgroundRuntimeSupervisor.js +12 -4
- package/build/core/server/backgroundRuntimeSupervisor.js.map +1 -1
- package/build/core/server/backgroundRuntimeSupervisorState.d.ts +3 -0
- package/build/core/server/backgroundRuntimeSupervisorState.d.ts.map +1 -1
- package/build/core/server/backgroundRuntimeSupervisorState.js +3 -0
- package/build/core/server/backgroundRuntimeSupervisorState.js.map +1 -1
- package/build/core/server/connectionResolver.d.ts +1 -1
- package/build/core/server/disabledTools.d.ts +1 -1
- package/build/core/server/legacyRuntimeRecovery.d.ts +14 -0
- package/build/core/server/legacyRuntimeRecovery.d.ts.map +1 -0
- package/build/core/server/legacyRuntimeRecovery.js +209 -0
- package/build/core/server/legacyRuntimeRecovery.js.map +1 -0
- package/build/core/server/pidFileManager.d.ts +6 -2
- package/build/core/server/pidFileManager.d.ts.map +1 -1
- package/build/core/server/pidFileManager.js +13 -4
- package/build/core/server/pidFileManager.js.map +1 -1
- package/build/core/server/processEvidence.d.ts +23 -0
- package/build/core/server/processEvidence.d.ts.map +1 -0
- package/build/core/server/processEvidence.js +114 -0
- package/build/core/server/processEvidence.js.map +1 -0
- package/build/core/server/processIdentity.d.ts +27 -0
- package/build/core/server/processIdentity.d.ts.map +1 -0
- package/build/core/server/processIdentity.js +101 -0
- package/build/core/server/processIdentity.js.map +1 -0
- package/build/core/server/runtimeFileLock.d.ts +6 -0
- package/build/core/server/runtimeFileLock.d.ts.map +1 -0
- package/build/core/server/runtimeFileLock.js +34 -0
- package/build/core/server/runtimeFileLock.js.map +1 -0
- package/build/core/server/runtimeLifecycle.d.ts +5 -5
- package/build/core/server/runtimeLifecycle.d.ts.map +1 -1
- package/build/core/server/runtimeLifecycle.js +19 -3
- package/build/core/server/runtimeLifecycle.js.map +1 -1
- package/build/core/server/runtimeScopeOwnership.d.ts +3 -0
- package/build/core/server/runtimeScopeOwnership.d.ts.map +1 -1
- package/build/core/server/runtimeScopeOwnership.js +95 -28
- package/build/core/server/runtimeScopeOwnership.js.map +1 -1
- package/build/core/server/templateConfigurationManager.d.ts +1 -1
- package/build/core/server/toolDescriptionOverrides.d.ts +1 -1
- package/build/core/tools/handlers/serverManagementHandler.d.ts +4 -4
- package/build/core/tools/handlers/serverManagementHandler.js +3 -3
- package/build/core/tools/internal/adapters/helpers/configTransformers.d.ts +1 -1
- package/build/core/tools/internal/adapters/management/managementAdapter.d.ts +1 -1
- package/build/core/tools/internal/adapters/management/managementAdapter.js +2 -2
- package/build/core/tools/internal/adapters/management/toolHandlers.js +1 -1
- package/build/core/tools/internal/adapters/management/types.d.ts +1 -1
- package/build/core/tools/internal/adapters/management/validation.d.ts +1 -1
- package/build/core/tools/internal/adapters/validation/configValidation.d.ts +1 -1
- package/build/core/tools/internal/discoveryHandlers.js +1 -1
- package/build/core/tools/internal/installationHandlers.js +2 -2
- package/build/core/tools/internal/managementHandlers.js +2 -2
- package/build/core/types/server.d.ts +2 -2
- package/build/domains/admin/adminConfiguredServerService.d.ts +1 -1
- package/build/domains/admin/adminConfiguredServerService.js +2 -2
- package/build/domains/admin/adminDomain.d.ts +2 -2
- package/build/domains/admin/adminDomain.js +1 -1
- package/build/domains/admin/adminInstructionPreviewRuntime.d.ts +1 -1
- package/build/domains/admin/adminInstructionPreviewRuntime.js +1 -1
- package/build/domains/admin/adminInstructionTemplateService.d.ts +3 -3
- package/build/domains/admin/adminOAuthService.d.ts +1 -0
- package/build/domains/admin/adminOAuthService.d.ts.map +1 -1
- package/build/domains/admin/adminOAuthService.js +8 -2
- package/build/domains/admin/adminOAuthService.js.map +1 -1
- package/build/domains/admin/adminPresetService.d.ts +2 -2
- package/build/domains/admin/adminPresetService.js +2 -2
- package/build/domains/admin/configuredToolInventory.js +1 -1
- package/build/domains/admin/runtimeConfiguredToolInspectionService.js +1 -1
- package/build/domains/discovery/appDiscovery.js +2 -2
- package/build/domains/installation/metadata/defaultsProvider.d.ts +1 -1
- package/build/domains/installation/metadata/metadataExtractor.d.ts +1 -1
- package/build/domains/installation/serverInstallationSourceResolution.d.ts +1 -1
- package/build/domains/installation/serverInstallationTypes.d.ts +2 -2
- package/build/domains/installation/serverInstallationWorkflow.js +2 -2
- package/build/domains/instruction-template/instructionTemplateManager.d.ts +1 -1
- package/build/domains/instruction-template/instructionTemplateManager.js +1 -1
- package/build/domains/preset/manager/presetManager.d.ts +1 -1
- package/build/domains/preset/manager/presetManager.js +3 -3
- package/build/domains/preset/manager/presetManagerCleanup.d.ts +2 -2
- package/build/domains/preset/manager/presetStorage.d.ts +1 -1
- package/build/domains/preset/manager/presetTesting.d.ts +1 -1
- package/build/domains/preset/manager/presetTesting.js +2 -2
- package/build/domains/preset/manager/presetValidation.d.ts +1 -1
- package/build/domains/preset/manager/presetValidation.js +1 -1
- package/build/domains/preset/parsers/tagQueryEvaluator.d.ts +1 -1
- package/build/domains/preset/parsers/tagQueryParser.d.ts +1 -1
- package/build/domains/registry/formatters/commonFormatters.d.ts +1 -1
- package/build/domains/registry/formatters/serverDetailFormatter.d.ts +1 -1
- package/build/domains/registry/formatters/serverDetailFormatter.js +1 -1
- package/build/domains/registry/formatters/versionsFormatter.d.ts +1 -1
- package/build/domains/registry/searchFiltering.d.ts +1 -1
- package/build/domains/registry/searchFiltering.js +1 -1
- package/build/domains/server-management/types.d.ts +1 -1
- package/build/logger/configureGlobalLogger.js +1 -1
- package/build/sdk/legacy/auth/sdkOAuthClientProvider.d.ts +2 -2
- package/build/sdk/legacy/auth/sdkOAuthServerProvider.d.ts +4 -4
- package/build/sdk/legacy/auth/sdkOAuthServerProvider.js +1 -1
- package/build/sdk/legacy/client/runtime/clientManager.d.ts +1 -1
- package/build/sdk/legacy/client/runtime/legacyGatewayClientAdapter.d.ts +2 -2
- package/build/sdk/legacy/client/runtime/legacyGatewayClientAdapter.js +1 -1
- package/build/sdk/legacy/client/runtime/legacyOutboundConnection.js +1 -1
- package/build/sdk/legacy/client/runtime/legacySdkClientAdapter.d.ts +2 -2
- package/build/sdk/legacy/client/runtime/legacySdkClientAdapter.js +4 -4
- package/build/sdk/legacy/client/runtime/legacyTransport.d.ts +1 -1
- package/build/sdk/legacy/client/runtime/modernSdkClientAdapter.d.ts +1 -1
- package/build/sdk/legacy/client/runtime/modernSdkClientAdapter.js +2 -2
- package/build/sdk/legacy/client/runtime/outboundRequestParams.d.ts +1 -1
- package/build/sdk/legacy/client/runtime/serveClient.d.ts +2 -2
- package/build/sdk/legacy/client/runtime/serveClient.d.ts.map +1 -1
- package/build/sdk/legacy/client/runtime/serveClient.js +4 -4
- package/build/sdk/legacy/client/runtime/serveClient.js.map +1 -1
- package/build/sdk/legacy/commands/serve.js +1 -1
- package/build/sdk/legacy/server/protocol/notificationHandlers.d.ts +1 -1
- package/build/sdk/legacy/server/protocol/notificationHandlers.js +5 -5
- package/build/sdk/legacy/server/protocol/promptRequestHandlers.d.ts +1 -1
- package/build/sdk/legacy/server/protocol/promptRequestHandlers.js +3 -3
- package/build/sdk/legacy/server/protocol/requestHandlers.d.ts +1 -1
- package/build/sdk/legacy/server/protocol/requestHandlers.js +3 -3
- package/build/sdk/legacy/server/protocol/resourceRequestHandlers.d.ts +1 -1
- package/build/sdk/legacy/server/protocol/resourceRequestHandlers.js +4 -4
- package/build/sdk/legacy/server/protocol/toolRequestHandlers.d.ts +1 -1
- package/build/sdk/legacy/server/protocol/toolRequestHandlers.js +3 -3
- package/build/sdk/legacy/server/runtime/clientInstancePoolTypes.d.ts +2 -2
- package/build/sdk/legacy/server/runtime/connectionManager.d.ts +1 -1
- package/build/sdk/legacy/server/runtime/connectionManager.js +2 -2
- package/build/sdk/legacy/server/runtime/legacyInboundConnection.d.ts +2 -2
- package/build/sdk/legacy/server/runtime/legacySdkServerAdapter.d.ts +3 -3
- package/build/sdk/legacy/server/runtime/legacySdkServerAdapter.js +2 -2
- package/build/sdk/legacy/server/runtime/mcpLoggingEnhancer.d.ts +1 -1
- package/build/sdk/legacy/server/runtime/mcpServerLifecycleManager.d.ts +2 -2
- package/build/sdk/legacy/server/runtime/mcpServerLifecycleManager.js +1 -1
- package/build/sdk/legacy/server/runtime/requestContextPreparation.d.ts +1 -1
- package/build/sdk/legacy/server/runtime/serverManager.d.ts +1 -1
- package/build/sdk/legacy/server/runtime/serverManager.js +1 -1
- package/build/sdk/legacy/server/runtime/templateServerCleanup.d.ts +1 -1
- package/build/sdk/legacy/server/runtime/templateServerManager.d.ts +1 -1
- package/build/sdk/legacy/server/runtime/templateServerManager.js +1 -1
- package/build/sdk/legacy/shared/capabilityListCapture.d.ts +1 -1
- package/build/sdk/legacy/shared/capabilityListCapture.js +1 -1
- package/build/sdk/legacy/transport/http/loggingSseTransport.d.ts +2 -2
- package/build/sdk/legacy/transport/http/loggingSseTransport.js +1 -1
- package/build/sdk/legacy/transport/http/middlewares/scopeAuthMiddleware.d.ts +1 -1
- package/build/sdk/legacy/transport/http/middlewares/scopeAuthMiddleware.js +1 -1
- package/build/sdk/legacy/transport/http/modernInboundLegacyBridge.js +2 -2
- package/build/sdk/legacy/transport/http/restorableStreamableTransport.d.ts +1 -1
- package/build/sdk/legacy/transport/http/restorableStreamableTransport.js +1 -1
- package/build/sdk/legacy/transport/http/routes/sseRoutes.js +2 -2
- package/build/sdk/legacy/transport/http/server.js +2 -2
- package/build/sdk/legacy/transport/http/streamableSessionLifecycle.d.ts +1 -1
- package/build/sdk/legacy/transport/http/streamableSessionLifecycle.js +1 -1
- package/build/sdk/legacy/transport/restartableStdioTransport.d.ts +3 -3
- package/build/sdk/legacy/transport/restartableStdioTransport.js +1 -1
- package/build/sdk/legacy/transport/stdioProxyTransport.js +2 -2
- package/build/sdk/legacy/transport/transportFactory.js +3 -3
- package/build/sdk/legacy/validation/CustomJsonSchemaValidator.d.ts +1 -1
- package/build/transport/http/middlewares/httpRequestLogger.js +1 -1
- package/build/transport/http/middlewares/tagsExtractor.js +1 -1
- package/build/transport/http/routes/adminRoutes.d.ts +3 -1
- package/build/transport/http/routes/adminRoutes.d.ts.map +1 -1
- package/build/transport/http/routes/adminRoutes.js +36 -1
- package/build/transport/http/routes/adminRoutes.js.map +1 -1
- package/build/transport/http/routes/apiRoutes.js +1 -1
- package/build/transport/http/routes/inspectHelpers.js +1 -1
- package/build/transport/http/routes/inspectRequestContext.js +2 -2
- package/build/transport/http/routes/inspectRoutes.d.ts.map +1 -1
- package/build/transport/http/routes/inspectRoutes.js +57 -59
- package/build/transport/http/routes/inspectRoutes.js.map +1 -1
- package/build/transport/http/routes/modernHttpRoutes.js +1 -1
- package/build/transport/http/routes/oauthRoutes.d.ts.map +1 -1
- package/build/transport/http/routes/oauthRoutes.js +20 -4
- package/build/transport/http/routes/oauthRoutes.js.map +1 -1
- package/build/transport/http/routes/streamableHttpRoutes.d.ts +2 -2
- package/build/transport/http/routes/streamableHttpRoutes.js +7 -7
- package/build/transport/http/routes/toolRoutes.js +1 -1
- package/build/transport/http/storage/streamableSessionRepository.js +1 -1
- package/build/transport/http/utils/templateContextAuthority.js +1 -1
- package/build/utils/validation/urlDetection.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { setupClientToServerNotifications, setupServerToClientNotifications, } from '
|
|
2
|
-
import { registerRequestHandlers } from '
|
|
1
|
+
import { setupClientToServerNotifications, setupServerToClientNotifications, } from '../protocol/notificationHandlers.js';
|
|
2
|
+
import { registerRequestHandlers } from '../protocol/requestHandlers.js';
|
|
3
3
|
import logger from '../../logger/logger.js';
|
|
4
4
|
/**
|
|
5
5
|
* Collects capabilities from all clients and registers them with the server
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OutboundConnection, OutboundConnections } from '
|
|
1
|
+
import type { OutboundConnection, OutboundConnections } from '../types/index.js';
|
|
2
2
|
/** MCP result metadata key used to describe a partial aggregate walk. */
|
|
3
3
|
export declare const CAPABILITY_PAGINATION_META_KEY = "app.1mcp/capability-pagination";
|
|
4
4
|
/** Capability collections supported by aggregate pagination. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type OutboundConnection, type OutboundConnections } from '
|
|
1
|
+
import { type OutboundConnection, type OutboundConnections } from '../types/index.js';
|
|
2
2
|
import type { ListToolsResult, Tool } from '../../sdk/contracts/index.js';
|
|
3
3
|
export type ConfiguredToolSnapshotSource = 'mcpServers' | 'mcpTemplates';
|
|
4
4
|
export interface ConfiguredToolTargetSnapshot {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class InspectCursorError extends Error {
|
|
2
|
+
constructor();
|
|
3
|
+
}
|
|
4
|
+
/** Page a freshly authorized, complete inventory; cursors never carry tool data. */
|
|
5
|
+
export declare function paginateInspectTools<T>(tools: T[], options: {
|
|
6
|
+
limit: number;
|
|
7
|
+
all?: boolean;
|
|
8
|
+
cursor?: string;
|
|
9
|
+
scope: unknown;
|
|
10
|
+
}): {
|
|
11
|
+
tools: T[];
|
|
12
|
+
totalTools: number;
|
|
13
|
+
hasMore: boolean;
|
|
14
|
+
nextCursor?: string;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=inspectPagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspectPagination.d.ts","sourceRoot":"","sources":["../../../src/core/capabilities/inspectPagination.ts"],"names":[],"mappings":"AAUA,qBAAa,kBAAmB,SAAQ,KAAK;;CAI5C;AAED,oFAAoF;AACpF,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,KAAK,EAAE,CAAC,EAAE,EACV,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GACzE;IAAE,KAAK,EAAE,CAAC,EAAE,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAwB3E"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
const cursorSchema = z.object({
|
|
4
|
+
version: z.literal(1),
|
|
5
|
+
inventory: z.string(),
|
|
6
|
+
offset: z.number().int().positive().safe(),
|
|
7
|
+
});
|
|
8
|
+
export class InspectCursorError extends Error {
|
|
9
|
+
constructor() {
|
|
10
|
+
super('Invalid or stale inspect cursor. Restart inspection without --cursor.');
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
/** Page a freshly authorized, complete inventory; cursors never carry tool data. */
|
|
14
|
+
export function paginateInspectTools(tools, options) {
|
|
15
|
+
const inventory = createHash('sha256')
|
|
16
|
+
.update(JSON.stringify([options.scope, tools]))
|
|
17
|
+
.digest('hex');
|
|
18
|
+
let offset = 0;
|
|
19
|
+
if (options.cursor !== undefined) {
|
|
20
|
+
try {
|
|
21
|
+
const cursor = cursorSchema.parse(JSON.parse(Buffer.from(options.cursor, 'base64url').toString('utf8')));
|
|
22
|
+
if (cursor.inventory !== inventory || cursor.offset >= tools.length)
|
|
23
|
+
throw new InspectCursorError();
|
|
24
|
+
offset = cursor.offset;
|
|
25
|
+
}
|
|
26
|
+
catch {
|
|
27
|
+
throw new InspectCursorError();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
const end = options.all ? tools.length : Math.min(offset + options.limit, tools.length);
|
|
31
|
+
const hasMore = end < tools.length;
|
|
32
|
+
return {
|
|
33
|
+
tools: tools.slice(offset, end),
|
|
34
|
+
totalTools: tools.length,
|
|
35
|
+
hasMore,
|
|
36
|
+
nextCursor: hasMore
|
|
37
|
+
? Buffer.from(JSON.stringify({ version: 1, inventory, offset: end })).toString('base64url')
|
|
38
|
+
: undefined,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=inspectPagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspectPagination.js","sourceRoot":"","sources":["../../../src/core/capabilities/inspectPagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE;CAC3C,CAAC,CAAC;AAEH,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAC3C;QACE,KAAK,CAAC,uEAAuE,CAAC,CAAC;IACjF,CAAC;CACF;AAED,oFAAoF;AACpF,MAAM,UAAU,oBAAoB,CAClC,KAAU,EACV,OAA0E;IAE1E,MAAM,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC;SACnC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;SAC9C,MAAM,CAAC,KAAK,CAAC,CAAC;IACjB,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;QACjC,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YACzG,IAAI,MAAM,CAAC,SAAS,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM;gBAAE,MAAM,IAAI,kBAAkB,EAAE,CAAC;YACpG,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QACzB,CAAC;QAAC,MAAM,CAAC;YACP,MAAM,IAAI,kBAAkB,EAAE,CAAC;QACjC,CAAC;IACH,CAAC;IACD,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxF,MAAM,OAAO,GAAG,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC;IACnC,OAAO;QACL,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,GAAG,CAAC;QAC/B,UAAU,EAAE,KAAK,CAAC,MAAM;QACxB,OAAO;QACP,UAAU,EAAE,OAAO;YACjB,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC;YAC3F,CAAC,CAAC,SAAS;KACd,CAAC;AACJ,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This module contains factory functions for creating discovery-related internal MCP tools
|
|
5
5
|
* including search and registry management tools.
|
|
6
6
|
*/
|
|
7
|
-
import { McpInfoOutputSchema, McpInfoToolSchema, McpRegistryInfoOutputSchema, McpRegistryInfoSchema, McpRegistryListOutputSchema, McpRegistryListSchema, McpRegistryStatusOutputSchema, McpRegistryStatusSchema, McpSearchOutputSchema, McpSearchToolSchema, } from '
|
|
7
|
+
import { McpInfoOutputSchema, McpInfoToolSchema, McpRegistryInfoOutputSchema, McpRegistryInfoSchema, McpRegistryListOutputSchema, McpRegistryListSchema, McpRegistryStatusOutputSchema, McpRegistryStatusSchema, McpSearchOutputSchema, McpSearchToolSchema, } from '../../tools/internal/schemas/index.js';
|
|
8
8
|
import { zodToInputSchema, zodToOutputSchema } from '../../../utils/schemaUtils.js';
|
|
9
9
|
/**
|
|
10
10
|
* Create search tool definition
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This module contains factory functions for creating installation-related internal MCP tools
|
|
5
5
|
* including install, uninstall, and update operations.
|
|
6
6
|
*/
|
|
7
|
-
import { McpInstallOutputSchema, McpInstallToolSchema, McpUninstallOutputSchema, McpUninstallToolSchema, McpUpdateOutputSchema, McpUpdateToolSchema, } from '
|
|
7
|
+
import { McpInstallOutputSchema, McpInstallToolSchema, McpUninstallOutputSchema, McpUninstallToolSchema, McpUpdateOutputSchema, McpUpdateToolSchema, } from '../../tools/internal/schemas/index.js';
|
|
8
8
|
import { zodToInputSchema, zodToOutputSchema } from '../../../utils/schemaUtils.js';
|
|
9
9
|
/**
|
|
10
10
|
* Create install tool definition
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This module contains factory functions for creating management-related internal MCP tools
|
|
5
5
|
* including enable/disable, list, status, edit, and reload operations.
|
|
6
6
|
*/
|
|
7
|
-
import { McpDisableOutputSchema, McpDisableToolSchema, McpEditOutputSchema, McpEditToolSchema, McpEnableOutputSchema, McpEnableToolSchema, McpListOutputSchema, McpListToolSchema, McpReloadOutputSchema, McpReloadToolSchema, McpStatusOutputSchema, McpStatusToolSchema, } from '
|
|
7
|
+
import { McpDisableOutputSchema, McpDisableToolSchema, McpEditOutputSchema, McpEditToolSchema, McpEnableOutputSchema, McpEnableToolSchema, McpListOutputSchema, McpListToolSchema, McpReloadOutputSchema, McpReloadToolSchema, McpStatusOutputSchema, McpStatusToolSchema, } from '../../tools/internal/schemas/index.js';
|
|
8
8
|
import { zodToInputSchema, zodToOutputSchema } from '../../../utils/schemaUtils.js';
|
|
9
9
|
/**
|
|
10
10
|
* Create enable tool definition
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* It acts as a special internal capabilities provider that exposes management capabilities.
|
|
6
6
|
*/
|
|
7
7
|
import { EventEmitter } from 'events';
|
|
8
|
-
import type { CapabilityVisibility } from '
|
|
9
|
-
import { LazyLoadingOrchestrator } from '
|
|
8
|
+
import type { CapabilityVisibility } from './capabilityVisibility.js';
|
|
9
|
+
import { LazyLoadingOrchestrator } from './lazyLoadingOrchestrator.js';
|
|
10
10
|
import type { Prompt, Resource, Tool } from '../../sdk/contracts/index.js';
|
|
11
11
|
/**
|
|
12
12
|
* Internal capabilities provider that serves internal management tools
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* It acts as a special internal capabilities provider that exposes management capabilities.
|
|
6
6
|
*/
|
|
7
7
|
import { EventEmitter } from 'events';
|
|
8
|
-
import { createInfoTool, createRegistryInfoTool, createRegistryListTool, createRegistryStatusTool, createSearchTool, } from '
|
|
9
|
-
import { createInstallTool, createUninstallTool, createUpdateTool, } from '
|
|
10
|
-
import { createToolInvokeTool, createToolListTool, createToolSchemaTool, } from '
|
|
11
|
-
import { createDisableTool, createEditTool, createEnableTool, createListTool, createReloadTool, createStatusTool, } from '
|
|
12
|
-
import { FlagManager } from '
|
|
13
|
-
import { AgentConfigManager } from '
|
|
14
|
-
import { cleanupInternalToolHandlers, handleMcpDisable, handleMcpEdit, handleMcpEnable, handleMcpInfo, handleMcpInstall, handleMcpList, handleMcpRegistryInfo, handleMcpRegistryList, handleMcpRegistryStatus, handleMcpReload, handleMcpSearch, handleMcpStatus, handleMcpUninstall, handleMcpUpdate, } from '
|
|
15
|
-
import { McpDisableToolSchema, McpEditToolSchema, McpEnableToolSchema, McpInfoToolSchema, McpInstallToolSchema, McpListToolSchema, McpRegistryInfoSchema, McpRegistryListSchema, McpRegistryStatusSchema, McpReloadToolSchema, McpSearchToolSchema, McpStatusToolSchema, McpUninstallToolSchema, McpUpdateToolSchema, } from '
|
|
8
|
+
import { createInfoTool, createRegistryInfoTool, createRegistryListTool, createRegistryStatusTool, createSearchTool, } from './internal/discoveryTools.js';
|
|
9
|
+
import { createInstallTool, createUninstallTool, createUpdateTool, } from './internal/installationTools.js';
|
|
10
|
+
import { createToolInvokeTool, createToolListTool, createToolSchemaTool, } from './internal/lazyTools.js';
|
|
11
|
+
import { createDisableTool, createEditTool, createEnableTool, createListTool, createReloadTool, createStatusTool, } from './internal/managementTools.js';
|
|
12
|
+
import { FlagManager } from '../flags/flagManager.js';
|
|
13
|
+
import { AgentConfigManager } from '../server/agentConfig.js';
|
|
14
|
+
import { cleanupInternalToolHandlers, handleMcpDisable, handleMcpEdit, handleMcpEnable, handleMcpInfo, handleMcpInstall, handleMcpList, handleMcpRegistryInfo, handleMcpRegistryList, handleMcpRegistryStatus, handleMcpReload, handleMcpSearch, handleMcpStatus, handleMcpUninstall, handleMcpUpdate, } from '../tools/internal/index.js';
|
|
15
|
+
import { McpDisableToolSchema, McpEditToolSchema, McpEnableToolSchema, McpInfoToolSchema, McpInstallToolSchema, McpListToolSchema, McpRegistryInfoSchema, McpRegistryListSchema, McpRegistryStatusSchema, McpReloadToolSchema, McpSearchToolSchema, McpStatusToolSchema, McpUninstallToolSchema, McpUpdateToolSchema, } from '../tools/internal/schemas/index.js';
|
|
16
16
|
import logger from '../../logger/logger.js';
|
|
17
17
|
import { z } from 'zod';
|
|
18
18
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
|
-
import { AgentConfigManager } from '
|
|
3
|
-
import { TemplateHashProvider } from '
|
|
4
|
-
import { OutboundConnections } from '
|
|
2
|
+
import { AgentConfigManager } from '../server/agentConfig.js';
|
|
3
|
+
import { TemplateHashProvider } from '../server/connectionResolver.js';
|
|
4
|
+
import { OutboundConnections } from '../types/index.js';
|
|
5
5
|
import { AsyncLoadingOrchestrator } from './asyncLoadingOrchestrator.js';
|
|
6
6
|
import { AggregatedCapabilities, CapabilityAggregator } from './capabilityAggregator.js';
|
|
7
7
|
import { type CapabilityVisibility } from './capabilityVisibility.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
|
-
import { requestLegacyAdapter } from '
|
|
3
|
-
import { ConnectionResolver } from '
|
|
4
|
-
import { ClientStatus } from '
|
|
2
|
+
import { requestLegacyAdapter } from '../client/legacyAdapterRequest.js';
|
|
3
|
+
import { ConnectionResolver } from '../server/connectionResolver.js';
|
|
4
|
+
import { ClientStatus } from '../types/index.js';
|
|
5
5
|
import logger, { debugIf, errorIf } from '../../logger/logger.js';
|
|
6
6
|
import { AsyncLoadingOrchestratorEvent } from './asyncLoadingOrchestratorEvent.js';
|
|
7
7
|
import { CapabilityAggregator } from './capabilityAggregator.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TemplateHashProvider } from '
|
|
2
|
-
import { OutboundConnections } from '
|
|
1
|
+
import { TemplateHashProvider } from '../server/connectionResolver.js';
|
|
2
|
+
import { OutboundConnections } from '../types/index.js';
|
|
3
3
|
import type { Tool } from '../../sdk/contracts/index.js';
|
|
4
4
|
import type { CapabilityVisibility } from './capabilityVisibility.js';
|
|
5
5
|
import { SchemaCache } from './schemaCache.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type MCPServerParams, type OutboundConnection, type OutboundConnections } from '
|
|
1
|
+
import { type MCPServerParams, type OutboundConnection, type OutboundConnections } from '../types/index.js';
|
|
2
2
|
import { type Tool } from '../../sdk/contracts/index.js';
|
|
3
3
|
import { type CapabilityPaginationResult } from './capabilityPagination.js';
|
|
4
4
|
import type { CapabilityVisibility } from './capabilityVisibility.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createHash, randomUUID } from 'node:crypto';
|
|
2
|
-
import { requestLegacyAdapter } from '
|
|
3
|
-
import { isSourceToolDisabled } from '
|
|
4
|
-
import { applySourceToolDescription } from '
|
|
5
|
-
import { ClientStatus, } from '
|
|
2
|
+
import { requestLegacyAdapter } from '../client/legacyAdapterRequest.js';
|
|
3
|
+
import { isSourceToolDisabled } from '../server/disabledTools.js';
|
|
4
|
+
import { applySourceToolDescription } from '../server/toolDescriptionOverrides.js';
|
|
5
|
+
import { ClientStatus, } from '../types/index.js';
|
|
6
6
|
import { ErrorCode } from '../../sdk/contracts/index.js';
|
|
7
7
|
import { MCPError } from '../../utils/core/errorTypes.js';
|
|
8
8
|
import { registerCapabilityPaginationNotifications, unregisterCapabilityPaginationConnections, walkCapabilityPages, } from './capabilityPagination.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OutboundConnection } from '
|
|
1
|
+
import type { OutboundConnection } from '../types/index.js';
|
|
2
2
|
import type { Tool } from '../../sdk/contracts/index.js';
|
|
3
3
|
import { type CapabilityRoute, type CatalogGeneration } from './catalogGeneration.js';
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type OutboundConnection } from '
|
|
1
|
+
import { type OutboundConnection } from '../types/index.js';
|
|
2
2
|
import { OneMcpProtocolError } from '../../sdk/contracts/index.js';
|
|
3
3
|
export declare function isPostAuthUnauthorized(error: unknown): error is OneMcpProtocolError;
|
|
4
4
|
export declare function recoverPostAuthUnauthorized(serverName: string, connection: OutboundConnection, error: unknown): Promise<boolean>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LoadingState } from '
|
|
2
|
-
import { McpLoadingManager } from '
|
|
3
|
-
import { ClientStatus } from '
|
|
1
|
+
import { LoadingState } from '../loading/loadingStateTracker.js';
|
|
2
|
+
import { McpLoadingManager } from '../loading/mcpLoadingManager.js';
|
|
3
|
+
import { ClientStatus } from '../types/index.js';
|
|
4
4
|
import logger from '../../logger/logger.js';
|
|
5
5
|
import { OneMcpProtocolError } from '../../sdk/contracts/index.js';
|
|
6
6
|
const POST_AUTH_UNAUTHORIZED_MESSAGE = 'Server returned 401 after successful authentication';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { OutboundConnection } from '
|
|
2
|
-
import { ClientStatus } from '
|
|
1
|
+
import type { OutboundConnection } from '../types/client.js';
|
|
2
|
+
import { ClientStatus } from '../types/client.js';
|
|
3
3
|
/** Plain connection metadata used only while rendering configured-server instructions. */
|
|
4
4
|
export declare function createRenderableOutboundConnection(name: string, tags: readonly string[] | undefined, status: ClientStatus): OutboundConnection;
|
|
5
5
|
//# sourceMappingURL=renderableOutboundConnection.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CONFIG_EVENTS, ConfigChangeType, ConfigManager } from '../config/configManager.js';
|
|
2
|
-
import { clearCompleteConfiguredToolTargetSnapshot, clearLastConfiguredToolSnapshot, } from '
|
|
3
|
-
import { ServerManager } from '
|
|
2
|
+
import { clearCompleteConfiguredToolTargetSnapshot, clearLastConfiguredToolSnapshot, } from './capabilities/configuredToolSnapshot.js';
|
|
3
|
+
import { ServerManager } from './server/serverManager.js';
|
|
4
4
|
import logger, { debugIf } from '../logger/logger.js';
|
|
5
5
|
/**
|
|
6
6
|
* ConfigChangeHandler implements business logic for configuration changes
|
|
@@ -333,10 +333,10 @@ export class ConfigChangeHandler {
|
|
|
333
333
|
*/
|
|
334
334
|
async sendListChangedNotifications() {
|
|
335
335
|
try {
|
|
336
|
-
const { AgentConfigManager } = await import('
|
|
337
|
-
const { NotificationManager } = await import('
|
|
338
|
-
const { CapabilityAggregator } = await import('
|
|
339
|
-
const { createCapabilityNotificationFacts } = await import('
|
|
336
|
+
const { AgentConfigManager } = await import('./server/agentConfig.js');
|
|
337
|
+
const { NotificationManager } = await import('./notifications/notificationManager.js');
|
|
338
|
+
const { CapabilityAggregator } = await import('./capabilities/capabilityAggregator.js');
|
|
339
|
+
const { createCapabilityNotificationFacts } = await import('./capabilities/capabilityNotificationFacts.js');
|
|
340
340
|
const agentConfig = AgentConfigManager.getInstance();
|
|
341
341
|
if (!agentConfig.get('features').clientNotifications) {
|
|
342
342
|
debugIf('Client notifications disabled, skipping listChanged notifications');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OutboundConnections } from '
|
|
1
|
+
import { OutboundConnections } from '../types/index.js';
|
|
2
2
|
import { TagExpression } from '../../domains/preset/parsers/tagQueryParser.js';
|
|
3
3
|
import type { ServerCapabilities } from '../../sdk/contracts/index.js';
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MCPServerParams } from '
|
|
1
|
+
import { MCPServerParams } from '../types/index.js';
|
|
2
2
|
import { TagExpression } from '../../domains/preset/parsers/tagQueryParser.js';
|
|
3
3
|
import { TagQuery } from '../../domains/preset/types/presetTypes.js';
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InboundConnectionConfig } from '
|
|
1
|
+
import type { InboundConnectionConfig } from '../types/index.js';
|
|
2
2
|
import { TagExpression } from '../../domains/preset/parsers/tagQueryParser.js';
|
|
3
3
|
import type { PresetStrategy, TagQuery } from '../../domains/preset/types/presetTypes.js';
|
|
4
4
|
export type FilterSelectionMode = 'preset' | 'advanced' | 'simple-or' | 'none';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InboundConnectionConfig, OutboundConnections } from '
|
|
1
|
+
import { InboundConnectionConfig, OutboundConnections } from '../types/index.js';
|
|
2
2
|
import { TagExpression } from '../../domains/preset/parsers/tagQueryParser.js';
|
|
3
3
|
import { TagQuery } from '../../domains/preset/types/presetTypes.js';
|
|
4
4
|
import type { ServerCapabilities } from '../../sdk/contracts/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClientStatus } from '
|
|
1
|
+
import { ClientStatus } from '../types/client.js';
|
|
2
2
|
import { TagQueryEvaluator } from '../../domains/preset/parsers/tagQueryEvaluator.js';
|
|
3
3
|
import { TagQueryParser } from '../../domains/preset/parsers/tagQueryParser.js';
|
|
4
4
|
import logger, { debugIf } from '../../logger/logger.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MCPServerParams } from '
|
|
2
|
-
import { InboundConnectionConfig } from '
|
|
1
|
+
import { MCPServerParams } from '../types/index.js';
|
|
2
|
+
import { InboundConnectionConfig } from '../types/index.js';
|
|
3
3
|
import { TagExpression } from '../../domains/preset/parsers/tagQueryParser.js';
|
|
4
4
|
import { TagQuery } from '../../domains/preset/types/presetTypes.js';
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
|
-
import { AgentConfigManager } from '
|
|
2
|
+
import { AgentConfigManager } from '../server/agentConfig.js';
|
|
3
3
|
import { debugIf } from '../../logger/logger.js';
|
|
4
4
|
/**
|
|
5
5
|
* Tool mapping for internal MCP tools
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MCPServerParams } from '
|
|
1
|
+
import type { MCPServerParams } from '../types/transport.js';
|
|
2
2
|
import type { ConfiguredServerTargetSource } from '../../domains/config-change/types.js';
|
|
3
3
|
export interface ConfiguredServerInstructionTarget {
|
|
4
4
|
source: ConfiguredServerTargetSource;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
|
-
import { LazyLoadingOrchestrator } from '
|
|
3
|
-
import { InboundConnectionConfig, OutboundConnections } from '
|
|
4
|
-
import type { InstructionTemplateConfig } from '
|
|
2
|
+
import { LazyLoadingOrchestrator } from '../capabilities/lazyLoadingOrchestrator.js';
|
|
3
|
+
import { InboundConnectionConfig, OutboundConnections } from '../types/index.js';
|
|
4
|
+
import type { InstructionTemplateConfig } from '../types/transport.js';
|
|
5
5
|
import { type ConfiguredServerInstructionTarget, type ConfiguredServerInstructionTargets } from './effectiveServerInstructions.js';
|
|
6
6
|
export type InstructionSurface = 'initialization' | 'cli';
|
|
7
7
|
export interface RuntimeInstructionConfiguration {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
|
-
import { FilteringService } from '
|
|
2
|
+
import { FilteringService } from '../filtering/filteringService.js';
|
|
3
3
|
import logger, { debugIf } from '../../logger/logger.js';
|
|
4
4
|
import Handlebars from 'handlebars';
|
|
5
5
|
import { hasConfiguredInstructionOverride, resolveEffectiveServerInstructions, } from './effectiveServerInstructions.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadingStateTracker.d.ts","sourceRoot":"","sources":["../../../src/core/loading/loadingStateTracker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAKtC;;GAEG;AACH,oBAAY,YAAY;IACtB,wCAAwC;IACxC,OAAO,YAAY;IACnB,uCAAuC;IACvC,OAAO,YAAY;IACnB,oDAAoD;IACpD,KAAK,UAAU;IACf,kCAAkC;IAClC,MAAM,WAAW;IACjB,0CAA0C;IAC1C,aAAa,mBAAmB;IAChC,0CAA0C;IAC1C,SAAS,cAAc;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IACvB,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,CAAC,EAAE,IAAI,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAClB,QAAQ,CAAC,KAAK,EAAE,MAAM,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IlE;;OAEG;IACI,kBAAkB,IAAI,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC;IAI3D;;OAEG;IACI,UAAU,IAAI,cAAc;IAqCnC;;OAEG;IACI,iBAAiB,IAAI,OAAO;IAInC;;OAEG;IACI,iBAAiB,CAAC,KAAK,EAAE,YAAY,GAAG,iBAAiB,EAAE;IAIlE;;;;;;;;;;;OAWG;IACI,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAS1C;;OAEG;IACI,KAAK,IAAI,IAAI;IAOpB;;OAEG;IACH,OAAO,CAAC,YAAY;CAarB"}
|
|
@@ -99,11 +99,15 @@ export class LoadingStateTracker extends EventEmitter {
|
|
|
99
99
|
return;
|
|
100
100
|
}
|
|
101
101
|
const now = new Date();
|
|
102
|
-
|
|
102
|
+
let info = {
|
|
103
103
|
...existing,
|
|
104
104
|
state,
|
|
105
105
|
...updates,
|
|
106
106
|
};
|
|
107
|
+
if (state === LoadingState.Ready) {
|
|
108
|
+
const { error: _error, authorizationUrl: _authorizationUrl, oauthStartTime: _oauthStartTime, ...readyInfo } = info;
|
|
109
|
+
info = readyInfo;
|
|
110
|
+
}
|
|
107
111
|
// Handle state-specific updates
|
|
108
112
|
switch (state) {
|
|
109
113
|
case LoadingState.Loading:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadingStateTracker.js","sourceRoot":"","sources":["../../../src/core/loading/loadingStateTracker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D;;GAEG;AACH,MAAM,CAAN,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,wCAAwC;IACxC,mCAAmB,CAAA;IACnB,uCAAuC;IACvC,mCAAmB,CAAA;IACnB,oDAAoD;IACpD,+BAAe,CAA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AC,IAAI,CAAC;YAAE,OAAO;QACnC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC3B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE;YACrB,IAAI;YACJ,KAAK,EAAE,YAAY,CAAC,OAAO;YAC3B,UAAU,EAAE,CAAC;SACd,CAAC,CAAC;QACH,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,0CAA0C,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;QAC/E,IAAI,CAAC,YAAY,EAAE,CAAC;IACtB,CAAC;IAED;;OAEG;IACI,iBAAiB,CACtB,IAAY,EACZ,KAAmB,EACnB,UAA0G,EAAE;QAE5G,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,CAAC,IAAI,CAAC,uCAAuC,IAAI,EAAE,CAAC,CAAC;YAC3D,OAAO;QACT,CAAC;QAED,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,
|
|
1
|
+
{"version":3,"file":"loadingStateTracker.js","sourceRoot":"","sources":["../../../src/core/loading/loadingStateTracker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D;;GAEG;AACH,MAAM,CAAN,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,wCAAwC;IACxC,mCAAmB,CAAA;IACnB,uCAAuC;IACvC,mCAAmB,CAAA;IACnB,oDAAoD;IACpD,+BAAe,CAAA;IACf,kCAAkC;IAClC,iCAAiB,CAAA;IACjB,0CAA0C;IAC1C,gDAAgC,CAAA;IAChC,0CAA0C;IAC1C,uCAAuB,CAAA;AACzB,CA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B,IAAI,CAAC,IAAI,CAAC,cAAc;YAAE,OAAO;QAEjC,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAClC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;QAEtD,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,CACT,qBAAqB,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,YAAY,mBAAmB,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,iBAAiB,CAC7H,CAAC;YACF,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;QACxD,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
|
-
import { ClientManager } from '
|
|
3
|
-
import { MCPServerParams, OutboundConnections } from '
|
|
2
|
+
import { ClientManager } from '../client/clientManager.js';
|
|
3
|
+
import { MCPServerParams, OutboundConnections } from '../types/index.js';
|
|
4
4
|
import { createTransports } from '../../transport/transportFactory.js';
|
|
5
5
|
import { type BackendLoadingPolicy } from './backendLoadingPolicy.js';
|
|
6
6
|
import { LoadingStateTracker, LoadingSummary } from './loadingStateTracker.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
|
-
import { CapabilityChanges } from '
|
|
3
|
-
import { InboundConnection, InboundConnectionError } from '
|
|
2
|
+
import { CapabilityChanges } from '../capabilities/capabilityAggregator.js';
|
|
3
|
+
import { InboundConnection, InboundConnectionError } from '../types/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* Configuration for notification batching and behavior
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
|
-
import { AgentConfigManager } from '
|
|
3
|
-
import { ServerStatus } from '
|
|
2
|
+
import { AgentConfigManager } from '../server/agentConfig.js';
|
|
3
|
+
import { ServerStatus } from '../types/index.js';
|
|
4
4
|
import logger, { debugIf } from '../../logger/logger.js';
|
|
5
5
|
/**
|
|
6
6
|
* Default notification configuration
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CapabilityCatalog } from '
|
|
2
|
-
import { type CapabilityVisibility } from '
|
|
3
|
-
import { InboundConnection, OutboundConnection, OutboundConnections } from '
|
|
4
|
-
import type { MCPServerParams } from '
|
|
1
|
+
import { CapabilityCatalog } from '../capabilities/capabilityCatalog.js';
|
|
2
|
+
import { type CapabilityVisibility } from '../capabilities/capabilityVisibility.js';
|
|
3
|
+
import { InboundConnection, OutboundConnection, OutboundConnections } from '../types/index.js';
|
|
4
|
+
import type { MCPServerParams } from '../types/transport.js';
|
|
5
5
|
export declare function getRequestSession(inboundConn: InboundConnection): string | undefined;
|
|
6
6
|
export declare function createCapabilityCatalogFromConnections(connections: OutboundConnections, getServerConfigs?: () => Record<string, MCPServerParams>): Promise<CapabilityCatalog>;
|
|
7
7
|
/** Create the runtime Capability Catalog used by protocol capability walks. */
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { getConfiguredServerTargets } from '../../config/configuredServerTargets.js';
|
|
2
|
-
import { CapabilityCatalog } from '
|
|
3
|
-
import { createCapabilityVisibility } from '
|
|
4
|
-
import { acquireRuntimeCapabilityCatalog } from '
|
|
5
|
-
import { SchemaCache } from '
|
|
6
|
-
import { ToolRegistry } from '
|
|
7
|
-
import { byCapabilities } from '
|
|
8
|
-
import { FilteringService } from '
|
|
9
|
-
import { createConnectionResolver } from '
|
|
10
|
-
import { ServerManager } from '
|
|
2
|
+
import { CapabilityCatalog } from '../capabilities/capabilityCatalog.js';
|
|
3
|
+
import { createCapabilityVisibility } from '../capabilities/capabilityVisibility.js';
|
|
4
|
+
import { acquireRuntimeCapabilityCatalog } from '../capabilities/runtimeCapabilityCatalog.js';
|
|
5
|
+
import { SchemaCache } from '../capabilities/schemaCache.js';
|
|
6
|
+
import { ToolRegistry } from '../capabilities/toolRegistry.js';
|
|
7
|
+
import { byCapabilities } from '../filtering/clientFiltering.js';
|
|
8
|
+
import { FilteringService } from '../filtering/filteringService.js';
|
|
9
|
+
import { createConnectionResolver } from '../server/connectionResolver.js';
|
|
10
|
+
import { ServerManager } from '../server/serverManager.js';
|
|
11
11
|
export function getRequestSession(inboundConn) {
|
|
12
12
|
return inboundConn.context?.sessionId;
|
|
13
13
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { OutboundConnection, OutboundConnections } from '
|
|
2
|
-
import type { MCPServerParams } from '
|
|
1
|
+
import type { OutboundConnection, OutboundConnections } from '../../types/client.js';
|
|
2
|
+
import type { MCPServerParams } from '../../types/index.js';
|
|
3
3
|
import { ServerAdapter, ServerContext, ServerStatus, ServerType } from './types.js';
|
|
4
4
|
/**
|
|
5
5
|
* ExternalServerAdapter handles external MCP servers with static connections.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TemplateServerManager } from '
|
|
2
|
-
import type { OutboundConnection, OutboundConnections } from '
|
|
3
|
-
import type { MCPServerParams } from '
|
|
1
|
+
import type { TemplateServerManager } from '../templateServerManager.js';
|
|
2
|
+
import type { OutboundConnection, OutboundConnections } from '../../types/client.js';
|
|
3
|
+
import type { MCPServerParams } from '../../types/index.js';
|
|
4
4
|
import { ServerAdapter, ServerContext, ServerType } from './types.js';
|
|
5
5
|
/**
|
|
6
6
|
* ServerRegistry manages server adapters and provides unified access to all server types.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TemplateServerManager } from '
|
|
2
|
-
import type { OutboundConnection, OutboundConnections } from '
|
|
3
|
-
import type { MCPServerParams } from '
|
|
1
|
+
import type { TemplateServerManager } from '../templateServerManager.js';
|
|
2
|
+
import type { OutboundConnection, OutboundConnections } from '../../types/client.js';
|
|
3
|
+
import type { MCPServerParams } from '../../types/index.js';
|
|
4
4
|
import { ServerAdapter, ServerContext, ServerStatus, ServerType } from './types.js';
|
|
5
5
|
/**
|
|
6
6
|
* TemplateServerAdapter handles template-based MCP servers with dynamic connections.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { OutboundConnection } from '
|
|
2
|
-
import { ClientStatus } from '
|
|
3
|
-
import type { MCPServerParams } from '
|
|
1
|
+
import type { OutboundConnection } from '../../types/client.js';
|
|
2
|
+
import { ClientStatus } from '../../types/client.js';
|
|
3
|
+
import type { MCPServerParams } from '../../types/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* Server types supported by 1MCP
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TemplateContextTrustMode } from '
|
|
2
|
-
import { type BackendLoadingPolicy } from '
|
|
3
|
-
import { type TemplateInstancePoolPolicy } from '
|
|
1
|
+
import type { TemplateContextTrustMode } from '../context/templateContextTrust.js';
|
|
2
|
+
import { type BackendLoadingPolicy } from '../loading/backendLoadingPolicy.js';
|
|
3
|
+
import { type TemplateInstancePoolPolicy } from './clientInstancePoolTypes.js';
|
|
4
4
|
/**
|
|
5
5
|
* Configuration interface for agent-specific settings.
|
|
6
6
|
*
|