@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.
Files changed (322) hide show
  1. package/build/admin/assets/{admin-OAuthServicesWorkspace-CzXIIHM0.js → admin-OAuthServicesWorkspace-C3DNmymC.js} +1 -1
  2. package/build/admin/assets/{admin-console-Mv3xmdoU.js → admin-console-BmdH0cQS.js} +3 -3
  3. package/build/admin/index.html +1 -1
  4. package/build/auth/oauthAuthorizationFlow.d.ts +4 -0
  5. package/build/auth/oauthAuthorizationFlow.d.ts.map +1 -1
  6. package/build/auth/oauthAuthorizationFlow.js +61 -4
  7. package/build/auth/oauthAuthorizationFlow.js.map +1 -1
  8. package/build/auth/storage/authCodeRepository.d.ts +1 -1
  9. package/build/auth/storage/authRequestRepository.d.ts +1 -1
  10. package/build/auth/storage/clientSessionRepository.d.ts +1 -1
  11. package/build/auth/storage/fileStorageService.d.ts +1 -1
  12. package/build/auth/storage/refreshTokenFamilyRepository.d.ts +1 -1
  13. package/build/auth/storage/refreshTokenFamilyRepository.js +1 -1
  14. package/build/auth/storage/sessionRepository.d.ts +1 -1
  15. package/build/auth/storage/sessionRepository.js +1 -1
  16. package/build/commands/admin/admin.d.ts +2 -2
  17. package/build/commands/admin/admin.js +3 -3
  18. package/build/commands/admin/index.js +1 -1
  19. package/build/commands/app/consolidate.js +1 -1
  20. package/build/commands/auth/index.js +1 -1
  21. package/build/commands/auth/login.js +1 -1
  22. package/build/commands/auth/runtimeTargetContext.js +1 -1
  23. package/build/commands/auth/status.js +1 -1
  24. package/build/commands/inspect/index.js +1 -1
  25. package/build/commands/inspect/inspect.d.ts +2 -2
  26. package/build/commands/inspect/inspect.d.ts.map +1 -1
  27. package/build/commands/inspect/inspect.js +37 -7
  28. package/build/commands/inspect/inspect.js.map +1 -1
  29. package/build/commands/inspect/inspectUtils.d.ts +1 -1
  30. package/build/commands/inspect/inspectUtils.d.ts.map +1 -1
  31. package/build/commands/inspect/inspectUtils.js +12 -3
  32. package/build/commands/inspect/inspectUtils.js.map +1 -1
  33. package/build/commands/instructions/index.js +1 -1
  34. package/build/commands/instructions/instructions.js +4 -4
  35. package/build/commands/mcp/enable.d.ts +1 -1
  36. package/build/commands/mcp/enable.js +2 -2
  37. package/build/commands/mcp/restart.d.ts +1 -1
  38. package/build/commands/mcp/restart.js +2 -2
  39. package/build/commands/mcp/status.d.ts +1 -1
  40. package/build/commands/mcp/status.js +2 -2
  41. package/build/commands/mcp/tokens.js +1 -1
  42. package/build/commands/mcp/tools.d.ts +1 -1
  43. package/build/commands/mcp/tools.js +1 -1
  44. package/build/commands/mcp/utils/mcpServerConfig.d.ts +1 -1
  45. package/build/commands/mcp/utils/mcpServerConfig.js +2 -2
  46. package/build/commands/preset/edit.js +1 -1
  47. package/build/commands/preset/interactive.js +1 -1
  48. package/build/commands/preset/show.js +1 -1
  49. package/build/commands/preset/test.js +1 -1
  50. package/build/commands/proxy/proxy.js +1 -1
  51. package/build/commands/run/index.js +1 -1
  52. package/build/commands/run/run.d.ts +3 -3
  53. package/build/commands/run/run.d.ts.map +1 -1
  54. package/build/commands/run/run.js +14 -8
  55. package/build/commands/run/run.js.map +1 -1
  56. package/build/commands/run/upstreamEofGuidance.d.ts +3 -0
  57. package/build/commands/run/upstreamEofGuidance.d.ts.map +1 -0
  58. package/build/commands/run/upstreamEofGuidance.js +19 -0
  59. package/build/commands/run/upstreamEofGuidance.js.map +1 -0
  60. package/build/commands/serve/serveBackground.d.ts +3 -0
  61. package/build/commands/serve/serveBackground.d.ts.map +1 -1
  62. package/build/commands/serve/serveBackground.js +19 -5
  63. package/build/commands/serve/serveBackground.js.map +1 -1
  64. package/build/commands/serve/serveStatus.d.ts +2 -1
  65. package/build/commands/serve/serveStatus.d.ts.map +1 -1
  66. package/build/commands/serve/serveStatus.js +30 -12
  67. package/build/commands/serve/serveStatus.js.map +1 -1
  68. package/build/commands/serve/serveStop.d.ts +2 -1
  69. package/build/commands/serve/serveStop.d.ts.map +1 -1
  70. package/build/commands/serve/serveStop.js +113 -20
  71. package/build/commands/serve/serveStop.js.map +1 -1
  72. package/build/commands/shared/clientSurfaceAttachment.d.ts +3 -3
  73. package/build/commands/shared/clientSurfaceAttachment.js +4 -4
  74. package/build/commands/shared/inspectApiSchemas.d.ts +13 -0
  75. package/build/commands/shared/inspectApiSchemas.d.ts.map +1 -1
  76. package/build/commands/shared/inspectApiSchemas.js +18 -0
  77. package/build/commands/shared/inspectApiSchemas.js.map +1 -1
  78. package/build/commands/shared/serveTargetResolver.d.ts +1 -1
  79. package/build/commands/shared/serveTargetResolver.js +1 -1
  80. package/build/commands/target/index.js +1 -1
  81. package/build/commands/wait/index.js +1 -1
  82. package/build/commands/wait/wait.d.ts +2 -2
  83. package/build/commands/wait/wait.js +4 -4
  84. package/build/config/configLoader.js +1 -1
  85. package/build/config/configManager.js +3 -3
  86. package/build/config/configuredServerTargets.js +1 -1
  87. package/build/config/mcpConfigManager.js +3 -3
  88. package/build/constants/mcp.d.ts +1 -1
  89. package/build/constants/mcp.js +1 -1
  90. package/build/constants.d.ts +1 -1
  91. package/build/constants.js +1 -1
  92. package/build/core/capabilities/asyncLoadingOrchestrator.d.ts +4 -4
  93. package/build/core/capabilities/asyncLoadingOrchestrator.js +3 -3
  94. package/build/core/capabilities/capabilityAggregator.d.ts +1 -1
  95. package/build/core/capabilities/capabilityAggregator.js +1 -1
  96. package/build/core/capabilities/capabilityCatalog.d.ts +2 -2
  97. package/build/core/capabilities/capabilityCatalog.js +5 -5
  98. package/build/core/capabilities/capabilityManager.d.ts +1 -1
  99. package/build/core/capabilities/capabilityManager.js +2 -2
  100. package/build/core/capabilities/capabilityPagination.d.ts +1 -1
  101. package/build/core/capabilities/configuredToolSnapshot.d.ts +1 -1
  102. package/build/core/capabilities/configuredToolSnapshot.js +1 -1
  103. package/build/core/capabilities/inspectPagination.d.ts +16 -0
  104. package/build/core/capabilities/inspectPagination.d.ts.map +1 -0
  105. package/build/core/capabilities/inspectPagination.js +41 -0
  106. package/build/core/capabilities/inspectPagination.js.map +1 -0
  107. package/build/core/capabilities/internal/discoveryTools.js +1 -1
  108. package/build/core/capabilities/internal/installationTools.js +1 -1
  109. package/build/core/capabilities/internal/managementTools.js +1 -1
  110. package/build/core/capabilities/internalCapabilitiesProvider.d.ts +2 -2
  111. package/build/core/capabilities/internalCapabilitiesProvider.js +8 -8
  112. package/build/core/capabilities/lazyLoadingOrchestrator.d.ts +3 -3
  113. package/build/core/capabilities/lazyLoadingOrchestrator.js +3 -3
  114. package/build/core/capabilities/metaToolProvider.d.ts +2 -2
  115. package/build/core/capabilities/runtimeCapabilityCatalog.d.ts +1 -1
  116. package/build/core/capabilities/runtimeCapabilityCatalog.js +4 -4
  117. package/build/core/capabilities/toolRegistry.d.ts +1 -1
  118. package/build/core/client/postAuthOAuthRecovery.d.ts +1 -1
  119. package/build/core/client/postAuthOAuthRecovery.js +3 -3
  120. package/build/core/client/renderableOutboundConnection.d.ts +2 -2
  121. package/build/core/configChangeHandler.js +6 -6
  122. package/build/core/filtering/clientFiltering.d.ts +1 -1
  123. package/build/core/filtering/filterCache.d.ts +1 -1
  124. package/build/core/filtering/filterSelection.d.ts +1 -1
  125. package/build/core/filtering/filteringService.d.ts +1 -1
  126. package/build/core/filtering/filteringService.js +1 -1
  127. package/build/core/filtering/templateFilteringService.d.ts +2 -2
  128. package/build/core/filtering/templateIndex.d.ts +1 -1
  129. package/build/core/flags/flagManager.js +1 -1
  130. package/build/core/instructions/effectiveServerInstructions.d.ts +1 -1
  131. package/build/core/instructions/instructionAggregator.d.ts +3 -3
  132. package/build/core/instructions/instructionAggregator.js +1 -1
  133. package/build/core/loading/loadingStateTracker.d.ts.map +1 -1
  134. package/build/core/loading/loadingStateTracker.js +5 -1
  135. package/build/core/loading/loadingStateTracker.js.map +1 -1
  136. package/build/core/loading/mcpLoadingManager.d.ts +2 -2
  137. package/build/core/notifications/notificationManager.d.ts +2 -2
  138. package/build/core/notifications/notificationManager.js +2 -2
  139. package/build/core/protocol/requestHandlerUtils.d.ts +4 -4
  140. package/build/core/protocol/requestHandlerUtils.js +9 -9
  141. package/build/core/server/adapters/ExternalServerAdapter.d.ts +2 -2
  142. package/build/core/server/adapters/ServerRegistry.d.ts +3 -3
  143. package/build/core/server/adapters/TemplateServerAdapter.d.ts +3 -3
  144. package/build/core/server/adapters/types.d.ts +3 -3
  145. package/build/core/server/adapters/types.js +1 -1
  146. package/build/core/server/agentConfig.d.ts +3 -3
  147. package/build/core/server/agentConfig.js +2 -2
  148. package/build/core/server/backendStdioSupervisor.d.ts.map +1 -1
  149. package/build/core/server/backendStdioSupervisor.js +8 -5
  150. package/build/core/server/backendStdioSupervisor.js.map +1 -1
  151. package/build/core/server/backgroundLaunchConfig.d.ts +1 -1
  152. package/build/core/server/backgroundLaunchConfig.js +1 -1
  153. package/build/core/server/backgroundRuntimeSupervisor.d.ts +2 -2
  154. package/build/core/server/backgroundRuntimeSupervisor.d.ts.map +1 -1
  155. package/build/core/server/backgroundRuntimeSupervisor.js +12 -4
  156. package/build/core/server/backgroundRuntimeSupervisor.js.map +1 -1
  157. package/build/core/server/backgroundRuntimeSupervisorState.d.ts +3 -0
  158. package/build/core/server/backgroundRuntimeSupervisorState.d.ts.map +1 -1
  159. package/build/core/server/backgroundRuntimeSupervisorState.js +3 -0
  160. package/build/core/server/backgroundRuntimeSupervisorState.js.map +1 -1
  161. package/build/core/server/connectionResolver.d.ts +1 -1
  162. package/build/core/server/disabledTools.d.ts +1 -1
  163. package/build/core/server/pidFileManager.d.ts +6 -2
  164. package/build/core/server/pidFileManager.d.ts.map +1 -1
  165. package/build/core/server/pidFileManager.js +13 -4
  166. package/build/core/server/pidFileManager.js.map +1 -1
  167. package/build/core/server/processIdentity.d.ts +27 -0
  168. package/build/core/server/processIdentity.d.ts.map +1 -0
  169. package/build/core/server/processIdentity.js +101 -0
  170. package/build/core/server/processIdentity.js.map +1 -0
  171. package/build/core/server/runtimeFileLock.d.ts +6 -0
  172. package/build/core/server/runtimeFileLock.d.ts.map +1 -0
  173. package/build/core/server/runtimeFileLock.js +34 -0
  174. package/build/core/server/runtimeFileLock.js.map +1 -0
  175. package/build/core/server/runtimeLifecycle.d.ts +5 -5
  176. package/build/core/server/runtimeLifecycle.d.ts.map +1 -1
  177. package/build/core/server/runtimeLifecycle.js +16 -3
  178. package/build/core/server/runtimeLifecycle.js.map +1 -1
  179. package/build/core/server/runtimeScopeOwnership.d.ts +3 -0
  180. package/build/core/server/runtimeScopeOwnership.d.ts.map +1 -1
  181. package/build/core/server/runtimeScopeOwnership.js +95 -28
  182. package/build/core/server/runtimeScopeOwnership.js.map +1 -1
  183. package/build/core/server/templateConfigurationManager.d.ts +1 -1
  184. package/build/core/server/toolDescriptionOverrides.d.ts +1 -1
  185. package/build/core/tools/handlers/serverManagementHandler.d.ts +4 -4
  186. package/build/core/tools/handlers/serverManagementHandler.js +3 -3
  187. package/build/core/tools/internal/adapters/helpers/configTransformers.d.ts +1 -1
  188. package/build/core/tools/internal/adapters/management/managementAdapter.d.ts +1 -1
  189. package/build/core/tools/internal/adapters/management/managementAdapter.js +2 -2
  190. package/build/core/tools/internal/adapters/management/toolHandlers.js +1 -1
  191. package/build/core/tools/internal/adapters/management/types.d.ts +1 -1
  192. package/build/core/tools/internal/adapters/management/validation.d.ts +1 -1
  193. package/build/core/tools/internal/adapters/validation/configValidation.d.ts +1 -1
  194. package/build/core/tools/internal/discoveryHandlers.js +1 -1
  195. package/build/core/tools/internal/installationHandlers.js +2 -2
  196. package/build/core/tools/internal/managementHandlers.js +2 -2
  197. package/build/core/types/server.d.ts +2 -2
  198. package/build/domains/admin/adminConfiguredServerService.d.ts +1 -1
  199. package/build/domains/admin/adminConfiguredServerService.js +2 -2
  200. package/build/domains/admin/adminDomain.d.ts +2 -2
  201. package/build/domains/admin/adminDomain.js +1 -1
  202. package/build/domains/admin/adminInstructionPreviewRuntime.d.ts +1 -1
  203. package/build/domains/admin/adminInstructionPreviewRuntime.js +1 -1
  204. package/build/domains/admin/adminInstructionTemplateService.d.ts +3 -3
  205. package/build/domains/admin/adminOAuthService.d.ts +1 -0
  206. package/build/domains/admin/adminOAuthService.d.ts.map +1 -1
  207. package/build/domains/admin/adminOAuthService.js +8 -2
  208. package/build/domains/admin/adminOAuthService.js.map +1 -1
  209. package/build/domains/admin/adminPresetService.d.ts +2 -2
  210. package/build/domains/admin/adminPresetService.js +2 -2
  211. package/build/domains/admin/configuredToolInventory.js +1 -1
  212. package/build/domains/admin/runtimeConfiguredToolInspectionService.js +1 -1
  213. package/build/domains/discovery/appDiscovery.js +2 -2
  214. package/build/domains/installation/metadata/defaultsProvider.d.ts +1 -1
  215. package/build/domains/installation/metadata/metadataExtractor.d.ts +1 -1
  216. package/build/domains/installation/serverInstallationSourceResolution.d.ts +1 -1
  217. package/build/domains/installation/serverInstallationTypes.d.ts +2 -2
  218. package/build/domains/installation/serverInstallationWorkflow.js +2 -2
  219. package/build/domains/instruction-template/instructionTemplateManager.d.ts +1 -1
  220. package/build/domains/instruction-template/instructionTemplateManager.js +1 -1
  221. package/build/domains/preset/manager/presetManager.d.ts +1 -1
  222. package/build/domains/preset/manager/presetManager.js +3 -3
  223. package/build/domains/preset/manager/presetManagerCleanup.d.ts +2 -2
  224. package/build/domains/preset/manager/presetStorage.d.ts +1 -1
  225. package/build/domains/preset/manager/presetTesting.d.ts +1 -1
  226. package/build/domains/preset/manager/presetTesting.js +2 -2
  227. package/build/domains/preset/manager/presetValidation.d.ts +1 -1
  228. package/build/domains/preset/manager/presetValidation.js +1 -1
  229. package/build/domains/preset/parsers/tagQueryEvaluator.d.ts +1 -1
  230. package/build/domains/preset/parsers/tagQueryParser.d.ts +1 -1
  231. package/build/domains/registry/formatters/commonFormatters.d.ts +1 -1
  232. package/build/domains/registry/formatters/serverDetailFormatter.d.ts +1 -1
  233. package/build/domains/registry/formatters/serverDetailFormatter.js +1 -1
  234. package/build/domains/registry/formatters/versionsFormatter.d.ts +1 -1
  235. package/build/domains/registry/searchFiltering.d.ts +1 -1
  236. package/build/domains/registry/searchFiltering.js +1 -1
  237. package/build/domains/server-management/types.d.ts +1 -1
  238. package/build/logger/configureGlobalLogger.js +1 -1
  239. package/build/sdk/legacy/auth/sdkOAuthClientProvider.d.ts +2 -2
  240. package/build/sdk/legacy/auth/sdkOAuthServerProvider.d.ts +4 -4
  241. package/build/sdk/legacy/auth/sdkOAuthServerProvider.js +1 -1
  242. package/build/sdk/legacy/client/runtime/clientManager.d.ts +1 -1
  243. package/build/sdk/legacy/client/runtime/legacyGatewayClientAdapter.d.ts +2 -2
  244. package/build/sdk/legacy/client/runtime/legacyGatewayClientAdapter.js +1 -1
  245. package/build/sdk/legacy/client/runtime/legacyOutboundConnection.js +1 -1
  246. package/build/sdk/legacy/client/runtime/legacySdkClientAdapter.d.ts +2 -2
  247. package/build/sdk/legacy/client/runtime/legacySdkClientAdapter.js +4 -4
  248. package/build/sdk/legacy/client/runtime/legacyTransport.d.ts +1 -1
  249. package/build/sdk/legacy/client/runtime/modernSdkClientAdapter.d.ts +1 -1
  250. package/build/sdk/legacy/client/runtime/modernSdkClientAdapter.js +2 -2
  251. package/build/sdk/legacy/client/runtime/outboundRequestParams.d.ts +1 -1
  252. package/build/sdk/legacy/client/runtime/serveClient.d.ts +2 -2
  253. package/build/sdk/legacy/client/runtime/serveClient.d.ts.map +1 -1
  254. package/build/sdk/legacy/client/runtime/serveClient.js +4 -4
  255. package/build/sdk/legacy/client/runtime/serveClient.js.map +1 -1
  256. package/build/sdk/legacy/commands/serve.js +1 -1
  257. package/build/sdk/legacy/server/protocol/notificationHandlers.d.ts +1 -1
  258. package/build/sdk/legacy/server/protocol/notificationHandlers.js +5 -5
  259. package/build/sdk/legacy/server/protocol/promptRequestHandlers.d.ts +1 -1
  260. package/build/sdk/legacy/server/protocol/promptRequestHandlers.js +3 -3
  261. package/build/sdk/legacy/server/protocol/requestHandlers.d.ts +1 -1
  262. package/build/sdk/legacy/server/protocol/requestHandlers.js +3 -3
  263. package/build/sdk/legacy/server/protocol/resourceRequestHandlers.d.ts +1 -1
  264. package/build/sdk/legacy/server/protocol/resourceRequestHandlers.js +4 -4
  265. package/build/sdk/legacy/server/protocol/toolRequestHandlers.d.ts +1 -1
  266. package/build/sdk/legacy/server/protocol/toolRequestHandlers.js +3 -3
  267. package/build/sdk/legacy/server/runtime/clientInstancePoolTypes.d.ts +2 -2
  268. package/build/sdk/legacy/server/runtime/connectionManager.d.ts +1 -1
  269. package/build/sdk/legacy/server/runtime/connectionManager.js +2 -2
  270. package/build/sdk/legacy/server/runtime/legacyInboundConnection.d.ts +2 -2
  271. package/build/sdk/legacy/server/runtime/legacySdkServerAdapter.d.ts +3 -3
  272. package/build/sdk/legacy/server/runtime/legacySdkServerAdapter.js +2 -2
  273. package/build/sdk/legacy/server/runtime/mcpLoggingEnhancer.d.ts +1 -1
  274. package/build/sdk/legacy/server/runtime/mcpServerLifecycleManager.d.ts +2 -2
  275. package/build/sdk/legacy/server/runtime/mcpServerLifecycleManager.js +1 -1
  276. package/build/sdk/legacy/server/runtime/requestContextPreparation.d.ts +1 -1
  277. package/build/sdk/legacy/server/runtime/serverManager.d.ts +1 -1
  278. package/build/sdk/legacy/server/runtime/serverManager.js +1 -1
  279. package/build/sdk/legacy/server/runtime/templateServerCleanup.d.ts +1 -1
  280. package/build/sdk/legacy/server/runtime/templateServerManager.d.ts +1 -1
  281. package/build/sdk/legacy/server/runtime/templateServerManager.js +1 -1
  282. package/build/sdk/legacy/shared/capabilityListCapture.d.ts +1 -1
  283. package/build/sdk/legacy/shared/capabilityListCapture.js +1 -1
  284. package/build/sdk/legacy/transport/http/loggingSseTransport.d.ts +2 -2
  285. package/build/sdk/legacy/transport/http/loggingSseTransport.js +1 -1
  286. package/build/sdk/legacy/transport/http/middlewares/scopeAuthMiddleware.d.ts +1 -1
  287. package/build/sdk/legacy/transport/http/middlewares/scopeAuthMiddleware.js +1 -1
  288. package/build/sdk/legacy/transport/http/modernInboundLegacyBridge.js +2 -2
  289. package/build/sdk/legacy/transport/http/restorableStreamableTransport.d.ts +1 -1
  290. package/build/sdk/legacy/transport/http/restorableStreamableTransport.js +1 -1
  291. package/build/sdk/legacy/transport/http/routes/sseRoutes.js +2 -2
  292. package/build/sdk/legacy/transport/http/server.js +2 -2
  293. package/build/sdk/legacy/transport/http/streamableSessionLifecycle.d.ts +1 -1
  294. package/build/sdk/legacy/transport/http/streamableSessionLifecycle.js +1 -1
  295. package/build/sdk/legacy/transport/restartableStdioTransport.d.ts +3 -3
  296. package/build/sdk/legacy/transport/restartableStdioTransport.js +1 -1
  297. package/build/sdk/legacy/transport/stdioProxyTransport.js +2 -2
  298. package/build/sdk/legacy/transport/transportFactory.js +3 -3
  299. package/build/sdk/legacy/validation/CustomJsonSchemaValidator.d.ts +1 -1
  300. package/build/transport/http/middlewares/httpRequestLogger.js +1 -1
  301. package/build/transport/http/middlewares/tagsExtractor.js +1 -1
  302. package/build/transport/http/routes/adminRoutes.d.ts +3 -1
  303. package/build/transport/http/routes/adminRoutes.d.ts.map +1 -1
  304. package/build/transport/http/routes/adminRoutes.js +36 -1
  305. package/build/transport/http/routes/adminRoutes.js.map +1 -1
  306. package/build/transport/http/routes/apiRoutes.js +1 -1
  307. package/build/transport/http/routes/inspectHelpers.js +1 -1
  308. package/build/transport/http/routes/inspectRequestContext.js +2 -2
  309. package/build/transport/http/routes/inspectRoutes.d.ts.map +1 -1
  310. package/build/transport/http/routes/inspectRoutes.js +57 -59
  311. package/build/transport/http/routes/inspectRoutes.js.map +1 -1
  312. package/build/transport/http/routes/modernHttpRoutes.js +1 -1
  313. package/build/transport/http/routes/oauthRoutes.d.ts.map +1 -1
  314. package/build/transport/http/routes/oauthRoutes.js +20 -4
  315. package/build/transport/http/routes/oauthRoutes.js.map +1 -1
  316. package/build/transport/http/routes/streamableHttpRoutes.d.ts +2 -2
  317. package/build/transport/http/routes/streamableHttpRoutes.js +7 -7
  318. package/build/transport/http/routes/toolRoutes.js +1 -1
  319. package/build/transport/http/storage/streamableSessionRepository.js +1 -1
  320. package/build/transport/http/utils/templateContextAuthority.js +1 -1
  321. package/build/utils/validation/urlDetection.js +1 -1
  322. 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.map
@@ -1 +1 @@
1
- {"version":3,"file":"inspectApiSchemas.js","sourceRoot":"","sources":["../../../src/commands/shared/inspectApiSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;AAEvE,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC;KACxC,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,wBAAwB;IAChC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE;CACzB,CAAC;KACD,WAAW,EAAE,CAAC;AAEjB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC;KACxC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC;CAC7C,CAAC;KACD,WAAW,EAAE,CAAC;AAEjB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC;KACvC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IACzB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,wBAAwB;IAChC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC;KACD,WAAW,EAAE,CAAC;AAEjB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACvB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;IAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC3D,CAAC;KACD,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"inspectApiSchemas.js","sourceRoot":"","sources":["../../../src/commands/shared/inspectApiSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;AAEvE,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC;KACxC,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,wBAAwB;IAChC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE;CACzB,CAAC;KACD,WAAW,EAAE,CAAC;AAEjB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC;KACxC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC;CAC7C,CAAC;KACD,WAAW,EAAE,CAAC;AAEjB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC;KACvC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IACzB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,wBAAwB;IAChC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC;KACD,WAAW,EAAE,CAAC;AAEjB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACvB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;IAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC3D,CAAC;KACD,WAAW,EAAE,CAAC;AAKjB,oFAAoF;AACpF,MAAM,iBAAiB,GAAG,CAAC;KACxB,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,WAAW,EAAE,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 '../../commands/shared/serveClient.js';
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 '../../commands/shared/serveClient.js';
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 '../../commands/shared/commandRunner.js';
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 '../../commands/shared/commandRunner.js';
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 '../../commands/shared/clientSurfaceAttachment.js';
2
- import { type InspectServerSummary } from '../../commands/shared/inspectApiSchemas.js';
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 '../../commands/shared/apiClient.js';
3
- import { attachReusableClientSurface, formatClientSurfaceAuthRequiredMessage, getClientSurfaceAuthRecoveryCommand, } from '../../commands/shared/clientSurfaceAttachment.js';
4
- import { buildFilterSelectionQuery } from '../../commands/shared/filterSelectionQuery.js';
5
- import { inspectServersResultSchema } from '../../commands/shared/inspectApiSchemas.js';
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 '../config/mcpConfigMerge.js';
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 '../config/configuredServerTargets.js';
3
- import { McpConfigManager } from '../config/mcpConfigManager.js';
4
- import { mergeGlobalAndServerConfig } from '../config/mcpConfigMerge.js';
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 '../config/mcpConfigManager.js';
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 '../config/configContext.js';
5
- import { ConfigLoader } from '../config/configLoader.js';
6
- import { mergeGlobalAndServerConfig } from '../config/mcpConfigMerge.js';
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';
@@ -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.0";
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";
@@ -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.0';
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 = {
@@ -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';
@@ -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 '../../core/loading/mcpLoadingManager.js';
3
- import { NotificationManager } from '../../core/notifications/notificationManager.js';
4
- import { ServerManager } from '../../core/server/serverManager.js';
5
- import { InboundConnection, OutboundConnections } from '../../core/types/index.js';
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 '../../core/loading/mcpLoadingManager.js';
3
- import { NotificationManager } from '../../core/notifications/notificationManager.js';
4
- import { AgentConfigManager } from '../../core/server/agentConfig.js';
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 '../../core/types/index.js';
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 '../../core/capabilities/internalCapabilitiesProvider.js';
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 '../../core/server/connectionResolver.js';
2
- import { type MCPServerParams, type OutboundConnection, type OutboundConnections } from '../../core/types/index.js';
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 '../../core/client/legacyAdapterRequest.js';
2
- import { ConnectionResolver } from '../../core/server/connectionResolver.js';
3
- import { getDisabledSourceToolError, isSourceToolDisabled } from '../../core/server/disabledTools.js';
4
- import { applySourceToolDescription } from '../../core/server/toolDescriptionOverrides.js';
5
- import { ClientStatus, } from '../../core/types/index.js';
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 '../../core/types/index.js';
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 '../../core/protocol/notificationHandlers.js';
2
- import { registerRequestHandlers } from '../../core/protocol/requestHandlers.js';
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 '../../core/types/index.js';
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 '../../core/types/index.js';
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 {
@@ -1,4 +1,4 @@
1
- import { ClientStatus } from '../../core/types/index.js';
1
+ import { ClientStatus } from '../types/index.js';
2
2
  const snapshots = new WeakMap();
3
3
  const pendingPages = new WeakMap();
4
4
  const lastCompleteTargetSnapshots = new Map();
@@ -0,0 +1,16 @@
1
+ export declare class InspectCursorError extends Error {
2
+ constructor();
3
+ }
4
+ /** Page a freshly authorized, complete inventory; cursors never carry tool data. */
5
+ export declare function paginateInspectTools<T>(tools: T[], options: {
6
+ limit: number;
7
+ all?: boolean;
8
+ cursor?: string;
9
+ scope: unknown;
10
+ }): {
11
+ tools: T[];
12
+ totalTools: number;
13
+ hasMore: boolean;
14
+ nextCursor?: string;
15
+ };
16
+ //# sourceMappingURL=inspectPagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inspectPagination.d.ts","sourceRoot":"","sources":["../../../src/core/capabilities/inspectPagination.ts"],"names":[],"mappings":"AAUA,qBAAa,kBAAmB,SAAQ,KAAK;;CAI5C;AAED,oFAAoF;AACpF,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,KAAK,EAAE,CAAC,EAAE,EACV,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GACzE;IAAE,KAAK,EAAE,CAAC,EAAE,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAwB3E"}
@@ -0,0 +1,41 @@
1
+ import { createHash } from 'node:crypto';
2
+ import { z } from 'zod';
3
+ const cursorSchema = z.object({
4
+ version: z.literal(1),
5
+ inventory: z.string(),
6
+ offset: z.number().int().positive().safe(),
7
+ });
8
+ export class InspectCursorError extends Error {
9
+ constructor() {
10
+ super('Invalid or stale inspect cursor. Restart inspection without --cursor.');
11
+ }
12
+ }
13
+ /** Page a freshly authorized, complete inventory; cursors never carry tool data. */
14
+ export function paginateInspectTools(tools, options) {
15
+ const inventory = createHash('sha256')
16
+ .update(JSON.stringify([options.scope, tools]))
17
+ .digest('hex');
18
+ let offset = 0;
19
+ if (options.cursor !== undefined) {
20
+ try {
21
+ const cursor = cursorSchema.parse(JSON.parse(Buffer.from(options.cursor, 'base64url').toString('utf8')));
22
+ if (cursor.inventory !== inventory || cursor.offset >= tools.length)
23
+ throw new InspectCursorError();
24
+ offset = cursor.offset;
25
+ }
26
+ catch {
27
+ throw new InspectCursorError();
28
+ }
29
+ }
30
+ const end = options.all ? tools.length : Math.min(offset + options.limit, tools.length);
31
+ const hasMore = end < tools.length;
32
+ return {
33
+ tools: tools.slice(offset, end),
34
+ totalTools: tools.length,
35
+ hasMore,
36
+ nextCursor: hasMore
37
+ ? Buffer.from(JSON.stringify({ version: 1, inventory, offset: end })).toString('base64url')
38
+ : undefined,
39
+ };
40
+ }
41
+ //# sourceMappingURL=inspectPagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inspectPagination.js","sourceRoot":"","sources":["../../../src/core/capabilities/inspectPagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE;CAC3C,CAAC,CAAC;AAEH,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAC3C;QACE,KAAK,CAAC,uEAAuE,CAAC,CAAC;IACjF,CAAC;CACF;AAED,oFAAoF;AACpF,MAAM,UAAU,oBAAoB,CAClC,KAAU,EACV,OAA0E;IAE1E,MAAM,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC;SACnC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;SAC9C,MAAM,CAAC,KAAK,CAAC,CAAC;IACjB,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;QACjC,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YACzG,IAAI,MAAM,CAAC,SAAS,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM;gBAAE,MAAM,IAAI,kBAAkB,EAAE,CAAC;YACpG,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QACzB,CAAC;QAAC,MAAM,CAAC;YACP,MAAM,IAAI,kBAAkB,EAAE,CAAC;QACjC,CAAC;IACH,CAAC;IACD,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxF,MAAM,OAAO,GAAG,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC;IACnC,OAAO;QACL,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,GAAG,CAAC;QAC/B,UAAU,EAAE,KAAK,CAAC,MAAM;QACxB,OAAO;QACP,UAAU,EAAE,OAAO;YACjB,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC;YAC3F,CAAC,CAAC,SAAS;KACd,CAAC;AACJ,CAAC"}
@@ -4,7 +4,7 @@
4
4
  * This module contains factory functions for creating discovery-related internal MCP tools
5
5
  * including search and registry management tools.
6
6
  */
7
- import { McpInfoOutputSchema, McpInfoToolSchema, McpRegistryInfoOutputSchema, McpRegistryInfoSchema, McpRegistryListOutputSchema, McpRegistryListSchema, McpRegistryStatusOutputSchema, McpRegistryStatusSchema, McpSearchOutputSchema, McpSearchToolSchema, } from '../../../core/tools/internal/schemas/index.js';
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 '../../../core/tools/internal/schemas/index.js';
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 '../../../core/tools/internal/schemas/index.js';
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 '../../core/capabilities/capabilityVisibility.js';
9
- import { LazyLoadingOrchestrator } from '../../core/capabilities/lazyLoadingOrchestrator.js';
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 '../../core/capabilities/internal/discoveryTools.js';
9
- import { createInstallTool, createUninstallTool, createUpdateTool, } from '../../core/capabilities/internal/installationTools.js';
10
- import { createToolInvokeTool, createToolListTool, createToolSchemaTool, } from '../../core/capabilities/internal/lazyTools.js';
11
- import { createDisableTool, createEditTool, createEnableTool, createListTool, createReloadTool, createStatusTool, } from '../../core/capabilities/internal/managementTools.js';
12
- import { FlagManager } from '../../core/flags/flagManager.js';
13
- import { AgentConfigManager } from '../../core/server/agentConfig.js';
14
- import { cleanupInternalToolHandlers, handleMcpDisable, handleMcpEdit, handleMcpEnable, handleMcpInfo, handleMcpInstall, handleMcpList, handleMcpRegistryInfo, handleMcpRegistryList, handleMcpRegistryStatus, handleMcpReload, handleMcpSearch, handleMcpStatus, handleMcpUninstall, handleMcpUpdate, } from '../../core/tools/internal/index.js';
15
- import { McpDisableToolSchema, McpEditToolSchema, McpEnableToolSchema, McpInfoToolSchema, McpInstallToolSchema, McpListToolSchema, McpRegistryInfoSchema, McpRegistryListSchema, McpRegistryStatusSchema, McpReloadToolSchema, McpSearchToolSchema, McpStatusToolSchema, McpUninstallToolSchema, McpUpdateToolSchema, } from '../../core/tools/internal/schemas/index.js';
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 '../../core/server/agentConfig.js';
3
- import { TemplateHashProvider } from '../../core/server/connectionResolver.js';
4
- import { OutboundConnections } from '../../core/types/index.js';
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 '../../core/client/legacyAdapterRequest.js';
3
- import { ConnectionResolver } from '../../core/server/connectionResolver.js';
4
- import { ClientStatus } from '../../core/types/index.js';
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 '../../core/server/connectionResolver.js';
2
- import { OutboundConnections } from '../../core/types/index.js';
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 '../../core/types/index.js';
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 '../../core/client/legacyAdapterRequest.js';
3
- import { isSourceToolDisabled } from '../../core/server/disabledTools.js';
4
- import { applySourceToolDescription } from '../../core/server/toolDescriptionOverrides.js';
5
- import { ClientStatus, } from '../../core/types/index.js';
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 '../../core/types/index.js';
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 '../../core/types/index.js';
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 '../../core/loading/loadingStateTracker.js';
2
- import { McpLoadingManager } from '../../core/loading/mcpLoadingManager.js';
3
- import { ClientStatus } from '../../core/types/index.js';
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 '../../core/types/client.js';
2
- import { ClientStatus } from '../../core/types/client.js';
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 '../core/capabilities/configuredToolSnapshot.js';
3
- import { ServerManager } from '../core/server/serverManager.js';
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('../core/server/agentConfig.js');
337
- const { NotificationManager } = await import('../core/notifications/notificationManager.js');
338
- const { CapabilityAggregator } = await import('../core/capabilities/capabilityAggregator.js');
339
- const { createCapabilityNotificationFacts } = await import('../core/capabilities/capabilityNotificationFacts.js');
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 '../../core/types/index.js';
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 '../../core/types/index.js';
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 '../../core/types/index.js';
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 '../../core/types/index.js';
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 '../../core/types/client.js';
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 '../../core/types/index.js';
2
- import { InboundConnectionConfig } from '../../core/types/index.js';
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
  /**