@structured-world/gitlab-mcp 10.1.0 → 12.0.0

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 (387) hide show
  1. package/README.md +8 -8
  2. package/README.md.in +2 -2
  3. package/dist/src/accounts/chat-accounts.d.ts +17 -0
  4. package/dist/src/accounts/chat-accounts.js +245 -0
  5. package/dist/src/accounts/chat-accounts.js.map +1 -0
  6. package/dist/src/accounts/instance-tokens.d.ts +2 -0
  7. package/dist/src/accounts/instance-tokens.js +43 -0
  8. package/dist/src/accounts/instance-tokens.js.map +1 -0
  9. package/dist/src/accounts/link.d.ts +16 -0
  10. package/dist/src/accounts/link.js +469 -0
  11. package/dist/src/accounts/link.js.map +1 -0
  12. package/dist/src/accounts/token-account.d.ts +6 -0
  13. package/dist/src/accounts/token-account.js +13 -0
  14. package/dist/src/accounts/token-account.js.map +1 -0
  15. package/dist/src/channel-gateway/format.js +7 -1
  16. package/dist/src/channel-gateway/format.js.map +1 -1
  17. package/dist/src/channel-gateway/forwarding.d.ts +3 -0
  18. package/dist/src/channel-gateway/forwarding.js +8 -1
  19. package/dist/src/channel-gateway/forwarding.js.map +1 -1
  20. package/dist/src/channel-gateway/gateway.d.ts +7 -0
  21. package/dist/src/channel-gateway/gateway.js +80 -16
  22. package/dist/src/channel-gateway/gateway.js.map +1 -1
  23. package/dist/src/cli/docker/container-runtime.d.ts +1 -0
  24. package/dist/src/cli/docker/container-runtime.js +37 -5
  25. package/dist/src/cli/docker/container-runtime.js.map +1 -1
  26. package/dist/src/cli/docker/docker-command.js +11 -2
  27. package/dist/src/cli/docker/docker-command.js.map +1 -1
  28. package/dist/src/cli/docker/docker-utils.d.ts +1 -0
  29. package/dist/src/cli/docker/docker-utils.js +137 -27
  30. package/dist/src/cli/docker/docker-utils.js.map +1 -1
  31. package/dist/src/cli/docker/oauth-issuer-prompt.d.ts +2 -0
  32. package/dist/src/cli/docker/oauth-issuer-prompt.js +47 -0
  33. package/dist/src/cli/docker/oauth-issuer-prompt.js.map +1 -0
  34. package/dist/src/cli/docker/types.d.ts +18 -4
  35. package/dist/src/cli/docker/types.js.map +1 -1
  36. package/dist/src/cli/init/config-generator.d.ts +3 -2
  37. package/dist/src/cli/init/config-generator.js +15 -0
  38. package/dist/src/cli/init/config-generator.js.map +1 -1
  39. package/dist/src/cli/init/types.d.ts +7 -2
  40. package/dist/src/cli/init/types.js +9 -0
  41. package/dist/src/cli/init/types.js.map +1 -1
  42. package/dist/src/cli/init/wizard.js +31 -1
  43. package/dist/src/cli/init/wizard.js.map +1 -1
  44. package/dist/src/cli/install/codex.d.ts +25 -0
  45. package/dist/src/cli/install/codex.js +261 -0
  46. package/dist/src/cli/install/codex.js.map +1 -0
  47. package/dist/src/cli/install/detector.js +22 -0
  48. package/dist/src/cli/install/detector.js.map +1 -1
  49. package/dist/src/cli/install/index.d.ts +2 -1
  50. package/dist/src/cli/install/index.js +3 -1
  51. package/dist/src/cli/install/index.js.map +1 -1
  52. package/dist/src/cli/install/install-command.d.ts +5 -2
  53. package/dist/src/cli/install/install-command.js +52 -8
  54. package/dist/src/cli/install/install-command.js.map +1 -1
  55. package/dist/src/cli/install/installers.d.ts +8 -8
  56. package/dist/src/cli/install/installers.js +18 -3
  57. package/dist/src/cli/install/installers.js.map +1 -1
  58. package/dist/src/cli/install/notes.d.ts +2 -0
  59. package/dist/src/cli/install/notes.js +8 -0
  60. package/dist/src/cli/install/notes.js.map +1 -0
  61. package/dist/src/cli/install/types.d.ts +1 -0
  62. package/dist/src/cli/install/types.js +12 -0
  63. package/dist/src/cli/install/types.js.map +1 -1
  64. package/dist/src/cli/list-tools.js +14 -35
  65. package/dist/src/cli/list-tools.js.map +1 -1
  66. package/dist/src/cli/plugin/build.d.ts +23 -0
  67. package/dist/src/cli/plugin/build.js +165 -0
  68. package/dist/src/cli/plugin/build.js.map +1 -0
  69. package/dist/src/cli/plugin/command.d.ts +4 -0
  70. package/dist/src/cli/plugin/command.js +89 -0
  71. package/dist/src/cli/plugin/command.js.map +1 -0
  72. package/dist/src/cli/plugin/index.d.ts +5 -0
  73. package/dist/src/cli/plugin/index.js +15 -0
  74. package/dist/src/cli/plugin/index.js.map +1 -0
  75. package/dist/src/cli/plugin/listing.d.ts +21 -0
  76. package/dist/src/cli/plugin/listing.js +44 -0
  77. package/dist/src/cli/plugin/listing.js.map +1 -0
  78. package/dist/src/cli/plugin/validate.d.ts +21 -0
  79. package/dist/src/cli/plugin/validate.js +496 -0
  80. package/dist/src/cli/plugin/validate.js.map +1 -0
  81. package/dist/src/cli/plugin/zip.d.ts +6 -0
  82. package/dist/src/cli/plugin/zip.js +83 -0
  83. package/dist/src/cli/plugin/zip.js.map +1 -0
  84. package/dist/src/cli/setup/flows/configure-existing.js +5 -0
  85. package/dist/src/cli/setup/flows/configure-existing.js.map +1 -1
  86. package/dist/src/cli/setup/flows/local-setup.js +3 -0
  87. package/dist/src/cli/setup/flows/local-setup.js.map +1 -1
  88. package/dist/src/cli/setup/flows/server-setup.js +15 -0
  89. package/dist/src/cli/setup/flows/server-setup.js.map +1 -1
  90. package/dist/src/cli-utils.d.ts +2 -0
  91. package/dist/src/cli-utils.js +6 -0
  92. package/dist/src/cli-utils.js.map +1 -1
  93. package/dist/src/config/instances-loader.js +17 -3
  94. package/dist/src/config/instances-loader.js.map +1 -1
  95. package/dist/src/config/instances-schema.d.ts +8 -3
  96. package/dist/src/config/instances-schema.js +12 -6
  97. package/dist/src/config/instances-schema.js.map +1 -1
  98. package/dist/src/config.js.map +1 -1
  99. package/dist/src/configuration/caller.d.ts +10 -0
  100. package/dist/src/configuration/caller.js +39 -0
  101. package/dist/src/configuration/caller.js.map +1 -0
  102. package/dist/src/configuration/composed-feeds.d.ts +31 -0
  103. package/dist/src/configuration/composed-feeds.js +698 -0
  104. package/dist/src/configuration/composed-feeds.js.map +1 -0
  105. package/dist/src/configuration/composed-listings.d.ts +14 -0
  106. package/dist/src/configuration/composed-listings.js +157 -0
  107. package/dist/src/configuration/composed-listings.js.map +1 -0
  108. package/dist/src/configuration/groups.d.ts +8 -0
  109. package/dist/src/configuration/groups.js +39 -0
  110. package/dist/src/configuration/groups.js.map +1 -0
  111. package/dist/src/configuration/index.d.ts +6 -0
  112. package/dist/src/configuration/index.js +87 -0
  113. package/dist/src/configuration/index.js.map +1 -0
  114. package/dist/src/configuration/policy.d.ts +34 -0
  115. package/dist/src/configuration/policy.js +122 -0
  116. package/dist/src/configuration/policy.js.map +1 -0
  117. package/dist/src/configuration/scope-ids.d.ts +7 -0
  118. package/dist/src/configuration/scope-ids.js +78 -0
  119. package/dist/src/configuration/scope-ids.js.map +1 -0
  120. package/dist/src/configuration/scope-projects.d.ts +5 -0
  121. package/dist/src/configuration/scope-projects.js +76 -0
  122. package/dist/src/configuration/scope-projects.js.map +1 -0
  123. package/dist/src/configuration/scope-targets.d.ts +26 -0
  124. package/dist/src/configuration/scope-targets.js +307 -0
  125. package/dist/src/configuration/scope-targets.js.map +1 -0
  126. package/dist/src/configuration/scoped-execution.d.ts +6 -0
  127. package/dist/src/configuration/scoped-execution.js +577 -0
  128. package/dist/src/configuration/scoped-execution.js.map +1 -0
  129. package/dist/src/configuration/scoped-feeds.d.ts +22 -0
  130. package/dist/src/configuration/scoped-feeds.js +136 -0
  131. package/dist/src/configuration/scoped-feeds.js.map +1 -0
  132. package/dist/src/configuration/service.d.ts +52 -0
  133. package/dist/src/configuration/service.js +169 -0
  134. package/dist/src/configuration/service.js.map +1 -0
  135. package/dist/src/configuration/settings-store.d.ts +20 -0
  136. package/dist/src/configuration/settings-store.js +228 -0
  137. package/dist/src/configuration/settings-store.js.map +1 -0
  138. package/dist/src/configuration/types.d.ts +30 -0
  139. package/dist/src/configuration/types.js +20 -0
  140. package/dist/src/configuration/types.js.map +1 -0
  141. package/dist/src/contracts/storage.d.ts +3 -2
  142. package/dist/src/dashboard/html-template.js +8 -15
  143. package/dist/src/dashboard/html-template.js.map +1 -1
  144. package/dist/src/dashboard/metrics.d.ts +1 -1
  145. package/dist/src/entities/context/accounts.d.ts +19 -0
  146. package/dist/src/entities/context/accounts.js +115 -0
  147. package/dist/src/entities/context/accounts.js.map +1 -0
  148. package/dist/src/entities/context/connection-check.d.ts +64 -0
  149. package/dist/src/entities/context/connection-check.js +117 -0
  150. package/dist/src/entities/context/connection-check.js.map +1 -0
  151. package/dist/src/entities/context/context-manager.d.ts +10 -23
  152. package/dist/src/entities/context/context-manager.js +101 -282
  153. package/dist/src/entities/context/context-manager.js.map +1 -1
  154. package/dist/src/entities/context/handlers.d.ts +5 -5
  155. package/dist/src/entities/context/handlers.js +11 -14
  156. package/dist/src/entities/context/handlers.js.map +1 -1
  157. package/dist/src/entities/context/output-schema.d.ts +320 -0
  158. package/dist/src/entities/context/output-schema.js +210 -0
  159. package/dist/src/entities/context/output-schema.js.map +1 -0
  160. package/dist/src/entities/context/profile.d.ts +29 -0
  161. package/dist/src/entities/context/profile.js +72 -0
  162. package/dist/src/entities/context/profile.js.map +1 -0
  163. package/dist/src/entities/context/registry.js +140 -3
  164. package/dist/src/entities/context/registry.js.map +1 -1
  165. package/dist/src/entities/context/schema.d.ts +32 -14
  166. package/dist/src/entities/context/schema.js +36 -13
  167. package/dist/src/entities/context/schema.js.map +1 -1
  168. package/dist/src/entities/context/scope-search.d.ts +49 -0
  169. package/dist/src/entities/context/scope-search.js +71 -0
  170. package/dist/src/entities/context/scope-search.js.map +1 -0
  171. package/dist/src/entities/context/settings-panel.d.ts +13 -0
  172. package/dist/src/entities/context/settings-panel.js +508 -0
  173. package/dist/src/entities/context/settings-panel.js.map +1 -0
  174. package/dist/src/entities/context/settings.d.ts +78 -0
  175. package/dist/src/entities/context/settings.js +239 -0
  176. package/dist/src/entities/context/settings.js.map +1 -0
  177. package/dist/src/entities/context/types.d.ts +3 -4
  178. package/dist/src/entities/context/whoami.js +39 -31
  179. package/dist/src/entities/context/whoami.js.map +1 -1
  180. package/dist/src/entities/core/registry.js +34 -33
  181. package/dist/src/entities/core/registry.js.map +1 -1
  182. package/dist/src/entities/core/schema-readonly.d.ts +4 -4
  183. package/dist/src/entities/environments/schema-readonly.d.ts +4 -4
  184. package/dist/src/entities/files/registry.js +3 -2
  185. package/dist/src/entities/files/registry.js.map +1 -1
  186. package/dist/src/entities/iterations/registry.js +3 -2
  187. package/dist/src/entities/iterations/registry.js.map +1 -1
  188. package/dist/src/entities/mrs/registry.js +6 -4
  189. package/dist/src/entities/mrs/registry.js.map +1 -1
  190. package/dist/src/entities/mrs/schema-readonly.d.ts +2 -2
  191. package/dist/src/entities/mrs/schema-readonly.js +19 -2
  192. package/dist/src/entities/mrs/schema-readonly.js.map +1 -1
  193. package/dist/src/entities/mrs/schema.d.ts +1 -1
  194. package/dist/src/entities/pipelines/registry.js +23 -31
  195. package/dist/src/entities/pipelines/registry.js.map +1 -1
  196. package/dist/src/entities/pipelines/schema-readonly.d.ts +11 -11
  197. package/dist/src/entities/pipelines/schema-readonly.js +5 -2
  198. package/dist/src/entities/pipelines/schema-readonly.js.map +1 -1
  199. package/dist/src/entities/pipelines/trace.d.ts +20 -0
  200. package/dist/src/entities/pipelines/trace.js +156 -0
  201. package/dist/src/entities/pipelines/trace.js.map +1 -0
  202. package/dist/src/entities/runners/project-access.d.ts +14 -0
  203. package/dist/src/entities/runners/project-access.js +64 -0
  204. package/dist/src/entities/runners/project-access.js.map +1 -0
  205. package/dist/src/entities/runners/registry.js +54 -26
  206. package/dist/src/entities/runners/registry.js.map +1 -1
  207. package/dist/src/entities/search/schema-readonly.d.ts +28 -28
  208. package/dist/src/graphql/runners.d.ts +26 -1
  209. package/dist/src/graphql/runners.js +43 -6
  210. package/dist/src/graphql/runners.js.map +1 -1
  211. package/dist/src/graphql/vulnerabilities.d.ts +3 -0
  212. package/dist/src/graphql/vulnerabilities.js +1 -0
  213. package/dist/src/graphql/vulnerabilities.js.map +1 -1
  214. package/dist/src/handlers.js +351 -190
  215. package/dist/src/handlers.js.map +1 -1
  216. package/dist/src/main.js +23 -5
  217. package/dist/src/main.js.map +1 -1
  218. package/dist/src/mcp-apps.d.ts +6 -0
  219. package/dist/src/mcp-apps.js +8 -0
  220. package/dist/src/mcp-apps.js.map +1 -0
  221. package/dist/src/mcp-server-context.d.ts +3 -0
  222. package/dist/src/mcp-server-context.js +13 -0
  223. package/dist/src/mcp-server-context.js.map +1 -0
  224. package/dist/src/middleware/mcp-auth-routes.d.ts +3 -0
  225. package/dist/src/middleware/mcp-auth-routes.js +9 -0
  226. package/dist/src/middleware/mcp-auth-routes.js.map +1 -0
  227. package/dist/src/middleware/oauth-auth.js +87 -24
  228. package/dist/src/middleware/oauth-auth.js.map +1 -1
  229. package/dist/src/middleware/rate-limiter.js +11 -10
  230. package/dist/src/middleware/rate-limiter.js.map +1 -1
  231. package/dist/src/oauth/authorization-response.d.ts +1 -0
  232. package/dist/src/oauth/authorization-response.js +14 -0
  233. package/dist/src/oauth/authorization-response.js.map +1 -0
  234. package/dist/src/oauth/client-auth.d.ts +16 -0
  235. package/dist/src/oauth/client-auth.js +73 -0
  236. package/dist/src/oauth/client-auth.js.map +1 -0
  237. package/dist/src/oauth/code-exchange.d.ts +7 -0
  238. package/dist/src/oauth/code-exchange.js +38 -0
  239. package/dist/src/oauth/code-exchange.js.map +1 -0
  240. package/dist/src/oauth/config.d.ts +2 -0
  241. package/dist/src/oauth/config.js +37 -0
  242. package/dist/src/oauth/config.js.map +1 -1
  243. package/dist/src/oauth/endpoints/authorize.d.ts +1 -0
  244. package/dist/src/oauth/endpoints/authorize.js +361 -102
  245. package/dist/src/oauth/endpoints/authorize.js.map +1 -1
  246. package/dist/src/oauth/endpoints/callback.js +76 -41
  247. package/dist/src/oauth/endpoints/callback.js.map +1 -1
  248. package/dist/src/oauth/endpoints/index.d.ts +1 -0
  249. package/dist/src/oauth/endpoints/index.js +3 -1
  250. package/dist/src/oauth/endpoints/index.js.map +1 -1
  251. package/dist/src/oauth/endpoints/metadata.d.ts +1 -1
  252. package/dist/src/oauth/endpoints/metadata.js +23 -8
  253. package/dist/src/oauth/endpoints/metadata.js.map +1 -1
  254. package/dist/src/oauth/endpoints/register.d.ts +3 -2
  255. package/dist/src/oauth/endpoints/register.js +70 -19
  256. package/dist/src/oauth/endpoints/register.js.map +1 -1
  257. package/dist/src/oauth/endpoints/revoke.d.ts +2 -0
  258. package/dist/src/oauth/endpoints/revoke.js +78 -0
  259. package/dist/src/oauth/endpoints/revoke.js.map +1 -0
  260. package/dist/src/oauth/endpoints/token.js +136 -62
  261. package/dist/src/oauth/endpoints/token.js.map +1 -1
  262. package/dist/src/oauth/gitlab-device-flow.d.ts +27 -8
  263. package/dist/src/oauth/gitlab-device-flow.js +119 -57
  264. package/dist/src/oauth/gitlab-device-flow.js.map +1 -1
  265. package/dist/src/oauth/gitlab-request-bound.d.ts +1 -0
  266. package/dist/src/oauth/gitlab-request-bound.js +6 -0
  267. package/dist/src/oauth/gitlab-request-bound.js.map +1 -0
  268. package/dist/src/oauth/gitlab-token-refresh.d.ts +7 -0
  269. package/dist/src/oauth/gitlab-token-refresh.js +147 -0
  270. package/dist/src/oauth/gitlab-token-refresh.js.map +1 -0
  271. package/dist/src/oauth/grant-revocation.d.ts +10 -0
  272. package/dist/src/oauth/grant-revocation.js +179 -0
  273. package/dist/src/oauth/grant-revocation.js.map +1 -0
  274. package/dist/src/oauth/granted-scopes.d.ts +1 -0
  275. package/dist/src/oauth/granted-scopes.js +7 -0
  276. package/dist/src/oauth/granted-scopes.js.map +1 -0
  277. package/dist/src/oauth/index.d.ts +2 -2
  278. package/dist/src/oauth/index.js +4 -2
  279. package/dist/src/oauth/index.js.map +1 -1
  280. package/dist/src/oauth/instance-app.d.ts +4 -0
  281. package/dist/src/oauth/instance-app.js +45 -0
  282. package/dist/src/oauth/instance-app.js.map +1 -0
  283. package/dist/src/oauth/issued-tokens.d.ts +1 -0
  284. package/dist/src/oauth/issued-tokens.js +24 -0
  285. package/dist/src/oauth/issued-tokens.js.map +1 -0
  286. package/dist/src/oauth/oauth-app.d.ts +9 -0
  287. package/dist/src/oauth/oauth-app.js +14 -0
  288. package/dist/src/oauth/oauth-app.js.map +1 -0
  289. package/dist/src/oauth/request-params.d.ts +1 -0
  290. package/dist/src/oauth/request-params.js +17 -0
  291. package/dist/src/oauth/request-params.js.map +1 -0
  292. package/dist/src/oauth/resource.d.ts +12 -0
  293. package/dist/src/oauth/resource.js +66 -0
  294. package/dist/src/oauth/resource.js.map +1 -0
  295. package/dist/src/oauth/routes.d.ts +2 -0
  296. package/dist/src/oauth/routes.js +31 -0
  297. package/dist/src/oauth/routes.js.map +1 -0
  298. package/dist/src/oauth/session-store.d.ts +51 -36
  299. package/dist/src/oauth/session-store.js +156 -251
  300. package/dist/src/oauth/session-store.js.map +1 -1
  301. package/dist/src/oauth/storage/factory.js +1 -1
  302. package/dist/src/oauth/storage/factory.js.map +1 -1
  303. package/dist/src/oauth/storage/file.d.ts +29 -2
  304. package/dist/src/oauth/storage/file.js +194 -42
  305. package/dist/src/oauth/storage/file.js.map +1 -1
  306. package/dist/src/oauth/storage/memory.d.ts +35 -2
  307. package/dist/src/oauth/storage/memory.js +327 -32
  308. package/dist/src/oauth/storage/memory.js.map +1 -1
  309. package/dist/src/oauth/storage/types.d.ts +37 -1
  310. package/dist/src/oauth/storage/types.js +6 -1
  311. package/dist/src/oauth/storage/types.js.map +1 -1
  312. package/dist/src/oauth/tool-auth.d.ts +12 -0
  313. package/dist/src/oauth/tool-auth.js +108 -0
  314. package/dist/src/oauth/tool-auth.js.map +1 -0
  315. package/dist/src/oauth/types.d.ts +41 -0
  316. package/dist/src/profiles/scope-enforcer.d.ts +8 -0
  317. package/dist/src/profiles/scope-enforcer.js +86 -24
  318. package/dist/src/profiles/scope-enforcer.js.map +1 -1
  319. package/dist/src/profiles/types.js +4 -1
  320. package/dist/src/profiles/types.js.map +1 -1
  321. package/dist/src/registry-manager.d.ts +16 -4
  322. package/dist/src/registry-manager.js +122 -33
  323. package/dist/src/registry-manager.js.map +1 -1
  324. package/dist/src/server.js +82 -50
  325. package/dist/src/server.js.map +1 -1
  326. package/dist/src/services/AdminDetector.d.ts +1 -1
  327. package/dist/src/services/AdminDetector.js +4 -4
  328. package/dist/src/services/AdminDetector.js.map +1 -1
  329. package/dist/src/services/ConnectionManager.d.ts +2 -2
  330. package/dist/src/services/ConnectionManager.js +43 -70
  331. package/dist/src/services/ConnectionManager.js.map +1 -1
  332. package/dist/src/services/HealthMonitor.js +4 -2
  333. package/dist/src/services/HealthMonitor.js.map +1 -1
  334. package/dist/src/services/NamespaceTierDetector.js +26 -27
  335. package/dist/src/services/NamespaceTierDetector.js.map +1 -1
  336. package/dist/src/services/TokenScopeDetector.d.ts +6 -2
  337. package/dist/src/services/TokenScopeDetector.js +22 -3
  338. package/dist/src/services/TokenScopeDetector.js.map +1 -1
  339. package/dist/src/session-manager.d.ts +3 -1
  340. package/dist/src/session-manager.js +43 -10
  341. package/dist/src/session-manager.js.map +1 -1
  342. package/dist/src/types.d.ts +3 -2
  343. package/dist/src/types.js.map +1 -1
  344. package/dist/src/utils/bounded-map.d.ts +1 -0
  345. package/dist/src/utils/bounded-map.js +23 -0
  346. package/dist/src/utils/bounded-map.js.map +1 -0
  347. package/dist/src/utils/fetch.d.ts +1 -2
  348. package/dist/src/utils/fetch.js +12 -17
  349. package/dist/src/utils/fetch.js.map +1 -1
  350. package/dist/src/utils/gitlab-api.js +2 -1
  351. package/dist/src/utils/gitlab-api.js.map +1 -1
  352. package/dist/src/utils/gitlab-base-url.d.ts +2 -0
  353. package/dist/src/utils/gitlab-base-url.js +34 -0
  354. package/dist/src/utils/gitlab-base-url.js.map +1 -0
  355. package/dist/src/utils/html.d.ts +1 -0
  356. package/dist/src/utils/html.js +12 -0
  357. package/dist/src/utils/html.js.map +1 -0
  358. package/dist/src/utils/namespace.d.ts +1 -0
  359. package/dist/src/utils/namespace.js +72 -24
  360. package/dist/src/utils/namespace.js.map +1 -1
  361. package/dist/src/utils/schema-utils.d.ts +5 -3
  362. package/dist/src/utils/schema-utils.js +50 -22
  363. package/dist/src/utils/schema-utils.js.map +1 -1
  364. package/dist/src/utils/smart-user-search.js +2 -1
  365. package/dist/src/utils/smart-user-search.js.map +1 -1
  366. package/dist/src/utils/sync-directory.d.ts +1 -0
  367. package/dist/src/utils/sync-directory.js +49 -0
  368. package/dist/src/utils/sync-directory.js.map +1 -0
  369. package/dist/src/utils/tool-result.d.ts +4 -0
  370. package/dist/src/utils/tool-result.js +41 -0
  371. package/dist/src/utils/tool-result.js.map +1 -0
  372. package/dist/tsconfig.build.tsbuildinfo +1 -1
  373. package/package.json +74 -21
  374. package/plugin/assets/composer-icon-dark.png +0 -0
  375. package/plugin/assets/composer-icon-dark.svg +17 -0
  376. package/plugin/assets/composer-icon.png +0 -0
  377. package/plugin/assets/composer-icon.svg +17 -0
  378. package/plugin/assets/logo.png +0 -0
  379. package/plugin/assets/screenshot-1.png +0 -0
  380. package/plugin/assets/screenshot-2.png +0 -0
  381. package/plugin/schemas/mcp.schema.json +120 -0
  382. package/plugin/schemas/plugin.schema.json +65 -0
  383. package/skills/gitlab-ci/SKILL.md +16 -0
  384. package/skills/gitlab-discovery/SKILL.md +15 -0
  385. package/skills/gitlab-review/SKILL.md +16 -0
  386. package/skills/gitlab-setup/SKILL.md +16 -0
  387. package/skills/gitlab-work-items/SKILL.md +16 -0
@@ -40,22 +40,159 @@ exports.getFilteredContextTools = getFilteredContextTools;
40
40
  const z = __importStar(require("zod"));
41
41
  const schema_1 = require("./schema");
42
42
  const handlers_1 = require("./handlers");
43
+ const output_schema_1 = require("./output-schema");
44
+ const types_js_1 = require("@modelcontextprotocol/sdk/types.js");
45
+ const profile_1 = require("./profile");
46
+ const settings_1 = require("./settings");
47
+ const connection_check_1 = require("./connection-check");
48
+ const settings_panel_1 = require("./settings-panel");
49
+ const scope_search_1 = require("./scope-search");
43
50
  exports.contextToolRegistry = new Map([
44
51
  [
45
52
  'manage_context',
46
53
  {
47
54
  name: 'manage_context',
48
- description: 'View and manage runtime session configuration. Actions: show (current host/preset/scope/mode), list_presets (available tool configurations), list_profiles (OAuth users), whoami (token introspection with live refresh - detects permission changes and updates available tools), switch_preset (change active preset), switch_profile (change OAuth user), set_scope (restrict to namespace), reset (restore initial state). Use whoami to diagnose access issues and verify token permissions.',
55
+ description: 'View and manage runtime session configuration. Actions: show (current host/preset/scope/mode), list_presets (available tool configurations), whoami (token introspection with live refresh - detects permission changes and updates available tools), switch_preset (change active preset), set_scope (restrict to namespace), clear_scope (work everywhere in this session, keeping its preset and read-only mode), reset (restore initial state), list_accounts (GitLab accounts of this connection, on one or several instances), switch_account (work with another listed account in this chat), link_account (sign in with another account, e.g. a personal GitLab.com account next to a company instance, and link it), unlink_account (remove a linked account). Use whoami to diagnose access issues and verify token permissions.',
49
56
  inputSchema: z.toJSONSchema(schema_1.ManageContextSchema),
57
+ outputSchema: types_js_1.ToolSchema.shape.outputSchema.parse({
58
+ ...z.toJSONSchema(output_schema_1.ContextOutputSchema, { target: 'draft-7' }),
59
+ type: 'object',
60
+ }),
61
+ resultFormat: 'mcp',
50
62
  handler: async (args) => {
51
63
  const input = schema_1.ManageContextSchema.parse(args);
52
- return (0, handlers_1.handleManageContext)(input);
64
+ const data = await (0, handlers_1.handleManageContext)(input);
65
+ return {
66
+ content: [{ type: 'text', text: JSON.stringify(data, null, 2) }],
67
+ structuredContent: { action: input.action, data },
68
+ };
69
+ },
70
+ },
71
+ ],
72
+ [
73
+ 'get_profile',
74
+ {
75
+ name: 'get_profile',
76
+ title: 'GitLab account',
77
+ description: 'Identify the GitLab account this connection uses: a stable account id, display name, email when GitLab provides it, and the username with its instance.',
78
+ inputSchema: { type: 'object', properties: {}, additionalProperties: false },
79
+ outputSchema: profile_1.ACCOUNT_PROFILE_OUTPUT_SCHEMA,
80
+ annotations: {
81
+ readOnlyHint: true,
82
+ destructiveHint: false,
83
+ idempotentHint: true,
84
+ openWorldHint: true,
85
+ },
86
+ _meta: { 'openai/profile': true },
87
+ resultFormat: 'mcp',
88
+ handler: async () => {
89
+ const profile = await (0, profile_1.getAccountProfile)();
90
+ return {
91
+ content: [{ type: 'text', text: JSON.stringify(profile) }],
92
+ structuredContent: profile,
93
+ };
94
+ },
95
+ },
96
+ ],
97
+ [
98
+ settings_1.SETTINGS_READ_TOOL,
99
+ {
100
+ name: settings_1.SETTINGS_READ_TOOL,
101
+ title: 'GitLab settings',
102
+ description: "Show this account's settings, which apply to all of its chats except where a chat chose otherwise: working preset, read-only mode, default project or group, and which tool groups are on, with what each can be set to.",
103
+ inputSchema: { type: 'object', properties: {}, additionalProperties: false },
104
+ outputSchema: settings_1.SETTINGS_READ_OUTPUT_SCHEMA,
105
+ annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
106
+ resultFormat: 'mcp',
107
+ handler: async () => settingsResult(await (0, settings_1.readSettings)()),
108
+ },
109
+ ],
110
+ [
111
+ settings_1.SETTINGS_UPDATE_TOOL,
112
+ {
113
+ name: settings_1.SETTINGS_UPDATE_TOOL,
114
+ title: 'Change GitLab settings',
115
+ description: "Change this account's settings, at once for all of its chats except where a chat chose otherwise. Pass only the settings to change, by the names get_settings lists; the others keep their value. Nothing is saved when any value is invalid. Returns the saved values.",
116
+ inputSchema: settings_1.SETTINGS_UPDATE_INPUT_SCHEMA,
117
+ outputSchema: settings_1.SETTINGS_UPDATE_OUTPUT_SCHEMA,
118
+ annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true },
119
+ resultFormat: 'mcp',
120
+ handler: async (args) => {
121
+ const { set } = args;
122
+ return settingsResult(await (0, settings_1.updateSettings)(set));
123
+ },
124
+ },
125
+ ],
126
+ [
127
+ settings_1.CONNECTION_CHECK_TOOL,
128
+ {
129
+ name: settings_1.CONNECTION_CHECK_TOOL,
130
+ title: 'Check connection',
131
+ description: 'Check the GitLab connection: which account it uses, whether GitLab answers, the restrictions in effect, and what to do about problems.',
132
+ inputSchema: { type: 'object', properties: {}, additionalProperties: false },
133
+ outputSchema: connection_check_1.CONNECTION_CHECK_OUTPUT_SCHEMA,
134
+ annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: true },
135
+ resultFormat: 'mcp',
136
+ handler: async () => settingsResult(await (0, connection_check_1.checkConnection)()),
137
+ },
138
+ ],
139
+ [
140
+ settings_1.SETTINGS_PANEL_TOOL,
141
+ {
142
+ name: settings_1.SETTINGS_PANEL_TOOL,
143
+ title: 'GitLab connection panel',
144
+ description: 'Open the GitLab connection panel to search projects and groups, choose where this chat or all chats of the account work, and check the connection.',
145
+ inputSchema: { type: 'object', properties: {}, additionalProperties: false },
146
+ annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
147
+ _meta: {
148
+ ui: { resourceUri: settings_panel_1.SETTINGS_PANEL_URI },
149
+ 'openai/outputTemplate': settings_panel_1.SETTINGS_PANEL_URI,
150
+ },
151
+ resultFormat: 'mcp',
152
+ handler: () => Promise.resolve({
153
+ content: [
154
+ {
155
+ type: 'text',
156
+ text: 'Opened the GitLab connection panel. Clients without app panels change the same settings with get_settings, update_settings and manage_context set_scope.',
157
+ },
158
+ ],
159
+ structuredContent: { opened: true },
160
+ }),
161
+ },
162
+ ],
163
+ [
164
+ scope_search_1.SCOPE_SEARCH_TOOL,
165
+ {
166
+ name: scope_search_1.SCOPE_SEARCH_TOOL,
167
+ title: 'Find projects and groups',
168
+ description: 'Find projects you are a member of and groups you can see by name or path, to choose a working scope.',
169
+ inputSchema: scope_search_1.SCOPE_SEARCH_INPUT_SCHEMA,
170
+ outputSchema: scope_search_1.SCOPE_SEARCH_OUTPUT_SCHEMA,
171
+ annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: true },
172
+ resultFormat: 'mcp',
173
+ handler: async (args) => {
174
+ const { query } = args;
175
+ return settingsResult(await (0, scope_search_1.findScopeTargets)(query));
53
176
  },
54
177
  },
55
178
  ],
56
179
  ]);
180
+ function settingsResult(data) {
181
+ return {
182
+ content: [{ type: 'text', text: JSON.stringify(data, null, 2) }],
183
+ structuredContent: data,
184
+ };
185
+ }
57
186
  function getContextReadOnlyToolNames() {
58
- return ['manage_context'];
187
+ return [
188
+ 'manage_context',
189
+ 'get_profile',
190
+ settings_1.SETTINGS_READ_TOOL,
191
+ settings_1.SETTINGS_UPDATE_TOOL,
192
+ settings_1.CONNECTION_CHECK_TOOL,
193
+ settings_1.SETTINGS_PANEL_TOOL,
194
+ scope_search_1.SCOPE_SEARCH_TOOL,
195
+ ];
59
196
  }
60
197
  function getContextToolDefinitions() {
61
198
  return Array.from(exports.contextToolRegistry.values());
@@ -1 +1 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../src/entities/context/registry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,kEAEC;AAKD,8DAEC;AAMD,0DAEC;AA1DD,uCAAyB;AAEzB,qCAA+C;AAC/C,yCAAiD;AAepC,QAAA,mBAAmB,GAAiB,IAAI,GAAG,CAAiC;IACvF;QACE,gBAAgB;QAChB;YACE,IAAI,EAAE,gBAAgB;YACtB,WAAW,EACT,meAAme;YACre,WAAW,EAAE,CAAC,CAAC,YAAY,CAAC,4BAAmB,CAAC;YAEhD,OAAO,EAAE,KAAK,EAAE,IAAa,EAAE,EAAE;gBAC/B,MAAM,KAAK,GAAG,4BAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBAC9C,OAAO,IAAA,8BAAmB,EAAC,KAAK,CAAC,CAAC;YACpC,CAAC;SACF;KACF;CACF,CAAC,CAAC;AAQH,SAAgB,2BAA2B;IACzC,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC5B,CAAC;AAKD,SAAgB,yBAAyB;IACvC,OAAO,KAAK,CAAC,IAAI,CAAC,2BAAmB,CAAC,MAAM,EAAE,CAAC,CAAC;AAClD,CAAC;AAMD,SAAgB,uBAAuB,CAAC,gBAAyB,KAAK;IACpE,OAAO,yBAAyB,EAAE,CAAC;AACrC,CAAC"}
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../src/entities/context/registry.ts"],"names":[],"mappings":";;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extSchema: z.ZodObject<{
5
5
  declare const ListPresetsSchema: z.ZodObject<{
6
6
  action: z.ZodLiteral<"list_presets">;
7
7
  }, z.core.$strip>;
8
- declare const ListProfilesSchema: z.ZodObject<{
9
- action: z.ZodLiteral<"list_profiles">;
10
- }, z.core.$strip>;
11
8
  declare const SwitchPresetSchema: z.ZodObject<{
12
9
  action: z.ZodLiteral<"switch_preset">;
13
10
  preset: z.ZodString;
14
11
  }, z.core.$strip>;
15
- declare const SwitchProfileSchema: z.ZodObject<{
16
- action: z.ZodLiteral<"switch_profile">;
17
- profile: z.ZodString;
18
- }, z.core.$strip>;
19
12
  declare const SetScopeSchema: z.ZodObject<{
20
13
  action: z.ZodLiteral<"set_scope">;
21
14
  namespace: z.ZodString;
22
15
  includeSubgroups: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
23
16
  }, z.core.$strip>;
17
+ declare const ClearScopeSchema: z.ZodObject<{
18
+ action: z.ZodLiteral<"clear_scope">;
19
+ }, z.core.$strip>;
24
20
  declare const ResetContextSchema: z.ZodObject<{
25
21
  action: z.ZodLiteral<"reset">;
26
22
  }, z.core.$strip>;
27
23
  declare const WhoamiSchema: z.ZodObject<{
28
24
  action: z.ZodLiteral<"whoami">;
29
25
  }, z.core.$strip>;
26
+ declare const SwitchAccountSchema: z.ZodObject<{
27
+ action: z.ZodLiteral<"switch_account">;
28
+ account: z.ZodString;
29
+ }, z.core.$strip>;
30
+ declare const LinkAccountSchema: z.ZodObject<{
31
+ action: z.ZodLiteral<"link_account">;
32
+ instance: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strip>;
34
+ declare const UnlinkAccountSchema: z.ZodObject<{
35
+ action: z.ZodLiteral<"unlink_account">;
36
+ account: z.ZodString;
37
+ }, z.core.$strip>;
30
38
  export declare const ManageContextSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
31
39
  action: z.ZodLiteral<"show">;
32
40
  }, z.core.$strip>, z.ZodObject<{
33
41
  action: z.ZodLiteral<"list_presets">;
34
- }, z.core.$strip>, z.ZodObject<{
35
- action: z.ZodLiteral<"list_profiles">;
36
42
  }, z.core.$strip>, z.ZodObject<{
37
43
  action: z.ZodLiteral<"switch_preset">;
38
44
  preset: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- action: z.ZodLiteral<"switch_profile">;
41
- profile: z.ZodString;
42
45
  }, z.core.$strip>, z.ZodObject<{
43
46
  action: z.ZodLiteral<"set_scope">;
44
47
  namespace: z.ZodString;
45
48
  includeSubgroups: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49
+ }, z.core.$strip>, z.ZodObject<{
50
+ action: z.ZodLiteral<"clear_scope">;
46
51
  }, z.core.$strip>, z.ZodObject<{
47
52
  action: z.ZodLiteral<"reset">;
48
53
  }, z.core.$strip>, z.ZodObject<{
49
54
  action: z.ZodLiteral<"whoami">;
55
+ }, z.core.$strip>, z.ZodObject<{
56
+ action: z.ZodLiteral<"list_accounts">;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ action: z.ZodLiteral<"switch_account">;
59
+ account: z.ZodString;
60
+ }, z.core.$strip>, z.ZodObject<{
61
+ action: z.ZodLiteral<"link_account">;
62
+ instance: z.ZodOptional<z.ZodString>;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ action: z.ZodLiteral<"unlink_account">;
65
+ account: z.ZodString;
50
66
  }, z.core.$strip>], "action">;
51
67
  export type ManageContextInput = z.infer<typeof ManageContextSchema>;
52
68
  export type ShowContextInput = z.infer<typeof ShowContextSchema>;
53
69
  export type ListPresetsInput = z.infer<typeof ListPresetsSchema>;
54
- export type ListProfilesInput = z.infer<typeof ListProfilesSchema>;
55
70
  export type SwitchPresetInput = z.infer<typeof SwitchPresetSchema>;
56
- export type SwitchProfileInput = z.infer<typeof SwitchProfileSchema>;
57
71
  export type SetScopeInput = z.infer<typeof SetScopeSchema>;
72
+ export type ClearScopeInput = z.infer<typeof ClearScopeSchema>;
58
73
  export type ResetContextInput = z.infer<typeof ResetContextSchema>;
59
74
  export type WhoamiInput = z.infer<typeof WhoamiSchema>;
75
+ export type SwitchAccountInput = z.infer<typeof SwitchAccountSchema>;
76
+ export type LinkAccountInput = z.infer<typeof LinkAccountSchema>;
77
+ export type UnlinkAccountInput = z.infer<typeof UnlinkAccountSchema>;
60
78
  export {};
@@ -10,21 +10,10 @@ const ShowContextSchema = zod_1.z.object({
10
10
  const ListPresetsSchema = zod_1.z.object({
11
11
  action: zod_1.z.literal('list_presets').describe('List all available presets with descriptions'),
12
12
  });
13
- const ListProfilesSchema = zod_1.z.object({
14
- action: zod_1.z
15
- .literal('list_profiles')
16
- .describe('List available OAuth profiles - only works in OAuth mode'),
17
- });
18
13
  const SwitchPresetSchema = zod_1.z.object({
19
14
  action: zod_1.z.literal('switch_preset').describe('Switch to a different preset configuration'),
20
15
  preset: zod_1.z.string().min(1).describe('Name of the preset to activate'),
21
16
  });
22
- const SwitchProfileSchema = zod_1.z.object({
23
- action: zod_1.z
24
- .literal('switch_profile')
25
- .describe('Switch to a different OAuth profile - OAuth mode only'),
26
- profile: zod_1.z.string().min(1).describe('Name of the profile to activate'),
27
- });
28
17
  const SetScopeSchema = zod_1.z.object({
29
18
  action: zod_1.z.literal('set_scope').describe('Set scope to restrict operations to a namespace'),
30
19
  namespace: zod_1.z
@@ -37,6 +26,11 @@ const SetScopeSchema = zod_1.z.object({
37
26
  .default(true)
38
27
  .describe('Include subgroups when scope is a group (default: true)'),
39
28
  });
29
+ const ClearScopeSchema = zod_1.z.object({
30
+ action: zod_1.z
31
+ .literal('clear_scope')
32
+ .describe("Work everywhere the account has access in this session: drops this session's scope and the account's default scope for it; preset and read-only mode stay"),
33
+ });
40
34
  const ResetContextSchema = zod_1.z.object({
41
35
  action: zod_1.z.literal('reset').describe('Reset context to initial state from session start'),
42
36
  });
@@ -48,14 +42,43 @@ const WhoamiSchema = zod_1.z.object({
48
42
  'automatically refreshes available tools (scopesRefreshed=true in response). ' +
49
43
  'Use to diagnose access issues or verify new token permissions are active.'),
50
44
  });
45
+ const ListAccountsSchema = zod_1.z.object({
46
+ action: zod_1.z
47
+ .literal('list_accounts')
48
+ .describe('List the GitLab accounts this connection can use, on one or several instances, and which one this chat works with'),
49
+ });
50
+ const SwitchAccountSchema = zod_1.z.object({
51
+ action: zod_1.z
52
+ .literal('switch_account')
53
+ .describe('Work with another of the listed accounts in this chat; other chats keep theirs. Tools, settings and permissions follow that account and its instance'),
54
+ account: zod_1.z.string().min(1).describe('Account id from list_accounts'),
55
+ });
56
+ const LinkAccountSchema = zod_1.z.object({
57
+ action: zod_1.z
58
+ .literal('link_account')
59
+ .describe('Sign in with another GitLab account, on this or another configured instance, and link it to this connection. Returns a sign-in link the user opens in the browser'),
60
+ instance: zod_1.z
61
+ .string()
62
+ .optional()
63
+ .describe("Instance URL of the account to link (e.g. 'https://gitlab.com'); default: this connection's instance"),
64
+ });
65
+ const UnlinkAccountSchema = zod_1.z.object({
66
+ action: zod_1.z
67
+ .literal('unlink_account')
68
+ .describe('Remove a linked account from this connection and revoke its OAuth grant'),
69
+ account: zod_1.z.string().min(1).describe('Account id from list_accounts'),
70
+ });
51
71
  exports.ManageContextSchema = zod_1.z.discriminatedUnion('action', [
52
72
  ShowContextSchema,
53
73
  ListPresetsSchema,
54
- ListProfilesSchema,
55
74
  SwitchPresetSchema,
56
- SwitchProfileSchema,
57
75
  SetScopeSchema,
76
+ ClearScopeSchema,
58
77
  ResetContextSchema,
59
78
  WhoamiSchema,
79
+ ListAccountsSchema,
80
+ SwitchAccountSchema,
81
+ LinkAccountSchema,
82
+ UnlinkAccountSchema,
60
83
  ]);
61
84
  //# sourceMappingURL=schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/entities/context/schema.ts"],"names":[],"mappings":";;;AAcA,6BAAwB;AASxB,MAAM,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACjC,MAAM,EAAE,OAAC;SACN,OAAO,CAAC,MAAM,CAAC;SACf,QAAQ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C,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,+BAA+B,CAAC;CACrE,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACjC,MAAM,EAAE,OAAC;SACN,OAAO,CAAC,cAAc,CAAC;SACvB,QAAQ,CACP,mKAAmK,CACpK;IACH,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,sGAAsG,CACvG;CACJ,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IACnC,MAAM,EAAE,OAAC;SACN,OAAO,CAAC,gBAAgB,CAAC;SACzB,QAAQ,CAAC,yEAAyE,CAAC;IACtF,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,+BAA+B,CAAC;CACrE,CAAC,CAAC;AASU,QAAA,mBAAmB,GAAG,OAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IAChE,iBAAiB;IACjB,iBAAiB;IACjB,kBAAkB;IAClB,cAAc;IACd,gBAAgB;IAChB,kBAAkB;IAClB,YAAY;IACZ,kBAAkB;IAClB,mBAAmB;IACnB,iBAAiB;IACjB,mBAAmB;CACpB,CAAC,CAAC"}
@@ -0,0 +1,49 @@
1
+ export declare const SCOPE_SEARCH_TOOL = "find_scope_targets";
2
+ export interface ScopeTarget {
3
+ type: 'project' | 'group';
4
+ path: string;
5
+ name: string;
6
+ }
7
+ export declare const SCOPE_SEARCH_INPUT_SCHEMA: {
8
+ type: "object";
9
+ properties: {
10
+ query: {
11
+ type: string;
12
+ minLength: number;
13
+ maxLength: number;
14
+ description: string;
15
+ };
16
+ };
17
+ required: string[];
18
+ additionalProperties: boolean;
19
+ };
20
+ export declare const SCOPE_SEARCH_OUTPUT_SCHEMA: {
21
+ type: "object";
22
+ properties: {
23
+ targets: {
24
+ type: string;
25
+ items: {
26
+ type: string;
27
+ properties: {
28
+ type: {
29
+ type: string;
30
+ enum: string[];
31
+ };
32
+ path: {
33
+ type: string;
34
+ };
35
+ name: {
36
+ type: string;
37
+ };
38
+ };
39
+ required: string[];
40
+ additionalProperties: boolean;
41
+ };
42
+ };
43
+ };
44
+ required: string[];
45
+ additionalProperties: boolean;
46
+ };
47
+ export declare function findScopeTargets(query: string): Promise<{
48
+ targets: ScopeTarget[];
49
+ }>;
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SCOPE_SEARCH_OUTPUT_SCHEMA = exports.SCOPE_SEARCH_INPUT_SCHEMA = exports.SCOPE_SEARCH_TOOL = void 0;
4
+ exports.findScopeTargets = findScopeTargets;
5
+ const gitlab_api_1 = require("../../utils/gitlab-api");
6
+ exports.SCOPE_SEARCH_TOOL = 'find_scope_targets';
7
+ const PER_KIND = 10;
8
+ exports.SCOPE_SEARCH_INPUT_SCHEMA = {
9
+ type: 'object',
10
+ properties: {
11
+ query: {
12
+ type: 'string',
13
+ minLength: 2,
14
+ maxLength: 100,
15
+ description: 'Part of a project or group name or path.',
16
+ },
17
+ },
18
+ required: ['query'],
19
+ additionalProperties: false,
20
+ };
21
+ exports.SCOPE_SEARCH_OUTPUT_SCHEMA = {
22
+ type: 'object',
23
+ properties: {
24
+ targets: {
25
+ type: 'array',
26
+ items: {
27
+ type: 'object',
28
+ properties: {
29
+ type: { type: 'string', enum: ['project', 'group'] },
30
+ path: { type: 'string' },
31
+ name: { type: 'string' },
32
+ },
33
+ required: ['type', 'path', 'name'],
34
+ additionalProperties: false,
35
+ },
36
+ },
37
+ },
38
+ required: ['targets'],
39
+ additionalProperties: false,
40
+ };
41
+ async function findScopeTargets(query) {
42
+ const search = query.trim();
43
+ if (search.length < 2 || search.length > 100) {
44
+ throw new Error('Search for 2 to 100 characters');
45
+ }
46
+ const [projects, groups] = await Promise.all([
47
+ gitlab_api_1.gitlab.get('projects', {
48
+ query: {
49
+ search,
50
+ membership: 'true',
51
+ simple: 'true',
52
+ per_page: String(PER_KIND),
53
+ order_by: 'last_activity_at',
54
+ },
55
+ }),
56
+ gitlab_api_1.gitlab.get('groups', {
57
+ query: { search, all_available: 'true', per_page: String(PER_KIND) },
58
+ }),
59
+ ]);
60
+ return {
61
+ targets: [
62
+ ...groups.map((g) => ({ type: 'group', path: g.full_path, name: g.full_name })),
63
+ ...projects.map((p) => ({
64
+ type: 'project',
65
+ path: p.path_with_namespace,
66
+ name: p.name_with_namespace,
67
+ })),
68
+ ],
69
+ };
70
+ }
71
+ //# sourceMappingURL=scope-search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scope-search.js","sourceRoot":"","sources":["../../../../src/entities/context/scope-search.ts"],"names":[],"mappings":";;;AAmEA,4CA8BC;AA3FD,uDAAgD;AAEnC,QAAA,iBAAiB,GAAG,oBAAoB,CAAC;AAGtD,MAAM,QAAQ,GAAG,EAAE,CAAC;AAUP,QAAA,yBAAyB,GAAG;IACvC,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE;QACV,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,GAAG;YACd,WAAW,EAAE,0CAA0C;SACxD;KACF;IACD,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,oBAAoB,EAAE,KAAK;CAC5B,CAAC;AAEW,QAAA,0BAA0B,GAAG;IACxC,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE;QACV,OAAO,EAAE;YACP,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE;oBACpD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACxB,IAAI,EAAE,EAAE,IAAI,EAA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E,SAAkB;gBACxB,IAAI,EAAE,CAAC,CAAC,mBAAmB;gBAC3B,IAAI,EAAE,CAAC,CAAC,mBAAmB;aAC5B,CAAC,CAAC;SACJ;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,13 @@
1
+ export declare const SETTINGS_PANEL_URI = "ui://gitlab-mcp/settings-panel-v1.html";
2
+ export declare const MCP_APPS_PROTOCOL_VERSION = "2026-01-26";
3
+ export declare const SETTINGS_PANEL_RESOURCE_META: {
4
+ ui: {
5
+ csp: {
6
+ connectDomains: never[];
7
+ resourceDomains: never[];
8
+ frameDomains: never[];
9
+ };
10
+ prefersBorder: boolean;
11
+ };
12
+ };
13
+ export declare function settingsPanelHtml(): string;