@1mcp/agent 0.38.0 → 0.38.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-OAuthServicesWorkspace-CzXIIHM0.js → admin-OAuthServicesWorkspace-C3DNmymC.js} +1 -1
- package/build/admin/assets/{admin-console-Mv3xmdoU.js → admin-console-BmdH0cQS.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/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 +30 -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 +113 -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/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/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 +16 -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspectApiSchemas.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/inspectApiSchemas.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wBAAwB;;;;;;;;;;;EAAiC,CAAC;AAEvE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;iBAQvB,CAAC;AAEjB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;iBAKvB,CAAC;AAEjB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;iBAStB,CAAC;AAEjB,eAAO,MAAM,uBAAuB;;;;;;;;iBAUpB,CAAC;AAEjB,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"inspectApiSchemas.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/inspectApiSchemas.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wBAAwB;;;;;;;;;;;EAAiC,CAAC;AAEvE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;iBAQvB,CAAC;AAEjB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;iBAKvB,CAAC;AAEjB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;iBAStB,CAAC;AAEjB,eAAO,MAAM,uBAAuB;;;;;;;;iBAUpB,CAAC;AAEjB,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAe/E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;iBAKnB,CAAC"}
|
|
@@ -37,4 +37,22 @@ export const inspectToolResultSchema = z
|
|
|
37
37
|
outputSchema: z.record(z.string(), z.unknown()).optional(),
|
|
38
38
|
})
|
|
39
39
|
.passthrough();
|
|
40
|
+
// Validate each upstream page before using its tool objects or continuation cursor.
|
|
41
|
+
const inspectToolSchema = z
|
|
42
|
+
.object({
|
|
43
|
+
name: z.string(),
|
|
44
|
+
description: z.string().optional(),
|
|
45
|
+
inputSchema: z.object({ type: z.literal('object') }).passthrough(),
|
|
46
|
+
outputSchema: z
|
|
47
|
+
.object({ type: z.literal('object') })
|
|
48
|
+
.passthrough()
|
|
49
|
+
.optional(),
|
|
50
|
+
})
|
|
51
|
+
.passthrough();
|
|
52
|
+
export const inspectToolsPageSchema = z
|
|
53
|
+
.object({
|
|
54
|
+
tools: z.array(inspectToolSchema),
|
|
55
|
+
nextCursor: z.string().optional(),
|
|
56
|
+
})
|
|
57
|
+
.passthrough();
|
|
40
58
|
//# sourceMappingURL=inspectApiSchemas.js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CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE;IAClE,YAAY,EAAE,CAAC;SACZ,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;SACrC,WAAW,EAAE;SACb,QAAQ,EAAE;CACd,CAAC;KACD,WAAW,EAAE,CAAC;AAEjB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC;KACpC,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC;IACjC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC;KACD,WAAW,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ServeUrlOptions } from '
|
|
1
|
+
import { type ServeUrlOptions } from './serveClient.js';
|
|
2
2
|
import type { ProjectConfig } from '../../config/projectConfigTypes.js';
|
|
3
3
|
import { type RuntimeIdentityWarning, verifyRuntimeIdentityForTarget } from '../../domains/runtime-targets/runtimeIdentityVerification.js';
|
|
4
4
|
import { RuntimeTargetStore } from '../../domains/runtime-targets/runtimeTargetStore.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { buildServerUrl } from '
|
|
1
|
+
import { buildServerUrl } from './serveClient.js';
|
|
2
2
|
import { normalizeTags, resolveProjectContext } from '../../config/projectConfigLoader.js';
|
|
3
3
|
import { getConfigDir } from '../../constants.js';
|
|
4
4
|
import { verifyRuntimeIdentityForTarget, } from '../../domains/runtime-targets/runtimeIdentityVerification.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { runCliCommand } from '
|
|
1
|
+
import { runCliCommand } from '../shared/commandRunner.js';
|
|
2
2
|
import { globalOptions } from '../../globalOptions.js';
|
|
3
3
|
export function setupTargetCommands(yargs) {
|
|
4
4
|
return yargs.command('target <subcommand>', 'Manage Runtime Target Contexts', (commandYargs) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { runCliCommand } from '
|
|
1
|
+
import { runCliCommand } from '../shared/commandRunner.js';
|
|
2
2
|
import { globalOptions } from '../../globalOptions.js';
|
|
3
3
|
export function setupWaitCommand(yargs) {
|
|
4
4
|
return yargs.command('wait [server]', 'Wait for configured static MCP servers to become connected and available', (commandYargs) => commandYargs
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ClientSurfaceAttachmentContext } from '
|
|
2
|
-
import { type InspectServerSummary } from '
|
|
1
|
+
import { type ClientSurfaceAttachmentContext } from '../shared/clientSurfaceAttachment.js';
|
|
2
|
+
import { type InspectServerSummary } from '../shared/inspectApiSchemas.js';
|
|
3
3
|
import type { GlobalOptions } from '../../globalOptions.js';
|
|
4
4
|
export interface WaitCommandOptions extends GlobalOptions {
|
|
5
5
|
server?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { encode } from '@toon-format/toon';
|
|
2
|
-
import { ApiClient } from '
|
|
3
|
-
import { attachReusableClientSurface, formatClientSurfaceAuthRequiredMessage, getClientSurfaceAuthRecoveryCommand, } from '
|
|
4
|
-
import { buildFilterSelectionQuery } from '
|
|
5
|
-
import { inspectServersResultSchema } from '
|
|
2
|
+
import { ApiClient } from '../shared/apiClient.js';
|
|
3
|
+
import { attachReusableClientSurface, formatClientSurfaceAuthRequiredMessage, getClientSurfaceAuthRecoveryCommand, } from '../shared/clientSurfaceAttachment.js';
|
|
4
|
+
import { buildFilterSelectionQuery } from '../shared/filterSelectionQuery.js';
|
|
5
|
+
import { inspectServersResultSchema } from '../shared/inspectApiSchemas.js';
|
|
6
6
|
import { API_INSPECT_ENDPOINT } from '../../constants/api.js';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
const waitCommandOptionsSchema = z
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
import { getUnknownGlobalConfigKeys, mergeGlobalAndServerConfig } from '
|
|
3
|
+
import { getUnknownGlobalConfigKeys, mergeGlobalAndServerConfig } from './mcpConfigMerge.js';
|
|
4
4
|
import { DEFAULT_CONFIG, getGlobalConfigPath } from '../constants.js';
|
|
5
5
|
import { MCP_CONFIG_SCHEMA_URL } from '../constants/schema.js';
|
|
6
6
|
import { AgentConfigManager } from '../core/server/agentConfig.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
|
-
import { isOperatorDisabledTemplateDefinition } from '
|
|
3
|
-
import { McpConfigManager } from '
|
|
4
|
-
import { mergeGlobalAndServerConfig } from '
|
|
2
|
+
import { isOperatorDisabledTemplateDefinition } from './configuredServerTargets.js';
|
|
3
|
+
import { McpConfigManager } from './mcpConfigManager.js';
|
|
4
|
+
import { mergeGlobalAndServerConfig } from './mcpConfigMerge.js';
|
|
5
5
|
import { AgentConfigManager } from '../core/server/agentConfig.js';
|
|
6
6
|
import { mcpServerConfigSchema, transportConfigSchema, } from '../core/types/transport.js';
|
|
7
7
|
import logger, { debugIf } from '../logger/logger.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { McpConfigManager } from '
|
|
1
|
+
import { McpConfigManager } from './mcpConfigManager.js';
|
|
2
2
|
export function getConfiguredServerTargets() {
|
|
3
3
|
const manager = McpConfigManager.getInstance();
|
|
4
4
|
return typeof manager.getConfiguredServerTargets === 'function'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
2
|
import fs from 'fs';
|
|
3
3
|
import path from 'path';
|
|
4
|
-
import ConfigContext from '
|
|
5
|
-
import { ConfigLoader } from '
|
|
6
|
-
import { mergeGlobalAndServerConfig } from '
|
|
4
|
+
import ConfigContext from './configContext.js';
|
|
5
|
+
import { ConfigLoader } from './configLoader.js';
|
|
6
|
+
import { mergeGlobalAndServerConfig } from './mcpConfigMerge.js';
|
|
7
7
|
import { AgentConfigManager } from '../core/server/agentConfig.js';
|
|
8
8
|
import { mcpServerConfigSchema, } from '../core/types/index.js';
|
|
9
9
|
import logger, { debugIf } from '../logger/logger.js';
|
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.38.
|
|
9
|
+
export declare const MCP_SERVER_VERSION = "0.38.1";
|
|
10
10
|
export declare const MCP_PROJECT_METADATA: {
|
|
11
11
|
readonly repository: "https://github.com/1mcp-app/agent";
|
|
12
12
|
readonly documentation: "https://docs.1mcp.app";
|
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.38.
|
|
6
|
+
export const MCP_SERVER_VERSION = '0.38.1';
|
|
7
7
|
// Compiled with every artifact so Admin Console metadata does not depend on
|
|
8
8
|
// package.json being adjacent to the runtime entrypoint.
|
|
9
9
|
export const MCP_PROJECT_METADATA = {
|
package/build/constants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @deprecated This file is deprecated. Import from './constants' directory instead.
|
|
2
|
+
* @deprecated This file is deprecated. Import from './constants.js' directory instead.
|
|
3
3
|
* This barrel export maintains backward compatibility.
|
|
4
4
|
*/
|
|
5
5
|
export * from './constants/index.js';
|
package/build/constants.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @deprecated This file is deprecated. Import from './constants' directory instead.
|
|
2
|
+
* @deprecated This file is deprecated. Import from './constants.js' directory instead.
|
|
3
3
|
* This barrel export maintains backward compatibility.
|
|
4
4
|
*/
|
|
5
5
|
// Re-export all constants from new domain-specific organization
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
|
-
import { McpLoadingManager } from '
|
|
3
|
-
import { NotificationManager } from '
|
|
4
|
-
import { ServerManager } from '
|
|
5
|
-
import { InboundConnection, OutboundConnections } from '
|
|
2
|
+
import { McpLoadingManager } from '../loading/mcpLoadingManager.js';
|
|
3
|
+
import { NotificationManager } from '../notifications/notificationManager.js';
|
|
4
|
+
import { ServerManager } from '../server/serverManager.js';
|
|
5
|
+
import { InboundConnection, OutboundConnections } from '../types/index.js';
|
|
6
6
|
import { CapabilityAggregator } from './capabilityAggregator.js';
|
|
7
7
|
import type { CapabilityRefreshResult } from './capabilityCatalog.js';
|
|
8
8
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
|
-
import { McpLoadingEvent } from '
|
|
3
|
-
import { NotificationManager } from '
|
|
4
|
-
import { AgentConfigManager } from '
|
|
2
|
+
import { McpLoadingEvent } from '../loading/mcpLoadingManager.js';
|
|
3
|
+
import { NotificationManager } from '../notifications/notificationManager.js';
|
|
4
|
+
import { AgentConfigManager } from '../server/agentConfig.js';
|
|
5
5
|
import logger, { debugIf } from '../../logger/logger.js';
|
|
6
6
|
import { AsyncLoadingOrchestratorEvent } from './asyncLoadingOrchestratorEvent.js';
|
|
7
7
|
import { CapabilityAggregator } from './capabilityAggregator.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
|
-
import type { OutboundConnections } from '
|
|
2
|
+
import type { OutboundConnections } from '../types/index.js';
|
|
3
3
|
import type { Prompt, Resource, ResourceTemplate, Tool } from '../../sdk/contracts/index.js';
|
|
4
4
|
import { type CatalogGeneration } from './catalogGeneration.js';
|
|
5
5
|
import { type RuntimeCapabilitySnapshot } from './runtimeCapabilityCatalog.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
2
|
import { getConfiguredServerTargets } from '../../config/configuredServerTargets.js';
|
|
3
|
-
import { InternalCapabilitiesProvider } from '
|
|
3
|
+
import { InternalCapabilitiesProvider } from './internalCapabilitiesProvider.js';
|
|
4
4
|
import { buildCatalogGeneration } from './catalogGeneration.js';
|
|
5
5
|
import { acquireRuntimeCapabilityCatalog, RuntimeCatalogBackendChangedError, } from './runtimeCapabilityCatalog.js';
|
|
6
6
|
/** Publishes the runtime catalog as one aggregate snapshot for discovery and notifications. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type TemplateHashProvider } from '
|
|
2
|
-
import { type MCPServerParams, type OutboundConnection, type OutboundConnections } from '
|
|
1
|
+
import { type TemplateHashProvider } from '../server/connectionResolver.js';
|
|
2
|
+
import { type MCPServerParams, type OutboundConnection, type OutboundConnections } from '../types/index.js';
|
|
3
3
|
import type { Tool } from '../../sdk/contracts/index.js';
|
|
4
4
|
import { type CapabilityKind, type CapabilityPage, type CapabilityPaginationResult } from './capabilityPagination.js';
|
|
5
5
|
import { type CapabilityVisibility } from './capabilityVisibility.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { requestLegacyAdapter } from '
|
|
2
|
-
import { ConnectionResolver } from '
|
|
3
|
-
import { getDisabledSourceToolError, isSourceToolDisabled } from '
|
|
4
|
-
import { applySourceToolDescription } from '
|
|
5
|
-
import { ClientStatus, } from '
|
|
1
|
+
import { requestLegacyAdapter } from '../client/legacyAdapterRequest.js';
|
|
2
|
+
import { ConnectionResolver } from '../server/connectionResolver.js';
|
|
3
|
+
import { getDisabledSourceToolError, isSourceToolDisabled } from '../server/disabledTools.js';
|
|
4
|
+
import { applySourceToolDescription } from '../server/toolDescriptionOverrides.js';
|
|
5
|
+
import { ClientStatus, } from '../types/index.js';
|
|
6
6
|
import logger from '../../logger/logger.js';
|
|
7
7
|
import { walkCapabilityPages, } from './capabilityPagination.js';
|
|
8
8
|
import { getCapabilityVisibleServerNames } from './capabilityVisibility.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InboundConnection, OutboundConnections } from '
|
|
1
|
+
import { InboundConnection, OutboundConnections } from '../types/index.js';
|
|
2
2
|
import { LazyLoadingOrchestrator } from './lazyLoadingOrchestrator.js';
|
|
3
3
|
interface ServerCapabilitiesSnapshot {
|
|
4
4
|
resources?: Record<string, unknown>;
|
|
@@ -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,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ACxF,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
|
/**
|