@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.
Files changed (410) hide show
  1. package/build/auth/sessionTypes.d.ts +19 -0
  2. package/build/auth/sessionTypes.d.ts.map +1 -1
  3. package/build/commands/app/backups.d.ts.map +1 -1
  4. package/build/commands/app/backups.js +52 -42
  5. package/build/commands/app/backups.js.map +1 -1
  6. package/build/commands/app/consolidate.d.ts.map +1 -1
  7. package/build/commands/app/consolidate.js +66 -55
  8. package/build/commands/app/consolidate.js.map +1 -1
  9. package/build/commands/app/discover.d.ts.map +1 -1
  10. package/build/commands/app/discover.js +32 -25
  11. package/build/commands/app/discover.js.map +1 -1
  12. package/build/commands/app/index.d.ts.map +1 -1
  13. package/build/commands/app/index.js +2 -1
  14. package/build/commands/app/index.js.map +1 -1
  15. package/build/commands/app/list.d.ts.map +1 -1
  16. package/build/commands/app/list.js +35 -28
  17. package/build/commands/app/list.js.map +1 -1
  18. package/build/commands/app/restore.d.ts.map +1 -1
  19. package/build/commands/app/restore.js +74 -63
  20. package/build/commands/app/restore.js.map +1 -1
  21. package/build/commands/app/status.d.ts.map +1 -1
  22. package/build/commands/app/status.js +51 -43
  23. package/build/commands/app/status.js.map +1 -1
  24. package/build/commands/mcp/add.d.ts.map +1 -1
  25. package/build/commands/mcp/add.js +29 -23
  26. package/build/commands/mcp/add.js.map +1 -1
  27. package/build/commands/mcp/enable.d.ts.map +1 -1
  28. package/build/commands/mcp/enable.js +16 -15
  29. package/build/commands/mcp/enable.js.map +1 -1
  30. package/build/commands/mcp/index.d.ts.map +1 -1
  31. package/build/commands/mcp/index.js +2 -1
  32. package/build/commands/mcp/index.js.map +1 -1
  33. package/build/commands/mcp/install.d.ts.map +1 -1
  34. package/build/commands/mcp/install.js +44 -46
  35. package/build/commands/mcp/install.js.map +1 -1
  36. package/build/commands/mcp/list.d.ts.map +1 -1
  37. package/build/commands/mcp/list.js +51 -37
  38. package/build/commands/mcp/list.js.map +1 -1
  39. package/build/commands/mcp/remove.d.ts.map +1 -1
  40. package/build/commands/mcp/remove.js +23 -16
  41. package/build/commands/mcp/remove.js.map +1 -1
  42. package/build/commands/mcp/status.d.ts.map +1 -1
  43. package/build/commands/mcp/status.js +81 -73
  44. package/build/commands/mcp/status.js.map +1 -1
  45. package/build/commands/mcp/tokens.d.ts.map +1 -1
  46. package/build/commands/mcp/tokens.js +46 -47
  47. package/build/commands/mcp/tokens.js.map +1 -1
  48. package/build/commands/mcp/uninstall.d.ts.map +1 -1
  49. package/build/commands/mcp/uninstall.js +8 -6
  50. package/build/commands/mcp/uninstall.js.map +1 -1
  51. package/build/commands/mcp/update.d.ts.map +1 -1
  52. package/build/commands/mcp/update.js +11 -8
  53. package/build/commands/mcp/update.js.map +1 -1
  54. package/build/commands/mcp/utils/installWizard.d.ts.map +1 -1
  55. package/build/commands/mcp/utils/installWizard.js +3 -2
  56. package/build/commands/mcp/utils/installWizard.js.map +1 -1
  57. package/build/commands/mcp/utils/serverUtils.d.ts +8 -4
  58. package/build/commands/mcp/utils/serverUtils.d.ts.map +1 -1
  59. package/build/commands/mcp/utils/serverUtils.js +0 -3
  60. package/build/commands/mcp/utils/serverUtils.js.map +1 -1
  61. package/build/commands/mcp/wizard/components/serverDetailsDisplay.d.ts.map +1 -1
  62. package/build/commands/mcp/wizard/components/serverDetailsDisplay.js +4 -3
  63. package/build/commands/mcp/wizard/components/serverDetailsDisplay.js.map +1 -1
  64. package/build/commands/mcp/wizard/components/stepIndicator.d.ts.map +1 -1
  65. package/build/commands/mcp/wizard/components/stepIndicator.js +3 -2
  66. package/build/commands/mcp/wizard/components/stepIndicator.js.map +1 -1
  67. package/build/commands/mcp/wizard/components/welcomeScreen.d.ts.map +1 -1
  68. package/build/commands/mcp/wizard/components/welcomeScreen.js +2 -1
  69. package/build/commands/mcp/wizard/components/welcomeScreen.js.map +1 -1
  70. package/build/commands/mcp/wizard/configuration.d.ts.map +1 -1
  71. package/build/commands/mcp/wizard/configuration.js +10 -9
  72. package/build/commands/mcp/wizard/configuration.js.map +1 -1
  73. package/build/commands/mcp/wizard/display.d.ts.map +1 -1
  74. package/build/commands/mcp/wizard/display.js +9 -8
  75. package/build/commands/mcp/wizard/display.js.map +1 -1
  76. package/build/commands/mcp/wizard/search.d.ts.map +1 -1
  77. package/build/commands/mcp/wizard/search.js +4 -3
  78. package/build/commands/mcp/wizard/search.js.map +1 -1
  79. package/build/commands/preset/create.d.ts.map +1 -1
  80. package/build/commands/preset/create.js +7 -6
  81. package/build/commands/preset/create.js.map +1 -1
  82. package/build/commands/preset/delete.d.ts.map +1 -1
  83. package/build/commands/preset/delete.js +4 -2
  84. package/build/commands/preset/delete.js.map +1 -1
  85. package/build/commands/preset/edit.d.ts.map +1 -1
  86. package/build/commands/preset/edit.js +8 -5
  87. package/build/commands/preset/edit.js.map +1 -1
  88. package/build/commands/preset/interactive.d.ts.map +1 -1
  89. package/build/commands/preset/interactive.js +24 -15
  90. package/build/commands/preset/interactive.js.map +1 -1
  91. package/build/commands/preset/list.d.ts.map +1 -1
  92. package/build/commands/preset/list.js +12 -10
  93. package/build/commands/preset/list.js.map +1 -1
  94. package/build/commands/preset/show.d.ts.map +1 -1
  95. package/build/commands/preset/show.js +3 -2
  96. package/build/commands/preset/show.js.map +1 -1
  97. package/build/commands/preset/test.d.ts.map +1 -1
  98. package/build/commands/preset/test.js +2 -1
  99. package/build/commands/preset/test.js.map +1 -1
  100. package/build/commands/preset/url.d.ts.map +1 -1
  101. package/build/commands/preset/url.js +2 -1
  102. package/build/commands/preset/url.js.map +1 -1
  103. package/build/commands/proxy/index.d.ts.map +1 -1
  104. package/build/commands/proxy/index.js +5 -0
  105. package/build/commands/proxy/index.js.map +1 -1
  106. package/build/commands/proxy/proxy.d.ts.map +1 -1
  107. package/build/commands/proxy/proxy.js +1 -0
  108. package/build/commands/proxy/proxy.js.map +1 -1
  109. package/build/commands/registry/index.d.ts.map +1 -1
  110. package/build/commands/registry/index.js +2 -1
  111. package/build/commands/registry/index.js.map +1 -1
  112. package/build/commands/registry/search.d.ts.map +1 -1
  113. package/build/commands/registry/search.js +42 -37
  114. package/build/commands/registry/search.js.map +1 -1
  115. package/build/commands/registry/show.d.ts.map +1 -1
  116. package/build/commands/registry/show.js +8 -7
  117. package/build/commands/registry/show.js.map +1 -1
  118. package/build/commands/registry/status.d.ts.map +1 -1
  119. package/build/commands/registry/status.js +26 -16
  120. package/build/commands/registry/status.js.map +1 -1
  121. package/build/commands/registry/versions.d.ts.map +1 -1
  122. package/build/commands/registry/versions.js +8 -7
  123. package/build/commands/registry/versions.js.map +1 -1
  124. package/build/config/configChangeDetector.d.ts +8 -0
  125. package/build/config/configChangeDetector.d.ts.map +1 -0
  126. package/build/config/configChangeDetector.js +49 -0
  127. package/build/config/configChangeDetector.js.map +1 -0
  128. package/build/config/configLoader.d.ts +16 -0
  129. package/build/config/configLoader.d.ts.map +1 -0
  130. package/build/config/configLoader.js +155 -0
  131. package/build/config/configLoader.js.map +1 -0
  132. package/build/config/configManager.d.ts +49 -86
  133. package/build/config/configManager.d.ts.map +1 -1
  134. package/build/config/configManager.js +188 -301
  135. package/build/config/configManager.js.map +1 -1
  136. package/build/config/configWatcher.d.ts +18 -0
  137. package/build/config/configWatcher.d.ts.map +1 -0
  138. package/build/config/configWatcher.js +78 -0
  139. package/build/config/configWatcher.js.map +1 -0
  140. package/build/config/projectConfigTypes.d.ts +40 -0
  141. package/build/config/projectConfigTypes.d.ts.map +1 -1
  142. package/build/config/projectConfigTypes.js +21 -0
  143. package/build/config/projectConfigTypes.js.map +1 -1
  144. package/build/config/templateProcessor.d.ts +14 -0
  145. package/build/config/templateProcessor.d.ts.map +1 -0
  146. package/build/config/templateProcessor.js +102 -0
  147. package/build/config/templateProcessor.js.map +1 -0
  148. package/build/config/types.d.ts +36 -0
  149. package/build/config/types.d.ts.map +1 -0
  150. package/build/config/types.js +14 -0
  151. package/build/config/types.js.map +1 -0
  152. package/build/constants/mcp.d.ts +1 -1
  153. package/build/constants/mcp.d.ts.map +1 -1
  154. package/build/constants/mcp.js +1 -1
  155. package/build/constants/mcp.js.map +1 -1
  156. package/build/core/capabilities/capabilityManager.d.ts +3 -10
  157. package/build/core/capabilities/capabilityManager.d.ts.map +1 -1
  158. package/build/core/capabilities/internal/discoveryTools.d.ts.map +1 -1
  159. package/build/core/capabilities/internal/discoveryTools.js +25 -0
  160. package/build/core/capabilities/internal/discoveryTools.js.map +1 -1
  161. package/build/core/capabilities/internal/installationTools.d.ts.map +1 -1
  162. package/build/core/capabilities/internal/installationTools.js +14 -0
  163. package/build/core/capabilities/internal/installationTools.js.map +1 -1
  164. package/build/core/capabilities/internal/managementTools.d.ts.map +1 -1
  165. package/build/core/capabilities/internal/managementTools.js +25 -0
  166. package/build/core/capabilities/internal/managementTools.js.map +1 -1
  167. package/build/core/client/clientFactory.d.ts +7 -0
  168. package/build/core/client/clientFactory.d.ts.map +1 -0
  169. package/build/core/client/clientFactory.js +36 -0
  170. package/build/core/client/clientFactory.js.map +1 -0
  171. package/build/core/client/clientManager.d.ts +13 -101
  172. package/build/core/client/clientManager.d.ts.map +1 -1
  173. package/build/core/client/clientManager.js +115 -418
  174. package/build/core/client/clientManager.js.map +1 -1
  175. package/build/core/client/connectionHandler.d.ts +8 -0
  176. package/build/core/client/connectionHandler.d.ts.map +1 -0
  177. package/build/core/client/connectionHandler.js +80 -0
  178. package/build/core/client/connectionHandler.js.map +1 -0
  179. package/build/core/client/oauthFlowHandler.d.ts +10 -0
  180. package/build/core/client/oauthFlowHandler.d.ts.map +1 -0
  181. package/build/core/client/oauthFlowHandler.js +81 -0
  182. package/build/core/client/oauthFlowHandler.js.map +1 -0
  183. package/build/core/client/transportRecreator.d.ts +5 -0
  184. package/build/core/client/transportRecreator.d.ts.map +1 -0
  185. package/build/core/client/transportRecreator.js +23 -0
  186. package/build/core/client/transportRecreator.js.map +1 -0
  187. package/build/core/client/types.d.ts +7 -0
  188. package/build/core/client/types.d.ts.map +1 -0
  189. package/build/core/client/types.js +11 -0
  190. package/build/core/client/types.js.map +1 -0
  191. package/build/core/configChangeHandler.d.ts.map +1 -1
  192. package/build/core/configChangeHandler.js +11 -5
  193. package/build/core/configChangeHandler.js.map +1 -1
  194. package/build/core/context/globalContextManager.d.ts +58 -0
  195. package/build/core/context/globalContextManager.d.ts.map +1 -0
  196. package/build/core/context/globalContextManager.js +190 -0
  197. package/build/core/context/globalContextManager.js.map +1 -0
  198. package/build/core/filtering/clientFiltering.d.ts +1 -2
  199. package/build/core/filtering/clientFiltering.d.ts.map +1 -1
  200. package/build/core/filtering/clientTemplateTracker.d.ts +116 -0
  201. package/build/core/filtering/clientTemplateTracker.d.ts.map +1 -0
  202. package/build/core/filtering/clientTemplateTracker.js +286 -0
  203. package/build/core/filtering/clientTemplateTracker.js.map +1 -0
  204. package/build/core/filtering/filterCache.d.ts +121 -0
  205. package/build/core/filtering/filterCache.d.ts.map +1 -0
  206. package/build/core/filtering/filterCache.js +359 -0
  207. package/build/core/filtering/filterCache.js.map +1 -0
  208. package/build/core/filtering/index.d.ts +16 -0
  209. package/build/core/filtering/index.d.ts.map +1 -0
  210. package/build/core/filtering/index.js +16 -0
  211. package/build/core/filtering/index.js.map +1 -0
  212. package/build/core/filtering/templateFilteringService.d.ts +72 -0
  213. package/build/core/filtering/templateFilteringService.d.ts.map +1 -0
  214. package/build/core/filtering/templateFilteringService.js +293 -0
  215. package/build/core/filtering/templateFilteringService.js.map +1 -0
  216. package/build/core/filtering/templateIndex.d.ts +132 -0
  217. package/build/core/filtering/templateIndex.d.ts.map +1 -0
  218. package/build/core/filtering/templateIndex.js +368 -0
  219. package/build/core/filtering/templateIndex.js.map +1 -0
  220. package/build/core/flags/flagManager.d.ts +8 -4
  221. package/build/core/flags/flagManager.d.ts.map +1 -1
  222. package/build/core/flags/flagManager.js.map +1 -1
  223. package/build/core/protocol/requestHandlers.d.ts.map +1 -1
  224. package/build/core/protocol/requestHandlers.js +208 -46
  225. package/build/core/protocol/requestHandlers.js.map +1 -1
  226. package/build/core/server/clientInstancePool.d.ts +146 -0
  227. package/build/core/server/clientInstancePool.d.ts.map +1 -0
  228. package/build/core/server/clientInstancePool.js +407 -0
  229. package/build/core/server/clientInstancePool.js.map +1 -0
  230. package/build/core/server/connectionManager.d.ts +70 -0
  231. package/build/core/server/connectionManager.d.ts.map +1 -0
  232. package/build/core/server/connectionManager.js +240 -0
  233. package/build/core/server/connectionManager.js.map +1 -0
  234. package/build/core/server/mcpServerLifecycleManager.d.ts +55 -0
  235. package/build/core/server/mcpServerLifecycleManager.d.ts.map +1 -0
  236. package/build/core/server/mcpServerLifecycleManager.js +272 -0
  237. package/build/core/server/mcpServerLifecycleManager.js.map +1 -0
  238. package/build/core/server/serverManager.d.ts +56 -56
  239. package/build/core/server/serverManager.d.ts.map +1 -1
  240. package/build/core/server/serverManager.js +160 -431
  241. package/build/core/server/serverManager.js.map +1 -1
  242. package/build/core/server/templateConfigurationManager.d.ts +51 -0
  243. package/build/core/server/templateConfigurationManager.d.ts.map +1 -0
  244. package/build/core/server/templateConfigurationManager.js +160 -0
  245. package/build/core/server/templateConfigurationManager.js.map +1 -0
  246. package/build/core/server/templateServerManager.d.ts +92 -0
  247. package/build/core/server/templateServerManager.d.ts.map +1 -0
  248. package/build/core/server/templateServerManager.js +367 -0
  249. package/build/core/server/templateServerManager.js.map +1 -0
  250. package/build/core/tools/handlers/serverManagementHandler.d.ts +51 -1
  251. package/build/core/tools/handlers/serverManagementHandler.d.ts.map +1 -1
  252. package/build/core/tools/handlers/serverManagementHandler.js +42 -0
  253. package/build/core/tools/handlers/serverManagementHandler.js.map +1 -1
  254. package/build/core/tools/internal/adapters/helpers/configTransformers.d.ts +11 -1
  255. package/build/core/tools/internal/adapters/helpers/configTransformers.d.ts.map +1 -1
  256. package/build/core/tools/internal/adapters/installation/types.d.ts +2 -4
  257. package/build/core/tools/internal/adapters/installation/types.d.ts.map +1 -1
  258. package/build/core/tools/internal/adapters/installationAdapter.d.ts +2 -4
  259. package/build/core/tools/internal/adapters/installationAdapter.d.ts.map +1 -1
  260. package/build/core/tools/internal/adapters/installationAdapter.js.map +1 -1
  261. package/build/core/tools/internal/adapters/management/managementAdapter.d.ts +2 -5
  262. package/build/core/tools/internal/adapters/management/managementAdapter.d.ts.map +1 -1
  263. package/build/core/tools/internal/adapters/management/managementAdapter.js.map +1 -1
  264. package/build/core/tools/internal/adapters/management/types.d.ts +8 -4
  265. package/build/core/tools/internal/adapters/management/types.d.ts.map +1 -1
  266. package/build/core/tools/internal/index.d.ts +0 -31
  267. package/build/core/tools/internal/index.d.ts.map +1 -1
  268. package/build/core/tools/internal/index.js +4 -3
  269. package/build/core/tools/internal/index.js.map +1 -1
  270. package/build/core/tools/internal/schemas/index.d.ts +3 -3
  271. package/build/core/tools/internal/schemas/management.d.ts +3 -3
  272. package/build/core/types/server.d.ts +19 -0
  273. package/build/core/types/server.d.ts.map +1 -1
  274. package/build/core/types/server.js.map +1 -1
  275. package/build/core/types/transport.d.ts +178 -0
  276. package/build/core/types/transport.d.ts.map +1 -1
  277. package/build/core/types/transport.js +34 -0
  278. package/build/core/types/transport.js.map +1 -1
  279. package/build/core/validation/CustomJsonSchemaValidator.d.ts.map +1 -1
  280. package/build/core/validation/CustomJsonSchemaValidator.js +4 -3
  281. package/build/core/validation/CustomJsonSchemaValidator.js.map +1 -1
  282. package/build/domains/discovery/appPresets.d.ts.map +1 -1
  283. package/build/domains/discovery/appPresets.js +9 -7
  284. package/build/domains/discovery/appPresets.js.map +1 -1
  285. package/build/domains/installation/configurators/cliArgsConfigurator.d.ts.map +1 -1
  286. package/build/domains/installation/configurators/cliArgsConfigurator.js +8 -4
  287. package/build/domains/installation/configurators/cliArgsConfigurator.js.map +1 -1
  288. package/build/domains/installation/configurators/envVarConfigurator.d.ts.map +1 -1
  289. package/build/domains/installation/configurators/envVarConfigurator.js +8 -4
  290. package/build/domains/installation/configurators/envVarConfigurator.js.map +1 -1
  291. package/build/domains/installation/configurators/tagsConfigurator.d.ts +2 -4
  292. package/build/domains/installation/configurators/tagsConfigurator.d.ts.map +1 -1
  293. package/build/domains/installation/configurators/tagsConfigurator.js +4 -7
  294. package/build/domains/installation/configurators/tagsConfigurator.js.map +1 -1
  295. package/build/domains/installation/validators/conflictDetector.d.ts +6 -4
  296. package/build/domains/installation/validators/conflictDetector.d.ts.map +1 -1
  297. package/build/domains/installation/validators/conflictDetector.js +0 -3
  298. package/build/domains/installation/validators/conflictDetector.js.map +1 -1
  299. package/build/domains/preset/manager/presetManager.js +1 -1
  300. package/build/domains/preset/manager/presetManager.js.map +1 -1
  301. package/build/domains/preset/parsers/tagQueryEvaluator.d.ts +8 -4
  302. package/build/domains/preset/parsers/tagQueryEvaluator.d.ts.map +1 -1
  303. package/build/domains/preset/parsers/tagQueryEvaluator.js.map +1 -1
  304. package/build/domains/preset/services/presetErrorHandler.d.ts +0 -7
  305. package/build/domains/preset/services/presetErrorHandler.d.ts.map +1 -1
  306. package/build/domains/preset/services/presetErrorHandler.js +10 -37
  307. package/build/domains/preset/services/presetErrorHandler.js.map +1 -1
  308. package/build/domains/registry/cacheManager.d.ts +11 -1
  309. package/build/domains/registry/cacheManager.d.ts.map +1 -1
  310. package/build/domains/registry/cacheManager.js +21 -3
  311. package/build/domains/registry/cacheManager.js.map +1 -1
  312. package/build/domains/registry/formatters/serverDetailFormatter.d.ts.map +1 -1
  313. package/build/domains/registry/formatters/serverDetailFormatter.js +57 -8
  314. package/build/domains/registry/formatters/serverDetailFormatter.js.map +1 -1
  315. package/build/domains/registry/formatters/versionsFormatter.d.ts.map +1 -1
  316. package/build/domains/registry/formatters/versionsFormatter.js +8 -3
  317. package/build/domains/registry/formatters/versionsFormatter.js.map +1 -1
  318. package/build/logger/logger.d.ts +8 -4
  319. package/build/logger/logger.d.ts.map +1 -1
  320. package/build/logger/logger.js.map +1 -1
  321. package/build/server.d.ts +2 -1
  322. package/build/server.d.ts.map +1 -1
  323. package/build/server.js +16 -7
  324. package/build/server.js.map +1 -1
  325. package/build/template/handlebarsTemplateRenderer.d.ts +34 -0
  326. package/build/template/handlebarsTemplateRenderer.d.ts.map +1 -0
  327. package/build/template/handlebarsTemplateRenderer.js +92 -0
  328. package/build/template/handlebarsTemplateRenderer.js.map +1 -0
  329. package/build/template/index.d.ts +2 -0
  330. package/build/template/index.d.ts.map +1 -0
  331. package/build/template/index.js +3 -0
  332. package/build/template/index.js.map +1 -0
  333. package/build/transport/http/middlewares/securityMiddleware.js +1 -1
  334. package/build/transport/http/middlewares/securityMiddleware.js.map +1 -1
  335. package/build/transport/http/restorableStreamableTransport.d.ts +8 -4
  336. package/build/transport/http/restorableStreamableTransport.d.ts.map +1 -1
  337. package/build/transport/http/restorableStreamableTransport.js.map +1 -1
  338. package/build/transport/http/routes/sseRoutes.d.ts.map +1 -1
  339. package/build/transport/http/routes/sseRoutes.js +15 -0
  340. package/build/transport/http/routes/sseRoutes.js.map +1 -1
  341. package/build/transport/http/routes/streamableHttpRoutes.d.ts.map +1 -1
  342. package/build/transport/http/routes/streamableHttpRoutes.js +88 -12
  343. package/build/transport/http/routes/streamableHttpRoutes.js.map +1 -1
  344. package/build/transport/http/server.d.ts +1 -0
  345. package/build/transport/http/server.d.ts.map +1 -1
  346. package/build/transport/http/server.js +1 -0
  347. package/build/transport/http/server.js.map +1 -1
  348. package/build/transport/http/storage/streamableSessionRepository.d.ts.map +1 -1
  349. package/build/transport/http/storage/streamableSessionRepository.js +2 -0
  350. package/build/transport/http/storage/streamableSessionRepository.js.map +1 -1
  351. package/build/transport/http/utils/contextExtractor.d.ts +23 -0
  352. package/build/transport/http/utils/contextExtractor.d.ts.map +1 -0
  353. package/build/transport/http/utils/contextExtractor.js +58 -0
  354. package/build/transport/http/utils/contextExtractor.js.map +1 -0
  355. package/build/transport/restartableStdioTransport.d.ts +8 -4
  356. package/build/transport/restartableStdioTransport.d.ts.map +1 -1
  357. package/build/transport/restartableStdioTransport.js.map +1 -1
  358. package/build/transport/stdioProxyTransport.d.ts +15 -0
  359. package/build/transport/stdioProxyTransport.d.ts.map +1 -1
  360. package/build/transport/stdioProxyTransport.js +168 -35
  361. package/build/transport/stdioProxyTransport.js.map +1 -1
  362. package/build/transport/transportFactory.d.ts +8 -0
  363. package/build/transport/transportFactory.d.ts.map +1 -1
  364. package/build/transport/transportFactory.js +47 -0
  365. package/build/transport/transportFactory.js.map +1 -1
  366. package/build/types/context.d.ts +120 -0
  367. package/build/types/context.d.ts.map +1 -0
  368. package/build/types/context.js +4 -0
  369. package/build/types/context.js.map +1 -0
  370. package/build/types/validation.d.ts +30 -0
  371. package/build/types/validation.d.ts.map +1 -0
  372. package/build/types/validation.js +5 -0
  373. package/build/types/validation.js.map +1 -0
  374. package/build/utils/client/clientInfoExtractor.d.ts +26 -0
  375. package/build/utils/client/clientInfoExtractor.d.ts.map +1 -0
  376. package/build/utils/client/clientInfoExtractor.js +65 -0
  377. package/build/utils/client/clientInfoExtractor.js.map +1 -0
  378. package/build/utils/core/errorHandling.d.ts +9 -5
  379. package/build/utils/core/errorHandling.d.ts.map +1 -1
  380. package/build/utils/core/errorHandling.js.map +1 -1
  381. package/build/utils/core/parsing.d.ts +8 -4
  382. package/build/utils/core/parsing.d.ts.map +1 -1
  383. package/build/utils/core/parsing.js.map +1 -1
  384. package/build/utils/crypto.d.ts +10 -0
  385. package/build/utils/crypto.d.ts.map +1 -0
  386. package/build/utils/crypto.js +20 -0
  387. package/build/utils/crypto.js.map +1 -0
  388. package/build/utils/ui/interactiveSelector.d.ts +16 -6
  389. package/build/utils/ui/interactiveSelector.d.ts.map +1 -1
  390. package/build/utils/ui/interactiveSelector.js +7 -31
  391. package/build/utils/ui/interactiveSelector.js.map +1 -1
  392. package/build/utils/ui/pagination.d.ts +6 -2
  393. package/build/utils/ui/pagination.d.ts.map +1 -1
  394. package/build/utils/ui/pagination.js.map +1 -1
  395. package/build/utils/ui/printer.d.ts +76 -0
  396. package/build/utils/ui/printer.d.ts.map +1 -0
  397. package/build/utils/ui/printer.js +172 -0
  398. package/build/utils/ui/printer.js.map +1 -0
  399. package/build/utils/ui/spinner.d.ts +19 -0
  400. package/build/utils/ui/spinner.d.ts.map +1 -0
  401. package/build/utils/ui/spinner.js +51 -0
  402. package/build/utils/ui/spinner.js.map +1 -0
  403. package/build/utils/ui/table.d.ts +16 -0
  404. package/build/utils/ui/table.d.ts.map +1 -0
  405. package/build/utils/ui/table.js +70 -0
  406. package/build/utils/ui/table.js.map +1 -0
  407. package/build/utils/validation/validationHelpers.d.ts +7 -3
  408. package/build/utils/validation/validationHelpers.d.ts.map +1 -1
  409. package/build/utils/validation/validationHelpers.js.map +1 -1
  410. package/package.json +4 -3
@@ -1,7 +1,6 @@
1
1
  import { CallToolRequestSchema, CallToolResultSchema, CompleteRequestSchema, CreateMessageRequestSchema, ElicitRequestSchema, GetPromptRequestSchema, ListPromptsRequestSchema, ListResourcesRequestSchema, ListResourceTemplatesRequestSchema, ListRootsRequestSchema, ListToolsRequestSchema, PingRequestSchema, ReadResourceRequestSchema, SetLevelRequestSchema, SubscribeRequestSchema, UnsubscribeRequestSchema, } from '@modelcontextprotocol/sdk/types.js';
2
2
  import { MCP_URI_SEPARATOR } from '../../constants.js';
3
3
  import { InternalCapabilitiesProvider } from '../../core/capabilities/internalCapabilitiesProvider.js';
4
- import { ClientManager } from '../../core/client/clientManager.js';
5
4
  import { byCapabilities } from '../../core/filtering/clientFiltering.js';
6
5
  import { FilteringService } from '../../core/filtering/filteringService.js';
7
6
  import { ServerManager } from '../../core/server/serverManager.js';
@@ -12,6 +11,108 @@ import { withErrorHandling } from '../../utils/core/errorHandling.js';
12
11
  import { buildUri, parseUri } from '../../utils/core/parsing.js';
13
12
  import { getRequestTimeout } from '../../utils/core/timeoutUtils.js';
14
13
  import { handlePagination } from '../../utils/ui/pagination.js';
14
+ /**
15
+ * Extract session ID from inbound connection context
16
+ * @param inboundConn The inbound connection
17
+ * @returns The session ID or undefined
18
+ */
19
+ function getRequestSession(inboundConn) {
20
+ return inboundConn.context?.sessionId;
21
+ }
22
+ /**
23
+ * Resolve outbound connection by client name and session ID.
24
+ * Key format:
25
+ * - Static servers: name (no colon)
26
+ * - Shareable template servers: name:renderedHash
27
+ * - Per-client template servers: name:sessionId
28
+ *
29
+ * Resolution order:
30
+ * 1. Try session-scoped key (for per-client template servers: name:sessionId)
31
+ * 2. Try rendered hash-based key (for shareable template servers: name:renderedHash)
32
+ * 3. Fall back to direct name lookup (for static servers: name)
33
+ *
34
+ * @param clientName The client/server name
35
+ * @param sessionId The session ID (optional)
36
+ * @param outboundConns The outbound connections map
37
+ * @returns The resolved outbound connection or undefined
38
+ */
39
+ function resolveOutboundConnection(clientName, sessionId, outboundConns) {
40
+ // Try session-scoped key first (for per-client template servers: name:sessionId)
41
+ if (sessionId) {
42
+ const sessionKey = `${clientName}:${sessionId}`;
43
+ const conn = outboundConns.get(sessionKey);
44
+ if (conn) {
45
+ return conn;
46
+ }
47
+ }
48
+ // Try rendered hash-based key (for shareable template servers: name:renderedHash)
49
+ if (sessionId) {
50
+ // Access the session-to-renderedHash mapping from TemplateServerManager
51
+ const templateServerManager = ServerManager.current.getTemplateServerManager();
52
+ if (templateServerManager) {
53
+ const renderedHash = templateServerManager.getRenderedHashForSession(sessionId, clientName);
54
+ if (renderedHash) {
55
+ const hashKey = `${clientName}:${renderedHash}`;
56
+ const conn = outboundConns.get(hashKey);
57
+ if (conn) {
58
+ return conn;
59
+ }
60
+ }
61
+ }
62
+ }
63
+ // Fall back to direct name lookup (for static servers)
64
+ return outboundConns.get(clientName);
65
+ }
66
+ /**
67
+ * Filter outbound connections for a specific session.
68
+ * Key format:
69
+ * - Static servers: name (no colon) - always included
70
+ * - Shareable template servers: name:renderedHash - included if session uses this hash
71
+ * - Per-client template servers: name:sessionId - only included if session matches
72
+ *
73
+ * @param outboundConns The outbound connections map
74
+ * @param sessionId The session ID (optional)
75
+ * @returns A filtered map of outbound connections
76
+ */
77
+ function filterConnectionsForSession(outboundConns, sessionId) {
78
+ const filtered = new Map();
79
+ // Get rendered hashes for this session
80
+ const sessionHashes = getSessionRenderedHashes(sessionId);
81
+ for (const [key, conn] of outboundConns.entries()) {
82
+ // Static servers (no : in key) - always include
83
+ if (!key.includes(':')) {
84
+ filtered.set(key, conn);
85
+ continue;
86
+ }
87
+ // Template servers (format: name:xxx)
88
+ const [name, suffix] = key.split(':');
89
+ // Per-client template servers (format: name:sessionId) - only include if session matches
90
+ if (suffix === sessionId) {
91
+ filtered.set(key, conn);
92
+ continue;
93
+ }
94
+ // Shareable template servers (format: name:renderedHash) - include if this session uses this hash
95
+ if (sessionHashes && sessionHashes.has(name) && sessionHashes.get(name) === suffix) {
96
+ filtered.set(key, conn);
97
+ }
98
+ }
99
+ return filtered;
100
+ }
101
+ /**
102
+ * Get all rendered hashes for a specific session.
103
+ * Used by filterConnectionsForSession to determine which shareable connections to include.
104
+ * @param sessionId The session ID (optional)
105
+ * @returns Map of templateName to renderedHash, or undefined if no session
106
+ */
107
+ function getSessionRenderedHashes(sessionId) {
108
+ if (!sessionId)
109
+ return undefined;
110
+ const templateServerManager = ServerManager.current.getTemplateServerManager();
111
+ if (templateServerManager) {
112
+ return templateServerManager.getAllRenderedHashesForSession(sessionId);
113
+ }
114
+ return undefined;
115
+ }
15
116
  /**
16
117
  * Registers server-specific request handlers
17
118
  * @param outboundConns Record of client instances
@@ -19,24 +120,35 @@ import { handlePagination } from '../../utils/ui/pagination.js';
19
120
  */
20
121
  function registerServerRequestHandlers(outboundConns, inboundConn) {
21
122
  Array.from(outboundConns.entries()).forEach(([_, outboundConn]) => {
123
+ const capabilities = outboundConn.capabilities;
124
+ // Ping is always supported
22
125
  outboundConn.client.setRequestHandler(PingRequestSchema, withErrorHandling(async () => {
23
126
  return ServerManager.current.executeServerOperation(inboundConn, (inboundConn) => inboundConn.server.ping());
24
127
  }, 'Error pinging'));
25
- outboundConn.client.setRequestHandler(CreateMessageRequestSchema, withErrorHandling(async (request) => {
26
- return ServerManager.current.executeServerOperation(inboundConn, (inboundConn) => inboundConn.server.createMessage(request.params, {
27
- timeout: getRequestTimeout(outboundConn.transport),
28
- }));
29
- }, 'Error creating message'));
30
- outboundConn.client.setRequestHandler(ElicitRequestSchema, withErrorHandling(async (request) => {
31
- return ServerManager.current.executeServerOperation(inboundConn, (inboundConn) => inboundConn.server.elicitInput(request.params, {
32
- timeout: getRequestTimeout(outboundConn.transport),
33
- }));
34
- }, 'Error eliciting input'));
35
- outboundConn.client.setRequestHandler(ListRootsRequestSchema, withErrorHandling(async (request) => {
36
- return ServerManager.current.executeServerOperation(inboundConn, (inboundConn) => inboundConn.server.listRoots(request.params, {
37
- timeout: getRequestTimeout(outboundConn.transport),
38
- }));
39
- }, 'Error listing roots'));
128
+ // Only register CreateMessage handler if server supports sampling capability
129
+ if (capabilities?.sampling) {
130
+ outboundConn.client.setRequestHandler(CreateMessageRequestSchema, withErrorHandling(async (request) => {
131
+ return ServerManager.current.executeServerOperation(inboundConn, (inboundConn) => inboundConn.server.createMessage(request.params, {
132
+ timeout: getRequestTimeout(outboundConn.transport),
133
+ }));
134
+ }, 'Error creating message'));
135
+ }
136
+ // Only register ElicitRequest handler if server supports elicitation capability
137
+ if (capabilities?.elicitation) {
138
+ outboundConn.client.setRequestHandler(ElicitRequestSchema, withErrorHandling(async (request) => {
139
+ return ServerManager.current.executeServerOperation(inboundConn, (inboundConn) => inboundConn.server.elicitInput(request.params, {
140
+ timeout: getRequestTimeout(outboundConn.transport),
141
+ }));
142
+ }, 'Error eliciting input'));
143
+ }
144
+ // Only register ListRoots handler if server supports roots capability
145
+ if (capabilities?.roots) {
146
+ outboundConn.client.setRequestHandler(ListRootsRequestSchema, withErrorHandling(async (request) => {
147
+ return ServerManager.current.executeServerOperation(inboundConn, (inboundConn) => inboundConn.server.listRoots(request.params, {
148
+ timeout: getRequestTimeout(outboundConn.transport),
149
+ }));
150
+ }, 'Error listing roots'));
151
+ }
40
152
  });
41
153
  }
42
154
  /**
@@ -88,10 +200,13 @@ export function registerRequestHandlers(outboundConns, inboundConn) {
88
200
  * @param serverInfo The MCP server instance
89
201
  */
90
202
  function registerResourceHandlers(outboundConns, inboundConn) {
203
+ const sessionId = getRequestSession(inboundConn);
91
204
  // List Resources handler
92
205
  inboundConn.server.setRequestHandler(ListResourcesRequestSchema, withErrorHandling(async (request) => {
93
- // First filter by capabilities, then by tags
94
- const capabilityFilteredClients = byCapabilities({ resources: {} })(outboundConns);
206
+ // Filter connections for this session first
207
+ const sessionFilteredConns = filterConnectionsForSession(outboundConns, sessionId);
208
+ // Then filter by capabilities, then by tags
209
+ const capabilityFilteredClients = byCapabilities({ resources: {} })(sessionFilteredConns);
95
210
  const filteredClients = FilteringService.getFilteredConnections(capabilityFilteredClients, inboundConn);
96
211
  const result = await handlePagination(filteredClients, request.params || {}, (client, params, opts) => client.listResources(params, opts), (outboundConn, result) => result.resources?.map((resource) => ({
97
212
  ...resource,
@@ -104,8 +219,26 @@ function registerResourceHandlers(outboundConns, inboundConn) {
104
219
  }, 'Error listing resources'));
105
220
  // List Resource Templates handler
106
221
  inboundConn.server.setRequestHandler(ListResourceTemplatesRequestSchema, withErrorHandling(async (request) => {
107
- // First filter by capabilities, then by tags
108
- const capabilityFilteredClients = byCapabilities({ resources: {} })(outboundConns);
222
+ // Filter connections for this session first
223
+ const sessionFilteredConns = filterConnectionsForSession(outboundConns, sessionId);
224
+ // Then filter by capabilities, then by tags
225
+ const capabilityFilteredClients = byCapabilities({ resources: {} })(sessionFilteredConns);
226
+ const filteredClients = FilteringService.getFilteredConnections(capabilityFilteredClients, inboundConn);
227
+ const result = await handlePagination(filteredClients, request.params || {}, (client, params, opts) => client.listResourceTemplates(params, opts), (outboundConn, result) => result.resourceTemplates?.map((template) => ({
228
+ ...template,
229
+ uriTemplate: buildUri(outboundConn.name, template.uriTemplate, MCP_URI_SEPARATOR),
230
+ })) ?? [], inboundConn.enablePagination ?? false);
231
+ return {
232
+ resources: result.items,
233
+ nextCursor: result.nextCursor,
234
+ };
235
+ }, 'Error listing resources'));
236
+ // List Resource Templates handler
237
+ inboundConn.server.setRequestHandler(ListResourceTemplatesRequestSchema, withErrorHandling(async (request) => {
238
+ // Filter connections for this session first
239
+ const sessionFilteredConns = filterConnectionsForSession(outboundConns, sessionId);
240
+ // Then filter by capabilities, then by tags
241
+ const capabilityFilteredClients = byCapabilities({ resources: {} })(sessionFilteredConns);
109
242
  const filteredClients = FilteringService.getFilteredConnections(capabilityFilteredClients, inboundConn);
110
243
  const result = await handlePagination(filteredClients, request.params || {}, (client, params, opts) => client.listResourceTemplates(params, opts), (outboundConn, result) => result.resourceTemplates?.map((template) => ({
111
244
  ...template,
@@ -119,34 +252,44 @@ function registerResourceHandlers(outboundConns, inboundConn) {
119
252
  // Subscribe Resource handler
120
253
  inboundConn.server.setRequestHandler(SubscribeRequestSchema, withErrorHandling(async (request) => {
121
254
  const { clientName, resourceName } = parseUri(request.params.uri, MCP_URI_SEPARATOR);
122
- return ClientManager.current.executeClientOperation(clientName, (outboundConn) => outboundConn.client.subscribeResource({ ...request.params, uri: resourceName }, {
255
+ const outboundConn = resolveOutboundConnection(clientName, sessionId, outboundConns);
256
+ if (!outboundConn) {
257
+ throw new Error(`Unknown client: ${clientName}`);
258
+ }
259
+ return outboundConn.client.subscribeResource({ ...request.params, uri: resourceName }, {
123
260
  timeout: getRequestTimeout(outboundConn.transport),
124
- }));
261
+ });
125
262
  }, 'Error subscribing to resource'));
126
263
  // Unsubscribe Resource handler
127
264
  inboundConn.server.setRequestHandler(UnsubscribeRequestSchema, withErrorHandling(async (request) => {
128
265
  const { clientName, resourceName } = parseUri(request.params.uri, MCP_URI_SEPARATOR);
129
- return ClientManager.current.executeClientOperation(clientName, (outboundConn) => outboundConn.client.unsubscribeResource({ ...request.params, uri: resourceName }, {
266
+ const outboundConn = resolveOutboundConnection(clientName, sessionId, outboundConns);
267
+ if (!outboundConn) {
268
+ throw new Error(`Unknown client: ${clientName}`);
269
+ }
270
+ return outboundConn.client.unsubscribeResource({ ...request.params, uri: resourceName }, {
130
271
  timeout: getRequestTimeout(outboundConn.transport),
131
- }));
272
+ });
132
273
  }, 'Error unsubscribing from resource'));
133
274
  // Read Resource handler
134
275
  inboundConn.server.setRequestHandler(ReadResourceRequestSchema, withErrorHandling(async (request) => {
135
276
  const { clientName, resourceName } = parseUri(request.params.uri, MCP_URI_SEPARATOR);
136
- return ClientManager.current.executeClientOperation(clientName, async (outboundConn) => {
137
- const resource = await outboundConn.client.readResource({ ...request.params, uri: resourceName }, {
138
- timeout: getRequestTimeout(outboundConn.transport),
139
- });
140
- // Transform resource content URIs to include client name prefix
141
- const transformedResource = {
142
- ...resource,
143
- contents: resource.contents.map((content) => ({
144
- ...content,
145
- uri: buildUri(outboundConn.name, content.uri, MCP_URI_SEPARATOR),
146
- })),
147
- };
148
- return transformedResource;
277
+ const outboundConn = resolveOutboundConnection(clientName, sessionId, outboundConns);
278
+ if (!outboundConn) {
279
+ throw new Error(`Unknown client: ${clientName}`);
280
+ }
281
+ const resource = await outboundConn.client.readResource({ ...request.params, uri: resourceName }, {
282
+ timeout: getRequestTimeout(outboundConn.transport),
149
283
  });
284
+ // Transform resource content URIs to include client name prefix
285
+ const transformedResource = {
286
+ ...resource,
287
+ contents: resource.contents.map((content) => ({
288
+ ...content,
289
+ uri: buildUri(outboundConn.name, content.uri, MCP_URI_SEPARATOR),
290
+ })),
291
+ };
292
+ return transformedResource;
150
293
  }, 'Error reading resource'));
151
294
  }
152
295
  /**
@@ -155,10 +298,13 @@ function registerResourceHandlers(outboundConns, inboundConn) {
155
298
  * @param serverInfo The MCP server instance
156
299
  */
157
300
  function registerToolHandlers(outboundConns, inboundConn) {
301
+ const sessionId = getRequestSession(inboundConn);
158
302
  // List Tools handler
159
303
  inboundConn.server.setRequestHandler(ListToolsRequestSchema, withErrorHandling(async (request) => {
160
- // First filter by capabilities, then by tags
161
- const capabilityFilteredClients = byCapabilities({ tools: {} })(outboundConns);
304
+ // Filter connections for this session first
305
+ const sessionFilteredConns = filterConnectionsForSession(outboundConns, sessionId);
306
+ // Then filter by capabilities, then by tags
307
+ const capabilityFilteredClients = byCapabilities({ tools: {} })(sessionFilteredConns);
162
308
  const filteredClients = FilteringService.getFilteredConnections(capabilityFilteredClients, inboundConn);
163
309
  // Get tools from external MCP servers
164
310
  const result = await handlePagination(filteredClients, request.params || {}, (client, params, opts) => client.listTools(params, opts), (outboundConn, result) => result.tools?.map((tool) => ({
@@ -202,9 +348,13 @@ function registerToolHandlers(outboundConns, inboundConn) {
202
348
  };
203
349
  }
204
350
  // Handle external MCP server tools
205
- return ClientManager.current.executeClientOperation(clientName, (outboundConn) => outboundConn.client.callTool({ ...request.params, name: toolName }, CallToolResultSchema, {
351
+ const outboundConn = resolveOutboundConnection(clientName, sessionId, outboundConns);
352
+ if (!outboundConn) {
353
+ throw new Error(`Unknown client: ${clientName}`);
354
+ }
355
+ return outboundConn.client.callTool({ ...request.params, name: toolName }, CallToolResultSchema, {
206
356
  timeout: getRequestTimeout(outboundConn.transport),
207
- }));
357
+ });
208
358
  }, 'Error calling tool'));
209
359
  }
210
360
  /**
@@ -213,10 +363,13 @@ function registerToolHandlers(outboundConns, inboundConn) {
213
363
  * @param serverInfo The MCP server instance
214
364
  */
215
365
  function registerPromptHandlers(outboundConns, inboundConn) {
366
+ const sessionId = getRequestSession(inboundConn);
216
367
  // List Prompts handler
217
368
  inboundConn.server.setRequestHandler(ListPromptsRequestSchema, withErrorHandling(async (request) => {
218
- // First filter by capabilities, then by tags
219
- const capabilityFilteredClients = byCapabilities({ prompts: {} })(outboundConns);
369
+ // Filter connections for this session first
370
+ const sessionFilteredConns = filterConnectionsForSession(outboundConns, sessionId);
371
+ // Then filter by capabilities, then by tags
372
+ const capabilityFilteredClients = byCapabilities({ prompts: {} })(sessionFilteredConns);
220
373
  const filteredClients = FilteringService.getFilteredConnections(capabilityFilteredClients, inboundConn);
221
374
  const result = await handlePagination(filteredClients, request.params || {}, (client, params, opts) => client.listPrompts(params, opts), (outboundConn, result) => result.prompts?.map((prompt) => ({
222
375
  ...prompt,
@@ -230,7 +383,11 @@ function registerPromptHandlers(outboundConns, inboundConn) {
230
383
  // Get Prompt handler
231
384
  inboundConn.server.setRequestHandler(GetPromptRequestSchema, withErrorHandling(async (request) => {
232
385
  const { clientName, resourceName: promptName } = parseUri(request.params.name, MCP_URI_SEPARATOR);
233
- return ClientManager.current.executeClientOperation(clientName, (outboundConn) => outboundConn.client.getPrompt({ ...request.params, name: promptName }));
386
+ const outboundConn = resolveOutboundConnection(clientName, sessionId, outboundConns);
387
+ if (!outboundConn) {
388
+ throw new Error(`Unknown client: ${clientName}`);
389
+ }
390
+ return outboundConn.client.getPrompt({ ...request.params, name: promptName });
234
391
  }, 'Error getting prompt'));
235
392
  }
236
393
  /**
@@ -239,6 +396,7 @@ function registerPromptHandlers(outboundConns, inboundConn) {
239
396
  * @param serverInfo The MCP server instance
240
397
  */
241
398
  function registerCompletionHandlers(outboundConns, inboundConn) {
399
+ const sessionId = getRequestSession(inboundConn);
242
400
  inboundConn.server.setRequestHandler(CompleteRequestSchema, withErrorHandling(async (request) => {
243
401
  const { ref } = request.params;
244
402
  let clientName;
@@ -258,9 +416,13 @@ function registerCompletionHandlers(outboundConns, inboundConn) {
258
416
  throw new Error(`Unsupported completion reference type: ${ref.type}`);
259
417
  }
260
418
  const params = { ...request.params, ref: updatedRef };
261
- return ClientManager.current.executeClientOperation(clientName, (outboundConn) => outboundConn.client.complete(params, {
419
+ const outboundConn = resolveOutboundConnection(clientName, sessionId, outboundConns);
420
+ if (!outboundConn) {
421
+ throw new Error(`Unknown client: ${clientName}`);
422
+ }
423
+ return outboundConn.client.complete(params, {
262
424
  timeout: getRequestTimeout(outboundConn.transport),
263
- }), {}, 'completions');
425
+ });
264
426
  }, 'Error handling completion'));
265
427
  }
266
428
  //# sourceMappingURL=requestHandlers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"requestHandlers.js","sourceRoot":"","sources":["../../../src/core/protocol/requestHandlers.ts"],"names":[],"mappings":"AA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U,EAAE,CAAC,CAAC;QACnD,CAAC;QACD,OAAO,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE;YAC1C,OAAO,EAAE,iBAAiB,CAAC,YAAY,CAAC,SAAS,CAAC;SACnD,CAAC,CAAC;IACL,CAAC,EAAE,2BAA2B,CAAC,CAChC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,146 @@
1
+ import { Client } from '@modelcontextprotocol/sdk/client/index.js';
2
+ import { AuthProviderTransport } from '../../core/types/index.js';
3
+ import type { MCPServerParams } from '../../core/types/transport.js';
4
+ import type { ContextData } from '../../types/context.js';
5
+ /**
6
+ * Configuration options for client instance pool
7
+ */
8
+ export interface ClientPoolOptions {
9
+ /** Maximum number of instances per template (0 = unlimited) */
10
+ maxInstances?: number;
11
+ /** Time in milliseconds to wait before terminating idle instances */
12
+ idleTimeout?: number;
13
+ /** Interval in milliseconds to run cleanup checks */
14
+ cleanupInterval?: number;
15
+ /** Maximum total instances across all templates (0 = unlimited) */
16
+ maxTotalInstances?: number;
17
+ }
18
+ /**
19
+ * Represents a pooled client instance connected to an upstream MCP server
20
+ */
21
+ export interface PooledClientInstance {
22
+ /** Unique identifier for this instance */
23
+ id: string;
24
+ /** Name of the template this instance was created from */
25
+ templateName: string;
26
+ /** MCP client instance */
27
+ client: Client;
28
+ /** Transport connected to upstream server */
29
+ transport: AuthProviderTransport;
30
+ /** Hash of the rendered configuration used to create this instance */
31
+ renderedHash: string;
32
+ /** Processed server configuration */
33
+ processedConfig: MCPServerParams;
34
+ /** Number of clients currently connected to this instance */
35
+ referenceCount: number;
36
+ /** Timestamp when this instance was created */
37
+ createdAt: Date;
38
+ /** Timestamp of last client activity */
39
+ lastUsedAt: Date;
40
+ /** Current status of the instance */
41
+ status: 'active' | 'idle' | 'terminating';
42
+ /** Set of client IDs connected to this instance */
43
+ clientIds: Set<string>;
44
+ /** Template-specific idle timeout */
45
+ idleTimeout: number;
46
+ }
47
+ /**
48
+ * Manages a pool of MCP client instances created from templates
49
+ *
50
+ * This class handles:
51
+ * - Creating new client instances from templates with specific variables
52
+ * - Reusing existing instances when template variables match
53
+ * - Managing client connections per instance
54
+ * - Cleaning up idle instances to free resources
55
+ */
56
+ export declare class ClientInstancePool {
57
+ private instances;
58
+ private templateToInstances;
59
+ private options;
60
+ private cleanupTimer?;
61
+ private instanceCounter;
62
+ constructor(options?: Partial<ClientPoolOptions>);
63
+ /**
64
+ * Creates or retrieves a client instance for the given template and variables
65
+ */
66
+ getOrCreateClientInstance(templateName: string, templateConfig: MCPServerParams, context: ContextData, clientId: string, options?: {
67
+ shareable?: boolean;
68
+ perClient?: boolean;
69
+ idleTimeout?: number;
70
+ }): Promise<PooledClientInstance>;
71
+ /**
72
+ * Adds a client to an existing instance
73
+ */
74
+ addClientToInstance(instance: PooledClientInstance, clientId: string): PooledClientInstance;
75
+ /**
76
+ * Removes a client from an instance
77
+ */
78
+ removeClientFromInstance(instanceKey: string, clientId: string): void;
79
+ /**
80
+ * Gets an instance by its key
81
+ */
82
+ getInstance(instanceKey: string): PooledClientInstance | undefined;
83
+ /**
84
+ * Gets all instances for a specific template
85
+ */
86
+ getTemplateInstances(templateName: string): PooledClientInstance[];
87
+ /**
88
+ * Gets all active instances in the pool
89
+ */
90
+ getAllInstances(): PooledClientInstance[];
91
+ /**
92
+ * Manually removes an instance from the pool
93
+ */
94
+ removeInstance(instanceKey: string): Promise<void>;
95
+ /**
96
+ * Forces cleanup of idle instances
97
+ */
98
+ cleanupIdleInstances(): Promise<void>;
99
+ /**
100
+ * Shuts down the instance pool and cleans up all resources
101
+ */
102
+ shutdown(): Promise<void>;
103
+ /**
104
+ * Gets pool statistics for monitoring
105
+ */
106
+ getStats(): {
107
+ totalInstances: number;
108
+ activeInstances: number;
109
+ idleInstances: number;
110
+ templateCount: number;
111
+ totalClients: number;
112
+ };
113
+ /**
114
+ * Creates a new client instance and connects to upstream server
115
+ */
116
+ private createNewInstance;
117
+ /**
118
+ * Gets template configuration with proper defaults
119
+ */
120
+ private getTemplateSettings;
121
+ /**
122
+ * Creates a unique instance key from template name and variable hash
123
+ */
124
+ private createInstanceKey;
125
+ /**
126
+ * Generates a unique instance ID
127
+ */
128
+ private generateInstanceId;
129
+ /**
130
+ * Checks if creating a new instance would exceed limits
131
+ */
132
+ private checkInstanceLimits;
133
+ /**
134
+ * Adds an instance to the template index
135
+ */
136
+ private addToTemplateIndex;
137
+ /**
138
+ * Removes an instance from the template index
139
+ */
140
+ private removeFromTemplateIndex;
141
+ /**
142
+ * Starts the periodic cleanup timer
143
+ */
144
+ private startCleanupTimer;
145
+ }
146
+ //# sourceMappingURL=clientInstancePool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientInstancePool.d.ts","sourceRoot":"","sources":["../../../src/core/server/clientInstancePool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAEnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAIpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGzD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,+DAA+D;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qDAAqD;IACrD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mEAAmE;IACnE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAYD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,0CAA0C;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,0DAA0D;IAC1D,YAAY,EAAE,MAAM,CAAC;IACrB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,SAAS,EAAE,qBAAqB,CAAC;IACjC,sEAAsE;IACtE,YAAY,EA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