@1mcp/agent 0.28.0 → 0.29.0-beta1
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/auth/sessionTypes.d.ts +19 -0
- package/build/auth/sessionTypes.d.ts.map +1 -1
- package/build/commands/app/backups.d.ts.map +1 -1
- package/build/commands/app/backups.js +52 -42
- package/build/commands/app/backups.js.map +1 -1
- package/build/commands/app/consolidate.d.ts.map +1 -1
- package/build/commands/app/consolidate.js +66 -55
- package/build/commands/app/consolidate.js.map +1 -1
- package/build/commands/app/discover.d.ts.map +1 -1
- package/build/commands/app/discover.js +32 -25
- package/build/commands/app/discover.js.map +1 -1
- package/build/commands/app/index.d.ts.map +1 -1
- package/build/commands/app/index.js +2 -1
- package/build/commands/app/index.js.map +1 -1
- package/build/commands/app/list.d.ts.map +1 -1
- package/build/commands/app/list.js +35 -28
- package/build/commands/app/list.js.map +1 -1
- package/build/commands/app/restore.d.ts.map +1 -1
- package/build/commands/app/restore.js +74 -63
- package/build/commands/app/restore.js.map +1 -1
- package/build/commands/app/status.d.ts.map +1 -1
- package/build/commands/app/status.js +51 -43
- package/build/commands/app/status.js.map +1 -1
- package/build/commands/mcp/add.d.ts.map +1 -1
- package/build/commands/mcp/add.js +29 -23
- package/build/commands/mcp/add.js.map +1 -1
- package/build/commands/mcp/enable.d.ts.map +1 -1
- package/build/commands/mcp/enable.js +16 -15
- package/build/commands/mcp/enable.js.map +1 -1
- package/build/commands/mcp/index.d.ts.map +1 -1
- package/build/commands/mcp/index.js +2 -1
- package/build/commands/mcp/index.js.map +1 -1
- package/build/commands/mcp/install.d.ts.map +1 -1
- package/build/commands/mcp/install.js +44 -46
- package/build/commands/mcp/install.js.map +1 -1
- package/build/commands/mcp/list.d.ts.map +1 -1
- package/build/commands/mcp/list.js +51 -37
- package/build/commands/mcp/list.js.map +1 -1
- package/build/commands/mcp/remove.d.ts.map +1 -1
- package/build/commands/mcp/remove.js +23 -16
- package/build/commands/mcp/remove.js.map +1 -1
- package/build/commands/mcp/status.d.ts.map +1 -1
- package/build/commands/mcp/status.js +81 -73
- package/build/commands/mcp/status.js.map +1 -1
- package/build/commands/mcp/tokens.d.ts.map +1 -1
- package/build/commands/mcp/tokens.js +46 -47
- package/build/commands/mcp/tokens.js.map +1 -1
- package/build/commands/mcp/uninstall.d.ts.map +1 -1
- package/build/commands/mcp/uninstall.js +8 -6
- package/build/commands/mcp/uninstall.js.map +1 -1
- package/build/commands/mcp/update.d.ts.map +1 -1
- package/build/commands/mcp/update.js +11 -8
- package/build/commands/mcp/update.js.map +1 -1
- package/build/commands/mcp/utils/installWizard.d.ts.map +1 -1
- package/build/commands/mcp/utils/installWizard.js +3 -2
- package/build/commands/mcp/utils/installWizard.js.map +1 -1
- package/build/commands/mcp/utils/serverUtils.d.ts +8 -4
- package/build/commands/mcp/utils/serverUtils.d.ts.map +1 -1
- package/build/commands/mcp/utils/serverUtils.js +0 -3
- package/build/commands/mcp/utils/serverUtils.js.map +1 -1
- package/build/commands/mcp/wizard/components/serverDetailsDisplay.d.ts.map +1 -1
- package/build/commands/mcp/wizard/components/serverDetailsDisplay.js +4 -3
- package/build/commands/mcp/wizard/components/serverDetailsDisplay.js.map +1 -1
- package/build/commands/mcp/wizard/components/stepIndicator.d.ts.map +1 -1
- package/build/commands/mcp/wizard/components/stepIndicator.js +3 -2
- package/build/commands/mcp/wizard/components/stepIndicator.js.map +1 -1
- package/build/commands/mcp/wizard/components/welcomeScreen.d.ts.map +1 -1
- package/build/commands/mcp/wizard/components/welcomeScreen.js +2 -1
- package/build/commands/mcp/wizard/components/welcomeScreen.js.map +1 -1
- package/build/commands/mcp/wizard/configuration.d.ts.map +1 -1
- package/build/commands/mcp/wizard/configuration.js +10 -9
- package/build/commands/mcp/wizard/configuration.js.map +1 -1
- package/build/commands/mcp/wizard/display.d.ts.map +1 -1
- package/build/commands/mcp/wizard/display.js +9 -8
- package/build/commands/mcp/wizard/display.js.map +1 -1
- package/build/commands/mcp/wizard/search.d.ts.map +1 -1
- package/build/commands/mcp/wizard/search.js +4 -3
- package/build/commands/mcp/wizard/search.js.map +1 -1
- package/build/commands/preset/create.d.ts.map +1 -1
- package/build/commands/preset/create.js +7 -6
- package/build/commands/preset/create.js.map +1 -1
- package/build/commands/preset/delete.d.ts.map +1 -1
- package/build/commands/preset/delete.js +4 -2
- package/build/commands/preset/delete.js.map +1 -1
- package/build/commands/preset/edit.d.ts.map +1 -1
- package/build/commands/preset/edit.js +8 -5
- package/build/commands/preset/edit.js.map +1 -1
- package/build/commands/preset/interactive.d.ts.map +1 -1
- package/build/commands/preset/interactive.js +24 -15
- package/build/commands/preset/interactive.js.map +1 -1
- package/build/commands/preset/list.d.ts.map +1 -1
- package/build/commands/preset/list.js +12 -10
- package/build/commands/preset/list.js.map +1 -1
- package/build/commands/preset/show.d.ts.map +1 -1
- package/build/commands/preset/show.js +3 -2
- package/build/commands/preset/show.js.map +1 -1
- package/build/commands/preset/test.d.ts.map +1 -1
- package/build/commands/preset/test.js +2 -1
- package/build/commands/preset/test.js.map +1 -1
- package/build/commands/preset/url.d.ts.map +1 -1
- package/build/commands/preset/url.js +2 -1
- package/build/commands/preset/url.js.map +1 -1
- package/build/commands/proxy/index.d.ts.map +1 -1
- package/build/commands/proxy/index.js +5 -0
- package/build/commands/proxy/index.js.map +1 -1
- package/build/commands/proxy/proxy.d.ts.map +1 -1
- package/build/commands/proxy/proxy.js +1 -0
- package/build/commands/proxy/proxy.js.map +1 -1
- package/build/commands/registry/index.d.ts.map +1 -1
- package/build/commands/registry/index.js +2 -1
- package/build/commands/registry/index.js.map +1 -1
- package/build/commands/registry/search.d.ts.map +1 -1
- package/build/commands/registry/search.js +42 -37
- package/build/commands/registry/search.js.map +1 -1
- package/build/commands/registry/show.d.ts.map +1 -1
- package/build/commands/registry/show.js +8 -7
- package/build/commands/registry/show.js.map +1 -1
- package/build/commands/registry/status.d.ts.map +1 -1
- package/build/commands/registry/status.js +26 -16
- package/build/commands/registry/status.js.map +1 -1
- package/build/commands/registry/versions.d.ts.map +1 -1
- package/build/commands/registry/versions.js +8 -7
- package/build/commands/registry/versions.js.map +1 -1
- package/build/config/configChangeDetector.d.ts +8 -0
- package/build/config/configChangeDetector.d.ts.map +1 -0
- package/build/config/configChangeDetector.js +49 -0
- package/build/config/configChangeDetector.js.map +1 -0
- package/build/config/configLoader.d.ts +16 -0
- package/build/config/configLoader.d.ts.map +1 -0
- package/build/config/configLoader.js +155 -0
- package/build/config/configLoader.js.map +1 -0
- package/build/config/configManager.d.ts +49 -86
- package/build/config/configManager.d.ts.map +1 -1
- package/build/config/configManager.js +188 -301
- package/build/config/configManager.js.map +1 -1
- package/build/config/configWatcher.d.ts +18 -0
- package/build/config/configWatcher.d.ts.map +1 -0
- package/build/config/configWatcher.js +78 -0
- package/build/config/configWatcher.js.map +1 -0
- package/build/config/projectConfigTypes.d.ts +40 -0
- package/build/config/projectConfigTypes.d.ts.map +1 -1
- package/build/config/projectConfigTypes.js +21 -0
- package/build/config/projectConfigTypes.js.map +1 -1
- package/build/config/templateProcessor.d.ts +14 -0
- package/build/config/templateProcessor.d.ts.map +1 -0
- package/build/config/templateProcessor.js +102 -0
- package/build/config/templateProcessor.js.map +1 -0
- package/build/config/types.d.ts +36 -0
- package/build/config/types.d.ts.map +1 -0
- package/build/config/types.js +14 -0
- package/build/config/types.js.map +1 -0
- package/build/constants/mcp.d.ts +1 -1
- package/build/constants/mcp.d.ts.map +1 -1
- package/build/constants/mcp.js +1 -1
- package/build/constants/mcp.js.map +1 -1
- package/build/core/capabilities/capabilityManager.d.ts +3 -10
- package/build/core/capabilities/capabilityManager.d.ts.map +1 -1
- package/build/core/capabilities/internal/discoveryTools.d.ts.map +1 -1
- package/build/core/capabilities/internal/discoveryTools.js +25 -0
- package/build/core/capabilities/internal/discoveryTools.js.map +1 -1
- package/build/core/capabilities/internal/installationTools.d.ts.map +1 -1
- package/build/core/capabilities/internal/installationTools.js +14 -0
- package/build/core/capabilities/internal/installationTools.js.map +1 -1
- package/build/core/capabilities/internal/managementTools.d.ts.map +1 -1
- package/build/core/capabilities/internal/managementTools.js +25 -0
- package/build/core/capabilities/internal/managementTools.js.map +1 -1
- package/build/core/client/clientFactory.d.ts +7 -0
- package/build/core/client/clientFactory.d.ts.map +1 -0
- package/build/core/client/clientFactory.js +36 -0
- package/build/core/client/clientFactory.js.map +1 -0
- package/build/core/client/clientManager.d.ts +13 -101
- package/build/core/client/clientManager.d.ts.map +1 -1
- package/build/core/client/clientManager.js +115 -418
- package/build/core/client/clientManager.js.map +1 -1
- package/build/core/client/connectionHandler.d.ts +8 -0
- package/build/core/client/connectionHandler.d.ts.map +1 -0
- package/build/core/client/connectionHandler.js +80 -0
- package/build/core/client/connectionHandler.js.map +1 -0
- package/build/core/client/oauthFlowHandler.d.ts +10 -0
- package/build/core/client/oauthFlowHandler.d.ts.map +1 -0
- package/build/core/client/oauthFlowHandler.js +81 -0
- package/build/core/client/oauthFlowHandler.js.map +1 -0
- package/build/core/client/transportRecreator.d.ts +5 -0
- package/build/core/client/transportRecreator.d.ts.map +1 -0
- package/build/core/client/transportRecreator.js +23 -0
- package/build/core/client/transportRecreator.js.map +1 -0
- package/build/core/client/types.d.ts +7 -0
- package/build/core/client/types.d.ts.map +1 -0
- package/build/core/client/types.js +11 -0
- package/build/core/client/types.js.map +1 -0
- package/build/core/configChangeHandler.d.ts.map +1 -1
- package/build/core/configChangeHandler.js +11 -5
- package/build/core/configChangeHandler.js.map +1 -1
- package/build/core/context/globalContextManager.d.ts +58 -0
- package/build/core/context/globalContextManager.d.ts.map +1 -0
- package/build/core/context/globalContextManager.js +190 -0
- package/build/core/context/globalContextManager.js.map +1 -0
- package/build/core/filtering/clientFiltering.d.ts +1 -2
- package/build/core/filtering/clientFiltering.d.ts.map +1 -1
- package/build/core/filtering/clientTemplateTracker.d.ts +116 -0
- package/build/core/filtering/clientTemplateTracker.d.ts.map +1 -0
- package/build/core/filtering/clientTemplateTracker.js +286 -0
- package/build/core/filtering/clientTemplateTracker.js.map +1 -0
- package/build/core/filtering/filterCache.d.ts +121 -0
- package/build/core/filtering/filterCache.d.ts.map +1 -0
- package/build/core/filtering/filterCache.js +359 -0
- package/build/core/filtering/filterCache.js.map +1 -0
- package/build/core/filtering/index.d.ts +16 -0
- package/build/core/filtering/index.d.ts.map +1 -0
- package/build/core/filtering/index.js +16 -0
- package/build/core/filtering/index.js.map +1 -0
- package/build/core/filtering/templateFilteringService.d.ts +72 -0
- package/build/core/filtering/templateFilteringService.d.ts.map +1 -0
- package/build/core/filtering/templateFilteringService.js +293 -0
- package/build/core/filtering/templateFilteringService.js.map +1 -0
- package/build/core/filtering/templateIndex.d.ts +132 -0
- package/build/core/filtering/templateIndex.d.ts.map +1 -0
- package/build/core/filtering/templateIndex.js +368 -0
- package/build/core/filtering/templateIndex.js.map +1 -0
- package/build/core/flags/flagManager.d.ts +8 -4
- package/build/core/flags/flagManager.d.ts.map +1 -1
- package/build/core/flags/flagManager.js.map +1 -1
- package/build/core/protocol/requestHandlers.d.ts.map +1 -1
- package/build/core/protocol/requestHandlers.js +208 -46
- package/build/core/protocol/requestHandlers.js.map +1 -1
- package/build/core/server/clientInstancePool.d.ts +146 -0
- package/build/core/server/clientInstancePool.d.ts.map +1 -0
- package/build/core/server/clientInstancePool.js +407 -0
- package/build/core/server/clientInstancePool.js.map +1 -0
- package/build/core/server/connectionManager.d.ts +70 -0
- package/build/core/server/connectionManager.d.ts.map +1 -0
- package/build/core/server/connectionManager.js +240 -0
- package/build/core/server/connectionManager.js.map +1 -0
- package/build/core/server/mcpServerLifecycleManager.d.ts +55 -0
- package/build/core/server/mcpServerLifecycleManager.d.ts.map +1 -0
- package/build/core/server/mcpServerLifecycleManager.js +272 -0
- package/build/core/server/mcpServerLifecycleManager.js.map +1 -0
- package/build/core/server/serverManager.d.ts +56 -56
- package/build/core/server/serverManager.d.ts.map +1 -1
- package/build/core/server/serverManager.js +160 -431
- package/build/core/server/serverManager.js.map +1 -1
- package/build/core/server/templateConfigurationManager.d.ts +51 -0
- package/build/core/server/templateConfigurationManager.d.ts.map +1 -0
- package/build/core/server/templateConfigurationManager.js +160 -0
- package/build/core/server/templateConfigurationManager.js.map +1 -0
- package/build/core/server/templateServerManager.d.ts +92 -0
- package/build/core/server/templateServerManager.d.ts.map +1 -0
- package/build/core/server/templateServerManager.js +367 -0
- package/build/core/server/templateServerManager.js.map +1 -0
- package/build/core/tools/handlers/serverManagementHandler.d.ts +51 -1
- package/build/core/tools/handlers/serverManagementHandler.d.ts.map +1 -1
- package/build/core/tools/handlers/serverManagementHandler.js +42 -0
- package/build/core/tools/handlers/serverManagementHandler.js.map +1 -1
- package/build/core/tools/internal/adapters/helpers/configTransformers.d.ts +11 -1
- package/build/core/tools/internal/adapters/helpers/configTransformers.d.ts.map +1 -1
- package/build/core/tools/internal/adapters/installation/types.d.ts +2 -4
- package/build/core/tools/internal/adapters/installation/types.d.ts.map +1 -1
- package/build/core/tools/internal/adapters/installationAdapter.d.ts +2 -4
- package/build/core/tools/internal/adapters/installationAdapter.d.ts.map +1 -1
- package/build/core/tools/internal/adapters/installationAdapter.js.map +1 -1
- package/build/core/tools/internal/adapters/management/managementAdapter.d.ts +2 -5
- package/build/core/tools/internal/adapters/management/managementAdapter.d.ts.map +1 -1
- package/build/core/tools/internal/adapters/management/managementAdapter.js.map +1 -1
- package/build/core/tools/internal/adapters/management/types.d.ts +8 -4
- package/build/core/tools/internal/adapters/management/types.d.ts.map +1 -1
- package/build/core/tools/internal/index.d.ts +0 -31
- package/build/core/tools/internal/index.d.ts.map +1 -1
- package/build/core/tools/internal/index.js +4 -3
- package/build/core/tools/internal/index.js.map +1 -1
- package/build/core/tools/internal/schemas/index.d.ts +3 -3
- package/build/core/tools/internal/schemas/management.d.ts +3 -3
- package/build/core/types/server.d.ts +19 -0
- package/build/core/types/server.d.ts.map +1 -1
- package/build/core/types/server.js.map +1 -1
- package/build/core/types/transport.d.ts +178 -0
- package/build/core/types/transport.d.ts.map +1 -1
- package/build/core/types/transport.js +34 -0
- package/build/core/types/transport.js.map +1 -1
- package/build/core/validation/CustomJsonSchemaValidator.d.ts.map +1 -1
- package/build/core/validation/CustomJsonSchemaValidator.js +4 -3
- package/build/core/validation/CustomJsonSchemaValidator.js.map +1 -1
- package/build/domains/discovery/appPresets.d.ts.map +1 -1
- package/build/domains/discovery/appPresets.js +9 -7
- package/build/domains/discovery/appPresets.js.map +1 -1
- package/build/domains/installation/configurators/cliArgsConfigurator.d.ts.map +1 -1
- package/build/domains/installation/configurators/cliArgsConfigurator.js +8 -4
- package/build/domains/installation/configurators/cliArgsConfigurator.js.map +1 -1
- package/build/domains/installation/configurators/envVarConfigurator.d.ts.map +1 -1
- package/build/domains/installation/configurators/envVarConfigurator.js +8 -4
- package/build/domains/installation/configurators/envVarConfigurator.js.map +1 -1
- package/build/domains/installation/configurators/tagsConfigurator.d.ts +2 -4
- package/build/domains/installation/configurators/tagsConfigurator.d.ts.map +1 -1
- package/build/domains/installation/configurators/tagsConfigurator.js +4 -7
- package/build/domains/installation/configurators/tagsConfigurator.js.map +1 -1
- package/build/domains/installation/validators/conflictDetector.d.ts +6 -4
- package/build/domains/installation/validators/conflictDetector.d.ts.map +1 -1
- package/build/domains/installation/validators/conflictDetector.js +0 -3
- package/build/domains/installation/validators/conflictDetector.js.map +1 -1
- package/build/domains/preset/manager/presetManager.js +1 -1
- package/build/domains/preset/manager/presetManager.js.map +1 -1
- package/build/domains/preset/parsers/tagQueryEvaluator.d.ts +8 -4
- package/build/domains/preset/parsers/tagQueryEvaluator.d.ts.map +1 -1
- package/build/domains/preset/parsers/tagQueryEvaluator.js.map +1 -1
- package/build/domains/preset/services/presetErrorHandler.d.ts +0 -7
- package/build/domains/preset/services/presetErrorHandler.d.ts.map +1 -1
- package/build/domains/preset/services/presetErrorHandler.js +10 -37
- package/build/domains/preset/services/presetErrorHandler.js.map +1 -1
- package/build/domains/registry/cacheManager.d.ts +11 -1
- package/build/domains/registry/cacheManager.d.ts.map +1 -1
- package/build/domains/registry/cacheManager.js +21 -3
- package/build/domains/registry/cacheManager.js.map +1 -1
- package/build/domains/registry/formatters/serverDetailFormatter.d.ts.map +1 -1
- package/build/domains/registry/formatters/serverDetailFormatter.js +57 -8
- package/build/domains/registry/formatters/serverDetailFormatter.js.map +1 -1
- package/build/domains/registry/formatters/versionsFormatter.d.ts.map +1 -1
- package/build/domains/registry/formatters/versionsFormatter.js +8 -3
- package/build/domains/registry/formatters/versionsFormatter.js.map +1 -1
- package/build/logger/logger.d.ts +8 -4
- package/build/logger/logger.d.ts.map +1 -1
- package/build/logger/logger.js.map +1 -1
- package/build/server.d.ts +2 -1
- package/build/server.d.ts.map +1 -1
- package/build/server.js +16 -7
- package/build/server.js.map +1 -1
- package/build/template/handlebarsTemplateRenderer.d.ts +34 -0
- package/build/template/handlebarsTemplateRenderer.d.ts.map +1 -0
- package/build/template/handlebarsTemplateRenderer.js +92 -0
- package/build/template/handlebarsTemplateRenderer.js.map +1 -0
- package/build/template/index.d.ts +2 -0
- package/build/template/index.d.ts.map +1 -0
- package/build/template/index.js +3 -0
- package/build/template/index.js.map +1 -0
- package/build/transport/http/middlewares/securityMiddleware.js +1 -1
- package/build/transport/http/middlewares/securityMiddleware.js.map +1 -1
- package/build/transport/http/restorableStreamableTransport.d.ts +8 -4
- package/build/transport/http/restorableStreamableTransport.d.ts.map +1 -1
- package/build/transport/http/restorableStreamableTransport.js.map +1 -1
- package/build/transport/http/routes/sseRoutes.d.ts.map +1 -1
- package/build/transport/http/routes/sseRoutes.js +15 -0
- package/build/transport/http/routes/sseRoutes.js.map +1 -1
- package/build/transport/http/routes/streamableHttpRoutes.d.ts.map +1 -1
- package/build/transport/http/routes/streamableHttpRoutes.js +88 -12
- package/build/transport/http/routes/streamableHttpRoutes.js.map +1 -1
- package/build/transport/http/server.d.ts +1 -0
- package/build/transport/http/server.d.ts.map +1 -1
- package/build/transport/http/server.js +1 -0
- package/build/transport/http/server.js.map +1 -1
- package/build/transport/http/storage/streamableSessionRepository.d.ts.map +1 -1
- package/build/transport/http/storage/streamableSessionRepository.js +2 -0
- package/build/transport/http/storage/streamableSessionRepository.js.map +1 -1
- package/build/transport/http/utils/contextExtractor.d.ts +23 -0
- package/build/transport/http/utils/contextExtractor.d.ts.map +1 -0
- package/build/transport/http/utils/contextExtractor.js +58 -0
- package/build/transport/http/utils/contextExtractor.js.map +1 -0
- package/build/transport/restartableStdioTransport.d.ts +8 -4
- package/build/transport/restartableStdioTransport.d.ts.map +1 -1
- package/build/transport/restartableStdioTransport.js.map +1 -1
- package/build/transport/stdioProxyTransport.d.ts +15 -0
- package/build/transport/stdioProxyTransport.d.ts.map +1 -1
- package/build/transport/stdioProxyTransport.js +168 -35
- package/build/transport/stdioProxyTransport.js.map +1 -1
- package/build/transport/transportFactory.d.ts +8 -0
- package/build/transport/transportFactory.d.ts.map +1 -1
- package/build/transport/transportFactory.js +47 -0
- package/build/transport/transportFactory.js.map +1 -1
- package/build/types/context.d.ts +120 -0
- package/build/types/context.d.ts.map +1 -0
- package/build/types/context.js +4 -0
- package/build/types/context.js.map +1 -0
- package/build/types/validation.d.ts +30 -0
- package/build/types/validation.d.ts.map +1 -0
- package/build/types/validation.js +5 -0
- package/build/types/validation.js.map +1 -0
- package/build/utils/client/clientInfoExtractor.d.ts +26 -0
- package/build/utils/client/clientInfoExtractor.d.ts.map +1 -0
- package/build/utils/client/clientInfoExtractor.js +65 -0
- package/build/utils/client/clientInfoExtractor.js.map +1 -0
- package/build/utils/core/errorHandling.d.ts +9 -5
- package/build/utils/core/errorHandling.d.ts.map +1 -1
- package/build/utils/core/errorHandling.js.map +1 -1
- package/build/utils/core/parsing.d.ts +8 -4
- package/build/utils/core/parsing.d.ts.map +1 -1
- package/build/utils/core/parsing.js.map +1 -1
- package/build/utils/crypto.d.ts +10 -0
- package/build/utils/crypto.d.ts.map +1 -0
- package/build/utils/crypto.js +20 -0
- package/build/utils/crypto.js.map +1 -0
- package/build/utils/ui/interactiveSelector.d.ts +16 -6
- package/build/utils/ui/interactiveSelector.d.ts.map +1 -1
- package/build/utils/ui/interactiveSelector.js +7 -31
- package/build/utils/ui/interactiveSelector.js.map +1 -1
- package/build/utils/ui/pagination.d.ts +6 -2
- package/build/utils/ui/pagination.d.ts.map +1 -1
- package/build/utils/ui/pagination.js.map +1 -1
- package/build/utils/ui/printer.d.ts +76 -0
- package/build/utils/ui/printer.d.ts.map +1 -0
- package/build/utils/ui/printer.js +172 -0
- package/build/utils/ui/printer.js.map +1 -0
- package/build/utils/ui/spinner.d.ts +19 -0
- package/build/utils/ui/spinner.d.ts.map +1 -0
- package/build/utils/ui/spinner.js +51 -0
- package/build/utils/ui/spinner.js.map +1 -0
- package/build/utils/ui/table.d.ts +16 -0
- package/build/utils/ui/table.d.ts.map +1 -0
- package/build/utils/ui/table.js +70 -0
- package/build/utils/ui/table.js.map +1 -0
- package/build/utils/validation/validationHelpers.d.ts +7 -3
- package/build/utils/validation/validationHelpers.d.ts.map +1 -1
- package/build/utils/validation/validationHelpers.js.map +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventEmitter } from 'events';
|
|
2
|
+
interface ConfigLoader {
|
|
3
|
+
getConfigFilePath: () => string;
|
|
4
|
+
checkFileModified: () => boolean;
|
|
5
|
+
isReloadEnabled: () => boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare class ConfigWatcher extends EventEmitter {
|
|
8
|
+
private configWatcher;
|
|
9
|
+
private debounceTimer;
|
|
10
|
+
private configFilePath;
|
|
11
|
+
private loader;
|
|
12
|
+
constructor(configFilePath: string, loader: ConfigLoader);
|
|
13
|
+
startWatching(): void;
|
|
14
|
+
stopWatching(): void;
|
|
15
|
+
private debouncedReloadConfig;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=configWatcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configWatcher.d.ts","sourceRoot":"","sources":["../../src/config/configWatcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAOtC,UAAU,YAAY;IACpB,iBAAiB,EAAE,MAAM,MAAM,CAAC;IAChC,iBAAiB,EAAE,MAAM,OAAO,CAAC;IACjC,eAAe,EAAE,MAAM,OAAO,CAAC;CAChC;AAED,qBAAa,aAAc,SAAQ,YAAY;IAC7C,OAAO,CAAC,aAAa,CAA6B;IAClD,OAAO,CAAC,aAAa,CAA8C;IACnE,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,MAAM,CAAe;gBAEjB,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY;IAMjD,aAAa,IAAI,IAAI;IA+CrB,YAAY,IAAI,IAAI;IAW3B,OAAO,CAAC,qBAAqB;CAc9B"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { EventEmitter } from 'events';
|
|
2
|
+
import fs from 'fs';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
import { AgentConfigManager } from '../core/server/agentConfig.js';
|
|
5
|
+
import logger, { debugIf } from '../logger/logger.js';
|
|
6
|
+
export class ConfigWatcher extends EventEmitter {
|
|
7
|
+
configWatcher = null;
|
|
8
|
+
debounceTimer = null;
|
|
9
|
+
configFilePath;
|
|
10
|
+
loader;
|
|
11
|
+
constructor(configFilePath, loader) {
|
|
12
|
+
super();
|
|
13
|
+
this.configFilePath = configFilePath;
|
|
14
|
+
this.loader = loader;
|
|
15
|
+
}
|
|
16
|
+
startWatching() {
|
|
17
|
+
if (!this.loader.isReloadEnabled()) {
|
|
18
|
+
logger.info('Configuration hot-reload is disabled, skipping file watcher setup');
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
if (this.configWatcher) {
|
|
22
|
+
logger.warn('File watcher already started, ignoring duplicate call');
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
try {
|
|
26
|
+
const configDir = path.dirname(this.configFilePath);
|
|
27
|
+
const configFileName = path.basename(this.configFilePath);
|
|
28
|
+
// Verify directory exists before watching
|
|
29
|
+
if (!fs.existsSync(configDir)) {
|
|
30
|
+
throw new Error(`Configuration directory does not exist: ${configDir}`);
|
|
31
|
+
}
|
|
32
|
+
this.configWatcher = fs.watch(configDir, (eventType, filename) => {
|
|
33
|
+
debugIf(() => ({
|
|
34
|
+
message: 'Directory change detected',
|
|
35
|
+
meta: { eventType, filename, configDir, configFileName },
|
|
36
|
+
}));
|
|
37
|
+
const isConfigFileEvent = filename === configFileName ||
|
|
38
|
+
(filename && filename.startsWith(configFileName)) ||
|
|
39
|
+
(eventType === 'rename' && filename && filename.includes(path.parse(configFileName).name));
|
|
40
|
+
if (isConfigFileEvent || this.loader.checkFileModified()) {
|
|
41
|
+
debugIf(() => ({
|
|
42
|
+
message: 'Configuration file change detected, debouncing reload',
|
|
43
|
+
meta: { eventType, filename },
|
|
44
|
+
}));
|
|
45
|
+
this.debouncedReloadConfig();
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
logger.info(`Started watching configuration directory: ${configDir} for file: ${configFileName}`);
|
|
49
|
+
}
|
|
50
|
+
catch (error) {
|
|
51
|
+
const errorMsg = `Failed to start watching configuration file: ${error instanceof Error ? error.message : String(error)}`;
|
|
52
|
+
logger.error(errorMsg);
|
|
53
|
+
throw new Error(errorMsg);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
stopWatching() {
|
|
57
|
+
this.configWatcher?.close();
|
|
58
|
+
this.configWatcher = null;
|
|
59
|
+
logger.info('Stopped watching configuration file');
|
|
60
|
+
if (this.debounceTimer) {
|
|
61
|
+
clearTimeout(this.debounceTimer);
|
|
62
|
+
this.debounceTimer = null;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
debouncedReloadConfig() {
|
|
66
|
+
if (this.debounceTimer) {
|
|
67
|
+
clearTimeout(this.debounceTimer);
|
|
68
|
+
}
|
|
69
|
+
const agentConfig = AgentConfigManager.getInstance();
|
|
70
|
+
const debounceDelayMs = agentConfig.get('configReload').debounceMs;
|
|
71
|
+
this.debounceTimer = setTimeout(() => {
|
|
72
|
+
logger.info('Debounce period completed, reloading configuration...');
|
|
73
|
+
this.emit('reload');
|
|
74
|
+
this.debounceTimer = null;
|
|
75
|
+
}, debounceDelayMs);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=configWatcher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configWatcher.js","sourceRoot":"","sources":["../../src/config/configWatcher.ts"],"names":[],"mappings":"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"}
|
|
@@ -4,7 +4,21 @@ import { z } from 'zod';
|
|
|
4
4
|
*
|
|
5
5
|
* This file allows projects to specify default connection settings
|
|
6
6
|
* that will be automatically detected by the proxy command.
|
|
7
|
+
*
|
|
8
|
+
* Extended to support context collection and template parameters.
|
|
7
9
|
*/
|
|
10
|
+
/**
|
|
11
|
+
* Context configuration schema
|
|
12
|
+
*/
|
|
13
|
+
export declare const ContextConfigSchema: z.ZodObject<{
|
|
14
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
16
|
+
team: z.ZodOptional<z.ZodString>;
|
|
17
|
+
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
18
|
+
envPrefixes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
+
includeGit: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
+
sanitizePaths: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
+
}, z.core.$strip>;
|
|
8
22
|
/**
|
|
9
23
|
* Zod schema for .1mcprc validation
|
|
10
24
|
*/
|
|
@@ -12,7 +26,28 @@ export declare const ProjectConfigSchema: z.ZodObject<{
|
|
|
12
26
|
preset: z.ZodOptional<z.ZodString>;
|
|
13
27
|
tags: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
14
28
|
filter: z.ZodOptional<z.ZodString>;
|
|
29
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
30
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
31
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
32
|
+
team: z.ZodOptional<z.ZodString>;
|
|
33
|
+
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
34
|
+
envPrefixes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
35
|
+
includeGit: z.ZodDefault<z.ZodBoolean>;
|
|
36
|
+
sanitizePaths: z.ZodDefault<z.ZodBoolean>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
15
38
|
}, z.core.$strip>;
|
|
39
|
+
/**
|
|
40
|
+
* TypeScript interface for context configuration
|
|
41
|
+
*/
|
|
42
|
+
export interface ContextConfig {
|
|
43
|
+
projectId?: string;
|
|
44
|
+
environment?: string;
|
|
45
|
+
team?: string;
|
|
46
|
+
custom?: Record<string, unknown>;
|
|
47
|
+
envPrefixes?: string[];
|
|
48
|
+
includeGit?: boolean;
|
|
49
|
+
sanitizePaths?: boolean;
|
|
50
|
+
}
|
|
16
51
|
/**
|
|
17
52
|
* TypeScript interface for project configuration
|
|
18
53
|
*/
|
|
@@ -20,9 +55,14 @@ export interface ProjectConfig {
|
|
|
20
55
|
preset?: string;
|
|
21
56
|
tags?: string | string[];
|
|
22
57
|
filter?: string;
|
|
58
|
+
context?: ContextConfig;
|
|
23
59
|
}
|
|
24
60
|
/**
|
|
25
61
|
* Validate project configuration
|
|
26
62
|
*/
|
|
27
63
|
export declare function validateProjectConfig(data: unknown): ProjectConfig;
|
|
64
|
+
/**
|
|
65
|
+
* Validate context configuration
|
|
66
|
+
*/
|
|
67
|
+
export declare function validateContextConfig(data: unknown): ContextConfig;
|
|
28
68
|
//# sourceMappingURL=projectConfigTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectConfigTypes.d.ts","sourceRoot":"","sources":["../../src/config/projectConfigTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB
|
|
1
|
+
{"version":3,"file":"projectConfigTypes.d.ts","sourceRoot":"","sources":["../../src/config/projectConfigTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;iBAQ9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;iBAK9B,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,OAAO,GAAG,aAAa,CAElE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,OAAO,GAAG,aAAa,CAElE"}
|
|
@@ -4,7 +4,21 @@ import { z } from 'zod';
|
|
|
4
4
|
*
|
|
5
5
|
* This file allows projects to specify default connection settings
|
|
6
6
|
* that will be automatically detected by the proxy command.
|
|
7
|
+
*
|
|
8
|
+
* Extended to support context collection and template parameters.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Context configuration schema
|
|
7
12
|
*/
|
|
13
|
+
export const ContextConfigSchema = z.object({
|
|
14
|
+
projectId: z.string().optional(),
|
|
15
|
+
environment: z.string().optional(),
|
|
16
|
+
team: z.string().optional(),
|
|
17
|
+
custom: z.record(z.string(), z.unknown()).optional(),
|
|
18
|
+
envPrefixes: z.array(z.string()).optional(),
|
|
19
|
+
includeGit: z.boolean().default(true),
|
|
20
|
+
sanitizePaths: z.boolean().default(true),
|
|
21
|
+
});
|
|
8
22
|
/**
|
|
9
23
|
* Zod schema for .1mcprc validation
|
|
10
24
|
*/
|
|
@@ -12,6 +26,7 @@ export const ProjectConfigSchema = z.object({
|
|
|
12
26
|
preset: z.string().optional(),
|
|
13
27
|
tags: z.union([z.string(), z.array(z.string())]).optional(),
|
|
14
28
|
filter: z.string().optional(),
|
|
29
|
+
context: ContextConfigSchema.optional(),
|
|
15
30
|
});
|
|
16
31
|
/**
|
|
17
32
|
* Validate project configuration
|
|
@@ -19,4 +34,10 @@ export const ProjectConfigSchema = z.object({
|
|
|
19
34
|
export function validateProjectConfig(data) {
|
|
20
35
|
return ProjectConfigSchema.parse(data);
|
|
21
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Validate context configuration
|
|
39
|
+
*/
|
|
40
|
+
export function validateContextConfig(data) {
|
|
41
|
+
return ContextConfigSchema.parse(data);
|
|
42
|
+
}
|
|
22
43
|
//# sourceMappingURL=projectConfigTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectConfigTypes.js","sourceRoot":"","sources":["../../src/config/projectConfigTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB
|
|
1
|
+
{"version":3,"file":"projectConfigTypes.js","sourceRoot":"","sources":["../../src/config/projectConfigTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpD,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACrC,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;CACzC,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,OAAO,EAAE,mBAAmB,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAyBH;;GAEG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAa;IACjD,OAAO,mBAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AACzC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAa;IACjD,OAAO,mBAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ContextData } from '../types/context.js';
|
|
2
|
+
import { TemplateLoadResult } from './types.js';
|
|
3
|
+
export declare class TemplateProcessor {
|
|
4
|
+
private templateProcessingErrors;
|
|
5
|
+
private processedTemplates;
|
|
6
|
+
private lastContextHash?;
|
|
7
|
+
loadConfigWithTemplates(rawConfig: unknown, context?: ContextData): Promise<TemplateLoadResult>;
|
|
8
|
+
private processTemplates;
|
|
9
|
+
private hashContext;
|
|
10
|
+
getTemplateProcessingErrors(): string[];
|
|
11
|
+
hasTemplateProcessingErrors(): boolean;
|
|
12
|
+
clearTemplateCache(): void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=templateProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templateProcessor.d.ts","sourceRoot":"","sources":["../../src/config/templateProcessor.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,wBAAwB,CAAgB;IAChD,OAAO,CAAC,kBAAkB,CAAuC;IACjE,OAAO,CAAC,eAAe,CAAC,CAAS;IAEpB,uBAAuB,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,kBAAkB,CAAC;YAmE9F,gBAAgB;IAgC9B,OAAO,CAAC,WAAW;IAIZ,2BAA2B,IAAI,MAAM,EAAE;IAIvC,2BAA2B,IAAI,OAAO;IAItC,kBAAkB,IAAI,IAAI;CAKlC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { createHash } from 'crypto';
|
|
2
|
+
import { mcpServerConfigSchema, } from '../core/types/transport.js';
|
|
3
|
+
import logger, { debugIf } from '../logger/logger.js';
|
|
4
|
+
import { HandlebarsTemplateRenderer } from '../template/handlebarsTemplateRenderer.js';
|
|
5
|
+
export class TemplateProcessor {
|
|
6
|
+
templateProcessingErrors = [];
|
|
7
|
+
processedTemplates = {};
|
|
8
|
+
lastContextHash;
|
|
9
|
+
async loadConfigWithTemplates(rawConfig, context) {
|
|
10
|
+
let config;
|
|
11
|
+
try {
|
|
12
|
+
config = mcpServerConfigSchema.parse(rawConfig);
|
|
13
|
+
}
|
|
14
|
+
catch (error) {
|
|
15
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
16
|
+
logger.error(`Failed to parse configuration: ${errorMessage}`);
|
|
17
|
+
return {
|
|
18
|
+
staticServers: {},
|
|
19
|
+
templateServers: {},
|
|
20
|
+
errors: [`Configuration parsing failed: ${errorMessage}`],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
const settings = config.templateSettings;
|
|
24
|
+
const staticServers = {};
|
|
25
|
+
for (const [serverName, serverConfig] of Object.entries(config.mcpServers)) {
|
|
26
|
+
staticServers[serverName] = serverConfig;
|
|
27
|
+
}
|
|
28
|
+
let templateServers = {};
|
|
29
|
+
let errors = [];
|
|
30
|
+
if (config.mcpTemplates) {
|
|
31
|
+
if (context) {
|
|
32
|
+
const contextHash = this.hashContext(context);
|
|
33
|
+
if (settings?.cacheContext &&
|
|
34
|
+
this.lastContextHash === contextHash &&
|
|
35
|
+
Object.keys(this.processedTemplates).length > 0) {
|
|
36
|
+
templateServers = this.processedTemplates;
|
|
37
|
+
errors = this.templateProcessingErrors;
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
const result = await this.processTemplates(config.mcpTemplates, context, settings);
|
|
41
|
+
templateServers = result.servers;
|
|
42
|
+
errors = result.errors;
|
|
43
|
+
if (settings?.cacheContext) {
|
|
44
|
+
this.processedTemplates = templateServers;
|
|
45
|
+
this.templateProcessingErrors = errors;
|
|
46
|
+
this.lastContextHash = contextHash;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const conflictingServers = [];
|
|
52
|
+
for (const staticServerName of Object.keys(staticServers)) {
|
|
53
|
+
if (staticServerName in templateServers) {
|
|
54
|
+
conflictingServers.push(staticServerName);
|
|
55
|
+
delete staticServers[staticServerName];
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
if (conflictingServers.length > 0) {
|
|
59
|
+
logger.warn(`Ignoring ${conflictingServers.length} static server(s) that conflict with template servers: ${conflictingServers.join(', ')}`);
|
|
60
|
+
}
|
|
61
|
+
return { staticServers, templateServers, errors };
|
|
62
|
+
}
|
|
63
|
+
async processTemplates(templates, context, settings) {
|
|
64
|
+
const errors = [];
|
|
65
|
+
const templateRenderer = new HandlebarsTemplateRenderer();
|
|
66
|
+
const processedServers = {};
|
|
67
|
+
for (const [serverName, templateConfig] of Object.entries(templates)) {
|
|
68
|
+
try {
|
|
69
|
+
const processedConfig = templateRenderer.renderTemplate(templateConfig, context);
|
|
70
|
+
processedServers[serverName] = processedConfig;
|
|
71
|
+
debugIf(() => ({
|
|
72
|
+
message: 'Template processed successfully',
|
|
73
|
+
meta: { serverName },
|
|
74
|
+
}));
|
|
75
|
+
}
|
|
76
|
+
catch (error) {
|
|
77
|
+
const errorMsg = `Template processing failed for ${serverName}: ${error instanceof Error ? error.message : String(error)}`;
|
|
78
|
+
errors.push(errorMsg);
|
|
79
|
+
logger.error(errorMsg);
|
|
80
|
+
if (settings?.failureMode === 'graceful') {
|
|
81
|
+
processedServers[serverName] = templateConfig;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return { servers: processedServers, errors };
|
|
86
|
+
}
|
|
87
|
+
hashContext(context) {
|
|
88
|
+
return createHash('sha256').update(JSON.stringify(context)).digest('hex');
|
|
89
|
+
}
|
|
90
|
+
getTemplateProcessingErrors() {
|
|
91
|
+
return [...this.templateProcessingErrors];
|
|
92
|
+
}
|
|
93
|
+
hasTemplateProcessingErrors() {
|
|
94
|
+
return this.templateProcessingErrors.length > 0;
|
|
95
|
+
}
|
|
96
|
+
clearTemplateCache() {
|
|
97
|
+
this.processedTemplates = {};
|
|
98
|
+
this.lastContextHash = undefined;
|
|
99
|
+
this.templateProcessingErrors = [];
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=templateProcessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templateProcessor.js","sourceRoot":"","sources":["../../src/config/templateProcessor.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { MCPServerParams } from '../core/types/transport.js';
|
|
2
|
+
export declare enum ConfigChangeType {
|
|
3
|
+
ADDED = "added",
|
|
4
|
+
REMOVED = "removed",
|
|
5
|
+
MODIFIED = "modified"
|
|
6
|
+
}
|
|
7
|
+
export declare const CONFIG_EVENTS: {
|
|
8
|
+
readonly CONFIG_CHANGED: "configChanged";
|
|
9
|
+
readonly SERVER_ADDED: "serverAdded";
|
|
10
|
+
readonly SERVER_REMOVED: "serverRemoved";
|
|
11
|
+
readonly METADATA_UPDATED: "metadataUpdated";
|
|
12
|
+
readonly VALIDATION_ERROR: "validationError";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Configuration change event with discriminated union to prevent invalid states.
|
|
16
|
+
* - Added servers don't have fieldsChanged
|
|
17
|
+
* - Removed servers don't have fieldsChanged
|
|
18
|
+
* - Modified servers must have fieldsChanged
|
|
19
|
+
*/
|
|
20
|
+
export type ConfigChange = {
|
|
21
|
+
serverName: string;
|
|
22
|
+
type: ConfigChangeType.ADDED;
|
|
23
|
+
} | {
|
|
24
|
+
serverName: string;
|
|
25
|
+
type: ConfigChangeType.REMOVED;
|
|
26
|
+
} | {
|
|
27
|
+
serverName: string;
|
|
28
|
+
type: ConfigChangeType.MODIFIED;
|
|
29
|
+
fieldsChanged: readonly string[];
|
|
30
|
+
};
|
|
31
|
+
export interface TemplateLoadResult {
|
|
32
|
+
staticServers: Record<string, MCPServerParams>;
|
|
33
|
+
templateServers: Record<string, MCPServerParams>;
|
|
34
|
+
errors: string[];
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/config/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEpE,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,QAAQ,aAAa;CACtB;AAED,eAAO,MAAM,aAAa;;;;;;CAMhB,CAAC;AAEX;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GACpB;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,gBAAgB,CAAC,KAAK,CAAA;CAAE,GACpD;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,gBAAgB,CAAC,OAAO,CAAA;CAAE,GACtD;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,gBAAgB,CAAC,QAAQ,CAAC;IAAC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC;AAE9F,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC/C,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACjD,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export var ConfigChangeType;
|
|
2
|
+
(function (ConfigChangeType) {
|
|
3
|
+
ConfigChangeType["ADDED"] = "added";
|
|
4
|
+
ConfigChangeType["REMOVED"] = "removed";
|
|
5
|
+
ConfigChangeType["MODIFIED"] = "modified";
|
|
6
|
+
})(ConfigChangeType || (ConfigChangeType = {}));
|
|
7
|
+
export const CONFIG_EVENTS = {
|
|
8
|
+
CONFIG_CHANGED: 'configChanged',
|
|
9
|
+
SERVER_ADDED: 'serverAdded',
|
|
10
|
+
SERVER_REMOVED: 'serverRemoved',
|
|
11
|
+
METADATA_UPDATED: 'metadataUpdated',
|
|
12
|
+
VALIDATION_ERROR: 'validationError',
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/config/types.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;AACvB,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B;AAED,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,cAAc,EAAE,eAAe;IAC/B,YAAY,EAAE,aAAa;IAC3B,cAAc,EAAE,eAAe;IAC/B,gBAAgB,EAAE,iBAAiB;IACnC,gBAAgB,EAAE,iBAAiB;CAC3B,CAAC"}
|
package/build/constants/mcp.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ClientCapabilities, ServerCapabilities } from '@modelcontextprotocol/sd
|
|
|
5
5
|
export declare const MCP_CONFIG_FILE = "mcp.json";
|
|
6
6
|
export declare const MCP_INSTRUCTIONS_TEMPLATE_FILE = "instructions-template.md";
|
|
7
7
|
export declare const MCP_SERVER_NAME = "1mcp";
|
|
8
|
-
export declare const MCP_SERVER_VERSION = "0.
|
|
8
|
+
export declare const MCP_SERVER_VERSION = "0.29.0-beta1";
|
|
9
9
|
export declare const MCP_URI_SEPARATOR = "_1mcp_";
|
|
10
10
|
export declare const MCP_SERVER_CAPABILITIES: ServerCapabilities;
|
|
11
11
|
export declare const MCP_CLIENT_CAPABILITIES: ClientCapabilities;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/constants/mcp.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAG5F,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,MAAM,8BAA8B,6BAA6B,CAAC;AACzE,eAAO,MAAM,eAAe,SAAS,CAAC;AACtC,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/constants/mcp.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAG5F,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,MAAM,8BAA8B,6BAA6B,CAAC;AACzE,eAAO,MAAM,eAAe,SAAS,CAAC;AACtC,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AAEjD,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAE1C,eAAO,MAAM,uBAAuB,EAAE,kBAYrC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,kBAMrC,CAAC"}
|
package/build/constants/mcp.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export const MCP_CONFIG_FILE = 'mcp.json';
|
|
3
3
|
export const MCP_INSTRUCTIONS_TEMPLATE_FILE = 'instructions-template.md';
|
|
4
4
|
export const MCP_SERVER_NAME = '1mcp';
|
|
5
|
-
export const MCP_SERVER_VERSION = '0.
|
|
5
|
+
export const MCP_SERVER_VERSION = '0.29.0-beta1';
|
|
6
6
|
export const MCP_URI_SEPARATOR = '_1mcp_';
|
|
7
7
|
export const MCP_SERVER_CAPABILITIES = {
|
|
8
8
|
completions: {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../src/constants/mcp.ts"],"names":[],"mappings":"AAKA,gBAAgB;AAChB,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,CAAC;AAC1C,MAAM,CAAC,MAAM,8BAA8B,GAAG,0BAA0B,CAAC;AACzE,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC;AACtC,MAAM,CAAC,MAAM,kBAAkB,GAAG,
|
|
1
|
+
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../src/constants/mcp.ts"],"names":[],"mappings":"AAKA,gBAAgB;AAChB,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,CAAC;AAC1C,MAAM,CAAC,MAAM,8BAA8B,GAAG,0BAA0B,CAAC;AACzE,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC;AACtC,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAc,CAAC;AAEjD,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC;AAE1C,MAAM,CAAC,MAAM,uBAAuB,GAAuB;IACzD,WAAW,EAAE,EAAE;IACf,SAAS,EAAE;QACT,WAAW,EAAE,IAAI;KAClB;IACD,KAAK,EAAE;QACL,WAAW,EAAE,IAAI;KAClB;IACD,OAAO,EAAE;QACP,WAAW,EAAE,IAAI;KAClB;IACD,OAAO,EAAE,EAAE;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAuB;IACzD,KAAK,EAAE;QACL,WAAW,EAAE,KAAK;KACnB;IACD,QAAQ,EAAE,EAAE;IACZ,WAAW,EAAE,EAAE;CAChB,CAAC"}
|
|
@@ -7,7 +7,6 @@ import { InboundConnection, OutboundConnections } from '../../core/types/index.j
|
|
|
7
7
|
* @returns The combined server capabilities
|
|
8
8
|
*/
|
|
9
9
|
export declare function setupCapabilities(clients: OutboundConnections, serverInfo: InboundConnection): Promise<{
|
|
10
|
-
[x: string]: unknown;
|
|
11
10
|
experimental?: {
|
|
12
11
|
[x: string]: object;
|
|
13
12
|
} | undefined;
|
|
@@ -25,19 +24,13 @@ export declare function setupCapabilities(clients: OutboundConnections, serverIn
|
|
|
25
24
|
} | undefined;
|
|
26
25
|
tasks?: {
|
|
27
26
|
[x: string]: unknown;
|
|
28
|
-
list?:
|
|
29
|
-
|
|
30
|
-
} | undefined;
|
|
31
|
-
cancel?: {
|
|
32
|
-
[x: string]: unknown;
|
|
33
|
-
} | undefined;
|
|
27
|
+
list?: object | undefined;
|
|
28
|
+
cancel?: object | undefined;
|
|
34
29
|
requests?: {
|
|
35
30
|
[x: string]: unknown;
|
|
36
31
|
tools?: {
|
|
37
32
|
[x: string]: unknown;
|
|
38
|
-
call?:
|
|
39
|
-
[x: string]: unknown;
|
|
40
|
-
} | undefined;
|
|
33
|
+
call?: object | undefined;
|
|
41
34
|
} | undefined;
|
|
42
35
|
} | undefined;
|
|
43
36
|
} | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilityManager.d.ts","sourceRoot":"","sources":["../../../src/core/capabilities/capabilityManager.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGlF;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,iBAAiB
|
|
1
|
+
{"version":3,"file":"capabilityManager.d.ts","sourceRoot":"","sources":["../../../src/core/capabilities/capabilityManager.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGlF;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYlG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discoveryTools.d.ts","sourceRoot":"","sources":["../../../../src/core/capabilities/internal/discoveryTools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAgB1D;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"discoveryTools.d.ts","sourceRoot":"","sources":["../../../../src/core/capabilities/internal/discoveryTools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAgB1D;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAYvC;AAID;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAY/C;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAY7C;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAY7C;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAYrC"}
|
|
@@ -9,6 +9,11 @@ export function createSearchTool() {
|
|
|
9
9
|
description: 'Search for MCP servers in the registry',
|
|
10
10
|
inputSchema: zodToInputSchema(McpSearchToolSchema),
|
|
11
11
|
outputSchema: zodToOutputSchema(McpSearchOutputSchema),
|
|
12
|
+
annotations: {
|
|
13
|
+
title: 'Search MCP Servers',
|
|
14
|
+
readOnlyHint: true,
|
|
15
|
+
openWorldHint: true,
|
|
16
|
+
},
|
|
12
17
|
};
|
|
13
18
|
}
|
|
14
19
|
// createRegistryTool function removed - mcp_registry tool has been deprecated and split into separate tools
|
|
@@ -21,6 +26,11 @@ export function createRegistryStatusTool() {
|
|
|
21
26
|
description: 'Check registry availability and performance',
|
|
22
27
|
inputSchema: zodToInputSchema(McpRegistryStatusSchema),
|
|
23
28
|
outputSchema: zodToOutputSchema(McpRegistryStatusOutputSchema),
|
|
29
|
+
annotations: {
|
|
30
|
+
title: 'Check Registry Status',
|
|
31
|
+
readOnlyHint: true,
|
|
32
|
+
openWorldHint: true,
|
|
33
|
+
},
|
|
24
34
|
};
|
|
25
35
|
}
|
|
26
36
|
/**
|
|
@@ -32,6 +42,11 @@ export function createRegistryInfoTool() {
|
|
|
32
42
|
description: 'Get detailed registry information',
|
|
33
43
|
inputSchema: zodToInputSchema(McpRegistryInfoSchema),
|
|
34
44
|
outputSchema: zodToOutputSchema(McpRegistryInfoOutputSchema),
|
|
45
|
+
annotations: {
|
|
46
|
+
title: 'Get Registry Info',
|
|
47
|
+
readOnlyHint: true,
|
|
48
|
+
openWorldHint: true,
|
|
49
|
+
},
|
|
35
50
|
};
|
|
36
51
|
}
|
|
37
52
|
/**
|
|
@@ -43,6 +58,11 @@ export function createRegistryListTool() {
|
|
|
43
58
|
description: 'List available registries',
|
|
44
59
|
inputSchema: zodToInputSchema(McpRegistryListSchema),
|
|
45
60
|
outputSchema: zodToOutputSchema(McpRegistryListOutputSchema),
|
|
61
|
+
annotations: {
|
|
62
|
+
title: 'List Registries',
|
|
63
|
+
readOnlyHint: true,
|
|
64
|
+
openWorldHint: true,
|
|
65
|
+
},
|
|
46
66
|
};
|
|
47
67
|
}
|
|
48
68
|
/**
|
|
@@ -54,6 +74,11 @@ export function createInfoTool() {
|
|
|
54
74
|
description: 'Get detailed information about a specific MCP server',
|
|
55
75
|
inputSchema: zodToInputSchema(McpInfoToolSchema),
|
|
56
76
|
outputSchema: zodToOutputSchema(McpInfoOutputSchema),
|
|
77
|
+
annotations: {
|
|
78
|
+
title: 'Get Server Info',
|
|
79
|
+
readOnlyHint: true,
|
|
80
|
+
openWorldHint: true,
|
|
81
|
+
},
|
|
57
82
|
};
|
|
58
83
|
}
|
|
59
84
|
//# sourceMappingURL=discoveryTools.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discoveryTools.js","sourceRoot":"","sources":["../../../../src/core/capabilities/internal/discoveryTools.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,2BAA2B,EAC3B,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,EACrB,6BAA6B,EAC7B,uBAAuB,EACvB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEhF;;GAEG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO;QACL,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,wCAAwC;QACrD,WAAW,EAAE,gBAAgB,CAAC,mBAAmB,CAAwB;QACzE,YAAY,EAAE,iBAAiB,CAAC,qBAAqB,CAAyB;
|
|
1
|
+
{"version":3,"file":"discoveryTools.js","sourceRoot":"","sources":["../../../../src/core/capabilities/internal/discoveryTools.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,2BAA2B,EAC3B,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,EACrB,6BAA6B,EAC7B,uBAAuB,EACvB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEhF;;GAEG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO;QACL,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,wCAAwC;QACrD,WAAW,EAAE,gBAAgB,CAAC,mBAAmB,CAAwB;QACzE,YAAY,EAAE,iBAAiB,CAAC,qBAAqB,CAAyB;QAC9E,WAAW,EAAE;YACX,KAAK,EAAE,oBAAoB;YAC3B,YAAY,EAAE,IAAI;YAClB,aAAa,EAAE,IAAI;SACpB;KACF,CAAC;AACJ,CAAC;AAED,4GAA4G;AAE5G;;GAEG;AACH,MAAM,UAAU,wBAAwB;IACtC,OAAO;QACL,IAAI,EAAE,qBAAqB;QAC3B,WAAW,EAAE,6CAA6C;QAC1D,WAAW,EAAE,gBAAgB,CAAC,uBAAuB,CAAwB;QAC7E,YAAY,EAAE,iBAAiB,CAAC,6BAA6B,CAAyB;QACtF,WAAW,EAAE;YACX,KAAK,EAAE,uBAAuB;YAC9B,YAAY,EAAE,IAAI;YAClB,aAAa,EAAE,IAAI;SACpB;KACF,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO;QACL,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,mCAAmC;QAChD,WAAW,EAAE,gBAAgB,CAAC,qBAAqB,CAAwB;QAC3E,YAAY,EAAE,iBAAiB,CAAC,2BAA2B,CAAyB;QACpF,WAAW,EAAE;YACX,KAAK,EAAE,mBAAmB;YAC1B,YAAY,EAAE,IAAI;YAClB,aAAa,EAAE,IAAI;SACpB;KACF,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO;QACL,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,2BAA2B;QACxC,WAAW,EAAE,gBAAgB,CAAC,qBAAqB,CAAwB;QAC3E,YAAY,EAAE,iBAAiB,CAAC,2BAA2B,CAAyB;QACpF,WAAW,EAAE;YACX,KAAK,EAAE,iBAAiB;YACxB,YAAY,EAAE,IAAI;YAClB,aAAa,EAAE,IAAI;SACpB;KACF,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,sDAAsD;QACnE,WAAW,EAAE,gBAAgB,CAAC,iBAAiB,CAAwB;QACvE,YAAY,EAAE,iBAAiB,CAAC,mBAAmB,CAAyB;QAC5E,WAAW,EAAE;YACX,KAAK,EAAE,iBAAiB;YACxB,YAAY,EAAE,IAAI;YAClB,aAAa,EAAE,IAAI;SACpB;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installationTools.d.ts","sourceRoot":"","sources":["../../../../src/core/capabilities/internal/installationTools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAY1D;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"installationTools.d.ts","sourceRoot":"","sources":["../../../../src/core/capabilities/internal/installationTools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAY1D;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAaxC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAW1C;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAYvC"}
|
|
@@ -9,6 +9,11 @@ export function createInstallTool() {
|
|
|
9
9
|
description: 'Install a new MCP server. Use package+command+args for direct package installation (e.g., npm packages), or just name for registry-based installation',
|
|
10
10
|
inputSchema: zodToInputSchema(McpInstallToolSchema),
|
|
11
11
|
outputSchema: zodToOutputSchema(McpInstallOutputSchema),
|
|
12
|
+
annotations: {
|
|
13
|
+
title: 'Install MCP Server',
|
|
14
|
+
destructiveHint: true,
|
|
15
|
+
openWorldHint: true,
|
|
16
|
+
},
|
|
12
17
|
};
|
|
13
18
|
}
|
|
14
19
|
/**
|
|
@@ -20,6 +25,10 @@ export function createUninstallTool() {
|
|
|
20
25
|
description: 'Remove an MCP server',
|
|
21
26
|
inputSchema: zodToInputSchema(McpUninstallToolSchema),
|
|
22
27
|
outputSchema: zodToOutputSchema(McpUninstallOutputSchema),
|
|
28
|
+
annotations: {
|
|
29
|
+
title: 'Uninstall MCP Server',
|
|
30
|
+
destructiveHint: true,
|
|
31
|
+
},
|
|
23
32
|
};
|
|
24
33
|
}
|
|
25
34
|
/**
|
|
@@ -31,6 +40,11 @@ export function createUpdateTool() {
|
|
|
31
40
|
description: 'Update an MCP server',
|
|
32
41
|
inputSchema: zodToInputSchema(McpUpdateToolSchema),
|
|
33
42
|
outputSchema: zodToOutputSchema(McpUpdateOutputSchema),
|
|
43
|
+
annotations: {
|
|
44
|
+
title: 'Update MCP Server',
|
|
45
|
+
destructiveHint: true,
|
|
46
|
+
openWorldHint: true,
|
|
47
|
+
},
|
|
34
48
|
};
|
|
35
49
|
}
|
|
36
50
|
//# sourceMappingURL=installationTools.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installationTools.js","sourceRoot":"","sources":["../../../../src/core/capabilities/internal/installationTools.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEhF;;GAEG;AACH,MAAM,UAAU,iBAAiB;IAC/B,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,WAAW,EACT,uJAAuJ;QACzJ,WAAW,EAAE,gBAAgB,CAAC,oBAAoB,CAAwB;QAC1E,YAAY,EAAE,iBAAiB,CAAC,sBAAsB,CAAyB;
|
|
1
|
+
{"version":3,"file":"installationTools.js","sourceRoot":"","sources":["../../../../src/core/capabilities/internal/installationTools.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEhF;;GAEG;AACH,MAAM,UAAU,iBAAiB;IAC/B,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,WAAW,EACT,uJAAuJ;QACzJ,WAAW,EAAE,gBAAgB,CAAC,oBAAoB,CAAwB;QAC1E,YAAY,EAAE,iBAAiB,CAAC,sBAAsB,CAAyB;QAC/E,WAAW,EAAE;YACX,KAAK,EAAE,oBAAoB;YAC3B,eAAe,EAAE,IAAI;YACrB,aAAa,EAAE,IAAI;SACpB;KACF,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB;IACjC,OAAO;QACL,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,sBAAsB;QACnC,WAAW,EAAE,gBAAgB,CAAC,sBAAsB,CAAwB;QAC5E,YAAY,EAAE,iBAAiB,CAAC,wBAAwB,CAAyB;QACjF,WAAW,EAAE;YACX,KAAK,EAAE,sBAAsB;YAC7B,eAAe,EAAE,IAAI;SACtB;KACF,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO;QACL,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,sBAAsB;QACnC,WAAW,EAAE,gBAAgB,CAAC,mBAAmB,CAAwB;QACzE,YAAY,EAAE,iBAAiB,CAAC,qBAAqB,CAAyB;QAC9E,WAAW,EAAE;YACX,KAAK,EAAE,mBAAmB;YAC1B,eAAe,EAAE,IAAI;YACrB,aAAa,EAAE,IAAI;SACpB;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managementTools.d.ts","sourceRoot":"","sources":["../../../../src/core/capabilities/internal/managementTools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAkB1D;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"managementTools.d.ts","sourceRoot":"","sources":["../../../../src/core/capabilities/internal/managementTools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAkB1D;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAWvC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAWxC;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAWrC;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAWvC;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAWrC;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAYvC"}
|