mcp4openapi 0.2.8 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (358) hide show
  1. package/README.md +143 -63
  2. package/dist/scripts/validate-profile.js +3 -3
  3. package/dist/scripts/validate-profile.js.map +1 -1
  4. package/dist/src/argument-normalizer.d.ts +5 -0
  5. package/dist/src/argument-normalizer.d.ts.map +1 -0
  6. package/dist/src/argument-normalizer.js +61 -0
  7. package/dist/src/argument-normalizer.js.map +1 -0
  8. package/dist/src/auth/oauth-provider.d.ts +131 -0
  9. package/dist/src/auth/oauth-provider.d.ts.map +1 -0
  10. package/dist/src/auth/oauth-provider.js +839 -0
  11. package/dist/src/auth/oauth-provider.js.map +1 -0
  12. package/dist/src/cli-config.d.ts +9 -0
  13. package/dist/src/cli-config.d.ts.map +1 -0
  14. package/dist/src/cli-config.js +111 -0
  15. package/dist/src/cli-config.js.map +1 -0
  16. package/dist/src/core/cli-config.d.ts +9 -0
  17. package/dist/src/core/cli-config.d.ts.map +1 -0
  18. package/dist/src/core/cli-config.js +125 -0
  19. package/dist/src/core/cli-config.js.map +1 -0
  20. package/dist/src/core/constants.d.ts +86 -0
  21. package/dist/src/core/constants.d.ts.map +1 -0
  22. package/dist/src/core/constants.js +86 -0
  23. package/dist/src/core/constants.js.map +1 -0
  24. package/dist/src/core/errors.d.ts +59 -0
  25. package/dist/src/core/errors.d.ts.map +1 -0
  26. package/dist/src/core/errors.js +119 -0
  27. package/dist/src/core/errors.js.map +1 -0
  28. package/dist/src/core/filtering.d.ts +19 -0
  29. package/dist/src/core/filtering.d.ts.map +1 -0
  30. package/dist/src/core/filtering.js +292 -0
  31. package/dist/src/core/filtering.js.map +1 -0
  32. package/dist/src/core/index.d.ts +26 -0
  33. package/dist/src/core/index.d.ts.map +1 -0
  34. package/dist/src/core/index.js +276 -0
  35. package/dist/src/core/index.js.map +1 -0
  36. package/dist/src/core/lib.d.ts +8 -0
  37. package/dist/src/core/lib.d.ts.map +1 -0
  38. package/dist/src/core/lib.js +7 -0
  39. package/dist/src/core/lib.js.map +1 -0
  40. package/dist/src/core/logger.d.ts +59 -0
  41. package/dist/src/core/logger.d.ts.map +1 -0
  42. package/dist/src/core/logger.js +197 -0
  43. package/dist/src/core/logger.js.map +1 -0
  44. package/dist/src/core/metrics.d.ts +97 -0
  45. package/dist/src/core/metrics.d.ts.map +1 -0
  46. package/dist/src/core/metrics.js +273 -0
  47. package/dist/src/core/metrics.js.map +1 -0
  48. package/dist/src/core/naming-warnings.d.ts +23 -0
  49. package/dist/src/core/naming-warnings.d.ts.map +1 -0
  50. package/dist/src/core/naming-warnings.js +83 -0
  51. package/dist/src/core/naming-warnings.js.map +1 -0
  52. package/dist/src/core/naming.d.ts +58 -0
  53. package/dist/src/core/naming.d.ts.map +1 -0
  54. package/dist/src/core/naming.js +510 -0
  55. package/dist/src/core/naming.js.map +1 -0
  56. package/dist/src/errors.d.ts +6 -0
  57. package/dist/src/errors.d.ts.map +1 -1
  58. package/dist/src/errors.js +15 -6
  59. package/dist/src/errors.js.map +1 -1
  60. package/dist/src/filtering.d.ts +19 -0
  61. package/dist/src/filtering.d.ts.map +1 -0
  62. package/dist/src/filtering.js +292 -0
  63. package/dist/src/filtering.js.map +1 -0
  64. package/dist/src/generated-schemas.d.ts +290 -79
  65. package/dist/src/generated-schemas.d.ts.map +1 -1
  66. package/dist/src/generated-schemas.js +17 -2
  67. package/dist/src/generated-schemas.js.map +1 -1
  68. package/dist/src/http-transport-config.d.ts +6 -0
  69. package/dist/src/http-transport-config.d.ts.map +1 -0
  70. package/dist/src/http-transport-config.js +47 -0
  71. package/dist/src/http-transport-config.js.map +1 -0
  72. package/dist/src/http-transport.d.ts +63 -13
  73. package/dist/src/http-transport.d.ts.map +1 -1
  74. package/dist/src/http-transport.js +1045 -482
  75. package/dist/src/http-transport.js.map +1 -1
  76. package/dist/src/index.d.ts +1 -6
  77. package/dist/src/index.d.ts.map +1 -1
  78. package/dist/src/index.js +1 -170
  79. package/dist/src/index.js.map +1 -1
  80. package/dist/src/interceptors.d.ts +1 -0
  81. package/dist/src/interceptors.d.ts.map +1 -1
  82. package/dist/src/interceptors.js +73 -63
  83. package/dist/src/interceptors.js.map +1 -1
  84. package/dist/src/lib.d.ts +1 -7
  85. package/dist/src/lib.d.ts.map +1 -1
  86. package/dist/src/lib.js +1 -6
  87. package/dist/src/lib.js.map +1 -1
  88. package/dist/src/logger.d.ts +5 -0
  89. package/dist/src/logger.d.ts.map +1 -1
  90. package/dist/src/logger.js +9 -1
  91. package/dist/src/logger.js.map +1 -1
  92. package/dist/src/mcp/mcp-server-manager.d.ts +20 -0
  93. package/dist/src/mcp/mcp-server-manager.d.ts.map +1 -0
  94. package/dist/src/mcp/mcp-server-manager.js +38 -0
  95. package/dist/src/mcp/mcp-server-manager.js.map +1 -0
  96. package/dist/src/mcp/mcp-server.d.ts +205 -0
  97. package/dist/src/mcp/mcp-server.d.ts.map +1 -0
  98. package/dist/src/mcp/mcp-server.js +1473 -0
  99. package/dist/src/mcp/mcp-server.js.map +1 -0
  100. package/dist/src/mcp-server-manager.d.ts +20 -0
  101. package/dist/src/mcp-server-manager.d.ts.map +1 -0
  102. package/dist/src/mcp-server-manager.js +38 -0
  103. package/dist/src/mcp-server-manager.js.map +1 -0
  104. package/dist/src/mcp-server.d.ts +28 -0
  105. package/dist/src/mcp-server.d.ts.map +1 -1
  106. package/dist/src/mcp-server.js +406 -109
  107. package/dist/src/mcp-server.js.map +1 -1
  108. package/dist/src/metrics.d.ts +11 -0
  109. package/dist/src/metrics.d.ts.map +1 -1
  110. package/dist/src/metrics.js +61 -0
  111. package/dist/src/metrics.js.map +1 -1
  112. package/dist/src/oauth-provider.d.ts +5 -0
  113. package/dist/src/oauth-provider.d.ts.map +1 -1
  114. package/dist/src/oauth-provider.js +29 -1
  115. package/dist/src/oauth-provider.js.map +1 -1
  116. package/dist/src/openapi/openapi-parser.d.ts +70 -0
  117. package/dist/src/openapi/openapi-parser.d.ts.map +1 -0
  118. package/dist/src/openapi/openapi-parser.js +458 -0
  119. package/dist/src/openapi/openapi-parser.js.map +1 -0
  120. package/dist/src/profile/profile-loader.d.ts +78 -0
  121. package/dist/src/profile/profile-loader.d.ts.map +1 -0
  122. package/dist/src/profile/profile-loader.js +490 -0
  123. package/dist/src/profile/profile-loader.js.map +1 -0
  124. package/dist/src/profile/profile-registry.d.ts +19 -0
  125. package/dist/src/profile/profile-registry.d.ts.map +1 -0
  126. package/dist/src/profile/profile-registry.js +43 -0
  127. package/dist/src/profile/profile-registry.js.map +1 -0
  128. package/dist/src/profile/profile-resolver.d.ts +41 -0
  129. package/dist/src/profile/profile-resolver.d.ts.map +1 -0
  130. package/dist/src/profile/profile-resolver.js +324 -0
  131. package/dist/src/profile/profile-resolver.js.map +1 -0
  132. package/dist/src/profile/startup-profile.d.ts +17 -0
  133. package/dist/src/profile/startup-profile.d.ts.map +1 -0
  134. package/dist/src/profile/startup-profile.js +30 -0
  135. package/dist/src/profile/startup-profile.js.map +1 -0
  136. package/dist/src/profile/startup-validation.d.ts +11 -0
  137. package/dist/src/profile/startup-validation.d.ts.map +1 -0
  138. package/dist/src/profile/startup-validation.js +21 -0
  139. package/dist/src/profile/startup-validation.js.map +1 -0
  140. package/dist/src/profile-loader.d.ts +1 -0
  141. package/dist/src/profile-loader.d.ts.map +1 -1
  142. package/dist/src/profile-loader.js +14 -3
  143. package/dist/src/profile-loader.js.map +1 -1
  144. package/dist/src/profile-registry.d.ts +18 -0
  145. package/dist/src/profile-registry.d.ts.map +1 -0
  146. package/dist/src/profile-registry.js +26 -0
  147. package/dist/src/profile-registry.js.map +1 -0
  148. package/dist/src/profile-resolver.d.ts +19 -0
  149. package/dist/src/profile-resolver.d.ts.map +1 -0
  150. package/dist/src/profile-resolver.js +167 -0
  151. package/dist/src/profile-resolver.js.map +1 -0
  152. package/dist/src/proxy-executor.d.ts.map +1 -1
  153. package/dist/src/proxy-executor.js +7 -0
  154. package/dist/src/proxy-executor.js.map +1 -1
  155. package/dist/src/startup-profile.d.ts +17 -0
  156. package/dist/src/startup-profile.d.ts.map +1 -0
  157. package/dist/src/startup-profile.js +30 -0
  158. package/dist/src/startup-profile.js.map +1 -0
  159. package/dist/src/startup-validation.d.ts +11 -0
  160. package/dist/src/startup-validation.d.ts.map +1 -0
  161. package/dist/src/startup-validation.js +21 -0
  162. package/dist/src/startup-validation.js.map +1 -0
  163. package/dist/src/testing/dynamic-mock-server.d.ts +24 -0
  164. package/dist/src/testing/dynamic-mock-server.d.ts.map +1 -0
  165. package/dist/src/testing/dynamic-mock-server.js +138 -0
  166. package/dist/src/testing/dynamic-mock-server.js.map +1 -0
  167. package/dist/src/testing/request-assertions.d.ts +5 -0
  168. package/dist/src/testing/request-assertions.d.ts.map +1 -0
  169. package/dist/src/testing/request-assertions.js +165 -0
  170. package/dist/src/testing/request-assertions.js.map +1 -0
  171. package/dist/src/testing/template-utils.d.ts +10 -0
  172. package/dist/src/testing/template-utils.d.ts.map +1 -0
  173. package/dist/src/testing/template-utils.js +72 -0
  174. package/dist/src/testing/template-utils.js.map +1 -0
  175. package/dist/src/testing/test-http-utils.d.ts +1 -1
  176. package/dist/src/testing/test-http-utils.d.ts.map +1 -1
  177. package/dist/src/testing/test-http-utils.js +1 -1
  178. package/dist/src/testing/test-http-utils.js.map +1 -1
  179. package/dist/src/testing/test-loader.d.ts +6 -0
  180. package/dist/src/testing/test-loader.d.ts.map +1 -0
  181. package/dist/src/testing/test-loader.js +212 -0
  182. package/dist/src/testing/test-loader.js.map +1 -0
  183. package/dist/src/testing/test-schema.d.ts +1270 -0
  184. package/dist/src/testing/test-schema.d.ts.map +1 -0
  185. package/dist/src/testing/test-schema.js +76 -0
  186. package/dist/src/testing/test-schema.js.map +1 -0
  187. package/dist/src/tool-filter/compat.d.ts +49 -0
  188. package/dist/src/tool-filter/compat.d.ts.map +1 -0
  189. package/dist/src/tool-filter/compat.js +72 -0
  190. package/dist/src/tool-filter/compat.js.map +1 -0
  191. package/dist/src/tool-filter/config/env-config-parser.d.ts +38 -0
  192. package/dist/src/tool-filter/config/env-config-parser.d.ts.map +1 -0
  193. package/dist/src/tool-filter/config/env-config-parser.js +103 -0
  194. package/dist/src/tool-filter/config/env-config-parser.js.map +1 -0
  195. package/dist/src/tool-filter/config/header-config-parser.d.ts +37 -0
  196. package/dist/src/tool-filter/config/header-config-parser.d.ts.map +1 -0
  197. package/dist/src/tool-filter/config/header-config-parser.js +118 -0
  198. package/dist/src/tool-filter/config/header-config-parser.js.map +1 -0
  199. package/dist/src/tool-filter/errors.d.ts +18 -0
  200. package/dist/src/tool-filter/errors.d.ts.map +1 -0
  201. package/dist/src/tool-filter/errors.js +21 -0
  202. package/dist/src/tool-filter/errors.js.map +1 -0
  203. package/dist/src/tool-filter/filter/filter-engine.d.ts +45 -0
  204. package/dist/src/tool-filter/filter/filter-engine.d.ts.map +1 -0
  205. package/dist/src/tool-filter/filter/filter-engine.js +94 -0
  206. package/dist/src/tool-filter/filter/filter-engine.js.map +1 -0
  207. package/dist/src/tool-filter/filter/filter-rules.d.ts +44 -0
  208. package/dist/src/tool-filter/filter/filter-rules.d.ts.map +1 -0
  209. package/dist/src/tool-filter/filter/filter-rules.js +72 -0
  210. package/dist/src/tool-filter/filter/filter-rules.js.map +1 -0
  211. package/dist/src/tool-filter/filter/global-tool-filter.d.ts +40 -0
  212. package/dist/src/tool-filter/filter/global-tool-filter.d.ts.map +1 -0
  213. package/dist/src/tool-filter/filter/global-tool-filter.js +92 -0
  214. package/dist/src/tool-filter/filter/global-tool-filter.js.map +1 -0
  215. package/dist/src/tool-filter/filter/session-tool-filter.d.ts +29 -0
  216. package/dist/src/tool-filter/filter/session-tool-filter.d.ts.map +1 -0
  217. package/dist/src/tool-filter/filter/session-tool-filter.js +69 -0
  218. package/dist/src/tool-filter/filter/session-tool-filter.js.map +1 -0
  219. package/dist/src/tool-filter/index.d.ts +25 -0
  220. package/dist/src/tool-filter/index.d.ts.map +1 -0
  221. package/dist/src/tool-filter/index.js +30 -0
  222. package/dist/src/tool-filter/index.js.map +1 -0
  223. package/dist/src/tool-filter/integration/tool-filter-service.d.ts +44 -0
  224. package/dist/src/tool-filter/integration/tool-filter-service.d.ts.map +1 -0
  225. package/dist/src/tool-filter/integration/tool-filter-service.js +68 -0
  226. package/dist/src/tool-filter/integration/tool-filter-service.js.map +1 -0
  227. package/dist/src/tool-filter/operation/operation-classifier.d.ts +20 -0
  228. package/dist/src/tool-filter/operation/operation-classifier.d.ts.map +1 -0
  229. package/dist/src/tool-filter/operation/operation-classifier.js +26 -0
  230. package/dist/src/tool-filter/operation/operation-classifier.js.map +1 -0
  231. package/dist/src/tool-filter/operation/operation-detector.d.ts +30 -0
  232. package/dist/src/tool-filter/operation/operation-detector.d.ts.map +1 -0
  233. package/dist/src/tool-filter/operation/operation-detector.js +96 -0
  234. package/dist/src/tool-filter/operation/operation-detector.js.map +1 -0
  235. package/dist/src/tool-filter/operation/operation-resolver.d.ts +22 -0
  236. package/dist/src/tool-filter/operation/operation-resolver.d.ts.map +1 -0
  237. package/dist/src/tool-filter/operation/operation-resolver.js +32 -0
  238. package/dist/src/tool-filter/operation/operation-resolver.js.map +1 -0
  239. package/dist/src/tool-filter/regex/regex-compiler.d.ts +22 -0
  240. package/dist/src/tool-filter/regex/regex-compiler.d.ts.map +1 -0
  241. package/dist/src/tool-filter/regex/regex-compiler.js +56 -0
  242. package/dist/src/tool-filter/regex/regex-compiler.js.map +1 -0
  243. package/dist/src/tool-filter/regex/regex-validator.d.ts +24 -0
  244. package/dist/src/tool-filter/regex/regex-validator.d.ts.map +1 -0
  245. package/dist/src/tool-filter/regex/regex-validator.js +58 -0
  246. package/dist/src/tool-filter/regex/regex-validator.js.map +1 -0
  247. package/dist/src/tool-filter/types.d.ts +92 -0
  248. package/dist/src/tool-filter/types.d.ts.map +1 -0
  249. package/dist/src/tool-filter/types.js +5 -0
  250. package/dist/src/tool-filter/types.js.map +1 -0
  251. package/dist/src/tool-filter/utils.d.ts +11 -0
  252. package/dist/src/tool-filter/utils.d.ts.map +1 -0
  253. package/dist/src/tool-filter/utils.js +13 -0
  254. package/dist/src/tool-filter/utils.js.map +1 -0
  255. package/dist/src/tool-filter.d.ts +65 -0
  256. package/dist/src/tool-filter.d.ts.map +1 -0
  257. package/dist/src/tool-filter.js +471 -0
  258. package/dist/src/tool-filter.js.map +1 -0
  259. package/dist/src/tool-generator.d.ts +1 -0
  260. package/dist/src/tool-generator.d.ts.map +1 -1
  261. package/dist/src/tool-generator.js +15 -6
  262. package/dist/src/tool-generator.js.map +1 -1
  263. package/dist/src/tooling/composite-executor.d.ts +77 -0
  264. package/dist/src/tooling/composite-executor.d.ts.map +1 -0
  265. package/dist/src/tooling/composite-executor.js +198 -0
  266. package/dist/src/tooling/composite-executor.js.map +1 -0
  267. package/dist/src/tooling/dag-executor.d.ts +49 -0
  268. package/dist/src/tooling/dag-executor.d.ts.map +1 -0
  269. package/dist/src/tooling/dag-executor.js +138 -0
  270. package/dist/src/tooling/dag-executor.js.map +1 -0
  271. package/dist/src/tooling/proxy-executor.d.ts +86 -0
  272. package/dist/src/tooling/proxy-executor.d.ts.map +1 -0
  273. package/dist/src/tooling/proxy-executor.js +501 -0
  274. package/dist/src/tooling/proxy-executor.js.map +1 -0
  275. package/dist/src/tooling/tool-generator.d.ts +67 -0
  276. package/dist/src/tooling/tool-generator.d.ts.map +1 -0
  277. package/dist/src/tooling/tool-generator.js +222 -0
  278. package/dist/src/tooling/tool-generator.js.map +1 -0
  279. package/dist/src/transport/http-client-factory.d.ts +65 -0
  280. package/dist/src/transport/http-client-factory.d.ts.map +1 -0
  281. package/dist/src/transport/http-client-factory.js +143 -0
  282. package/dist/src/transport/http-client-factory.js.map +1 -0
  283. package/dist/src/transport/http-transport-config.d.ts +6 -0
  284. package/dist/src/transport/http-transport-config.d.ts.map +1 -0
  285. package/dist/src/transport/http-transport-config.js +63 -0
  286. package/dist/src/transport/http-transport-config.js.map +1 -0
  287. package/dist/src/transport/http-transport.d.ts +329 -0
  288. package/dist/src/transport/http-transport.d.ts.map +1 -0
  289. package/dist/src/transport/http-transport.js +2584 -0
  290. package/dist/src/transport/http-transport.js.map +1 -0
  291. package/dist/src/transport/interceptors.d.ts +119 -0
  292. package/dist/src/transport/interceptors.d.ts.map +1 -0
  293. package/dist/src/transport/interceptors.js +413 -0
  294. package/dist/src/transport/interceptors.js.map +1 -0
  295. package/dist/src/transport/profile-index.d.ts +84 -0
  296. package/dist/src/transport/profile-index.d.ts.map +1 -0
  297. package/dist/src/transport/profile-index.js +405 -0
  298. package/dist/src/transport/profile-index.js.map +1 -0
  299. package/dist/src/types/http-transport.d.ts +26 -0
  300. package/dist/src/types/http-transport.d.ts.map +1 -1
  301. package/dist/src/types/openapi.d.ts +3 -0
  302. package/dist/src/types/openapi.d.ts.map +1 -1
  303. package/dist/src/types/profile.d.ts +16 -1
  304. package/dist/src/types/profile.d.ts.map +1 -1
  305. package/dist/src/validation/argument-normalizer.d.ts +6 -0
  306. package/dist/src/validation/argument-normalizer.d.ts.map +1 -0
  307. package/dist/src/validation/argument-normalizer.js +70 -0
  308. package/dist/src/validation/argument-normalizer.js.map +1 -0
  309. package/dist/src/validation/jsonrpc-validator.d.ts +27 -0
  310. package/dist/src/validation/jsonrpc-validator.d.ts.map +1 -0
  311. package/dist/src/validation/jsonrpc-validator.js +58 -0
  312. package/dist/src/validation/jsonrpc-validator.js.map +1 -0
  313. package/dist/src/validation/schema-validator.d.ts +30 -0
  314. package/dist/src/validation/schema-validator.d.ts.map +1 -0
  315. package/dist/src/validation/schema-validator.js +128 -0
  316. package/dist/src/validation/schema-validator.js.map +1 -0
  317. package/dist/src/validation/validation-utils.d.ts +49 -0
  318. package/dist/src/validation/validation-utils.d.ts.map +1 -0
  319. package/dist/src/validation/validation-utils.js +139 -0
  320. package/dist/src/validation/validation-utils.js.map +1 -0
  321. package/html/profile-index.html +386 -0
  322. package/package.json +10 -3
  323. package/profile-schema.json +77 -3
  324. package/profiles/gitlab/developer-profile-oauth.json +1520 -0
  325. package/profiles/gitlab/developer-profile-oauth.test.json +3432 -0
  326. package/profiles/gitlab/developer-profile.json +1508 -0
  327. package/profiles/gitlab/developer-profile.test.json +3432 -0
  328. package/profiles/gitlab/openapi.yaml +6891 -0
  329. package/profiles/n8n/openapi.yaml +2441 -0
  330. package/profiles/n8n/profile-optimized.json +965 -0
  331. package/profiles/n8n/profile-optimized.test.json +1078 -0
  332. package/profiles/n8n/profile.json +1033 -0
  333. package/profiles/n8n/profile.test.json +983 -0
  334. package/profiles/n8n-nodes/openapi.yaml +24 -0
  335. package/profiles/n8n-nodes/profile-nodes.json +44 -0
  336. package/profiles/n8n-nodes/profile-nodes.test.json +91 -0
  337. package/profiles/semgrep/openapi.yaml +4706 -0
  338. package/profiles/semgrep/profile.json +692 -0
  339. package/profiles/semgrep/profile.test.json +471 -0
  340. package/profiles/youtrack/openapi.json +16976 -0
  341. package/profiles/youtrack/profile.json +608 -0
  342. package/profiles/youtrack/profile.test.json +1926 -0
  343. package/dist/src/testing/fixtures.d.ts +0 -684
  344. package/dist/src/testing/fixtures.d.ts.map +0 -1
  345. package/dist/src/testing/fixtures.js +0 -528
  346. package/dist/src/testing/fixtures.js.map +0 -1
  347. package/dist/src/testing/mock-gitlab-server.d.ts +0 -43
  348. package/dist/src/testing/mock-gitlab-server.d.ts.map +0 -1
  349. package/dist/src/testing/mock-gitlab-server.js +0 -1026
  350. package/dist/src/testing/mock-gitlab-server.js.map +0 -1
  351. package/dist/src/testing/mock-semgrep-server.d.ts +0 -32
  352. package/dist/src/testing/mock-semgrep-server.d.ts.map +0 -1
  353. package/dist/src/testing/mock-semgrep-server.js +0 -213
  354. package/dist/src/testing/mock-semgrep-server.js.map +0 -1
  355. package/dist/src/testing/mock-youtrack-server.d.ts +0 -11
  356. package/dist/src/testing/mock-youtrack-server.d.ts.map +0 -1
  357. package/dist/src/testing/mock-youtrack-server.js +0 -152
  358. package/dist/src/testing/mock-youtrack-server.js.map +0 -1
@@ -0,0 +1,608 @@
1
+ {
2
+ "$schema": "../../profile-schema.json",
3
+ "profile_name": "youtrack-optimized",
4
+ "profile_id": "youtrack",
5
+ "profile_aliases": ["youtrack-optimized"],
6
+ "openapi_spec_path": "./openapi.json",
7
+ "description": "Minimal tool set grouped by read/write actions.",
8
+
9
+ "parameter_aliases": {
10
+ "id": ["issue_id", "project_id", "article_id", "agile_id", "user_id", "tag_id"],
11
+ "issueCommentId": ["comment_id"],
12
+ "issueAttachmentId": ["attachment_id"],
13
+ "issueWorkItemId": ["workitem_id"],
14
+ "issueLinkId": ["link_id"],
15
+ "projectCustomFieldId": ["project_custom_field_id", "custom_field_id"],
16
+ "sprintId": ["sprint_id"],
17
+ "articleCommentId": ["article_comment_id"],
18
+ "articleAttachmentId": ["article_attachment_id"],
19
+ "tagId": ["tag_id"],
20
+ "$skip": ["skip"],
21
+ "$top": ["top"]
22
+ },
23
+
24
+ "interceptors": {
25
+ "base_url": {
26
+ "value_from_env": "YOUTRACK_API_BASE_URL"
27
+ },
28
+ "auth": {
29
+ "type": "bearer",
30
+ "value_from_env": "YOUTRACK_TOKEN"
31
+ }
32
+ },
33
+
34
+ "tools": [
35
+ {
36
+ "name": "retrieve_content",
37
+ "description": "Read-only access to YouTrack entities (issues, projects, users, tags, articles, agiles, sprints, etc.). Actions: 'list_issues', 'list_issues_detailed', 'get_issue', 'list_issue_comments', 'get_issue_comment', 'list_issue_attachments', 'get_issue_attachment', 'download_issue_attachment', 'list_issue_tags', 'list_issue_links', 'get_issue_link', 'list_linked_issues', 'list_projects', 'get_project', 'list_project_custom_fields', 'get_project_custom_field', 'list_workitems', 'list_articles', 'get_article', 'list_article_comments', 'list_article_attachments', 'get_article_attachment', 'download_article_attachment', 'list_tags', 'get_tag', 'list_saved_queries', 'list_agiles', 'get_agile', 'list_sprints', 'list_users', 'get_user', 'list_groups'.",
38
+ "metadata_params": ["action", "id", "projectCustomFieldId", "issueCommentId", "issueAttachmentId", "agile_id", "sprintId", "articleCommentId", "articleAttachmentId", "tagId", "fields"],
39
+ "send_response_fields_as_param": true,
40
+ "operations": {
41
+ "list_issues": "get_/issues",
42
+ "list_issues_detailed": "get_/issues",
43
+ "get_issue": "get_/issues/{id}",
44
+ "list_issue_comments": "get_/issues/{id}/comments",
45
+ "get_issue_comment": "get_/issues/{id}/comments/{issueCommentId}",
46
+ "list_issue_attachments": "get_/issues/{id}/attachments",
47
+ "get_issue_attachment": "get_/issues/{id}/attachments/{issueAttachmentId}",
48
+ "download_issue_attachment": {
49
+ "type": "proxy_download",
50
+ "metadata_endpoint": "get_/issues/{id}/attachments/{issueAttachmentId}",
51
+ "url_field": "url",
52
+ "skip_auth": true
53
+ },
54
+ "list_issue_tags": "get_/issues/{id}/tags",
55
+ "list_issue_links": "get_/issues/{id}/links",
56
+ "get_issue_link": "get_/issues/{id}/links/{issueLinkId}",
57
+ "list_linked_issues": "get_/issues/{id}/links/{issueLinkId}/issues",
58
+ "list_projects": "get_/admin/projects",
59
+ "get_project": "get_/admin/projects/{id}",
60
+ "list_project_custom_fields": "get_/admin/projects/{id}/customFields",
61
+ "get_project_custom_field": "get_/admin/projects/{id}/customFields/{projectCustomFieldId}",
62
+ "list_workitems": "get_/workItems",
63
+ "list_articles": "get_/articles",
64
+ "get_article": "get_/articles/{id}",
65
+ "list_article_comments": "get_/articles/{id}/comments",
66
+ "list_article_attachments": "get_/articles/{id}/attachments",
67
+ "get_article_attachment": "get_/articles/{id}/attachments/{articleAttachmentId}",
68
+ "download_article_attachment": {
69
+ "type": "proxy_download",
70
+ "metadata_endpoint": "get_/articles/{id}/attachments/{articleAttachmentId}",
71
+ "url_field": "url",
72
+ "skip_auth": true
73
+ },
74
+ "list_tags": "get_/tags",
75
+ "get_tag": "get_/tags/{id}",
76
+ "list_saved_queries": "get_/savedQueries",
77
+ "list_agiles": "get_/agiles",
78
+ "get_agile": "get_/agiles/{id}",
79
+ "list_sprints": "get_/agiles/{id}/sprints",
80
+ "list_users": "get_/users",
81
+ "get_user": "get_/users/{id}",
82
+ "list_groups": "get_/groups"
83
+ },
84
+ "response_fields": {
85
+ "list_issues": ["id", "idReadable", "summary", "resolved"],
86
+ "list_issues_detailed": ["id", "idReadable", "summary", "description", "resolved", "customFields(id,name,value(id,name))", "created", "updated", "reporter(id,login)"],
87
+ "get_issue": ["id", "idReadable", "summary", "description", "resolved", "customFields(id,name,value(id,name))", "comments(id,text,author(id,login),created,attachments(id,name,url))", "attachments(id,name,mimeType,size,url)"],
88
+ "list_issue_comments": ["id", "text", "author(login)", "created", "attachments(id,name,url)"],
89
+ "get_issue_comment": ["id", "text", "author(id,login)", "created", "updated", "attachments(id,name,mimeType,size,url)"],
90
+ "list_issue_attachments": ["id", "name", "mimeType", "size"],
91
+ "get_issue_attachment": ["id", "name", "mimeType", "size", "url", "base64Content"],
92
+ "list_projects": ["id", "shortName", "name", "description"],
93
+ "get_project": ["id", "shortName", "name", "description", "customFields(id,$type,field(id,name,fieldType(id,$type)),canBeEmpty,emptyFieldText,ordinal,isPublic)"],
94
+ "list_project_custom_fields": ["id", "$type", "field(id,name,fieldType(id,$type))", "bundle($type,id)", "defaultValues($type,id,name)", "canBeEmpty", "emptyFieldText", "ordinal", "isPublic"],
95
+ "get_project_custom_field": ["id", "$type", "field(id,name,fieldType(id,$type))", "bundle($type,id)", "defaultValues($type,id,name)", "canBeEmpty", "emptyFieldText", "ordinal", "isPublic"],
96
+ "list_articles": ["id", "title", "summary", "resolved"],
97
+ "get_article": ["id", "title", "summary", "content", "attachments(id,name,mimeType,size,url)", "comments(id,text,author(id,login),created,attachments(id,name,url))"],
98
+ "list_article_comments": ["id", "text", "author(login)", "created", "attachments(id,name,url)"],
99
+ "list_article_attachments": ["id", "name", "mimeType", "size"],
100
+ "get_article_attachment": ["id", "name", "mimeType", "size", "url", "base64Content"],
101
+ "list_issue_tags": ["id", "name", "owner"],
102
+ "list_issue_links": ["id", "direction", "linkType"],
103
+ "get_issue_link": ["id", "direction", "linkType"],
104
+ "list_linked_issues": ["id", "idReadable", "summary"],
105
+ "list_workitems": ["id", "duration", "date", "author", "text"],
106
+ "list_saved_queries": ["id", "name", "query", "owner"],
107
+ "list_tags": ["id", "name", "color"],
108
+ "get_tag": ["id", "name", "color", "usages"],
109
+ "list_agiles": ["id", "name", "status"],
110
+ "get_agile": ["id", "name", "status", "sprints"],
111
+ "list_sprints": ["id", "name", "goal", "state"],
112
+ "list_users": ["id", "login", "fullName", "email"],
113
+ "get_user": ["id", "login", "fullName", "email", "isReporter"],
114
+ "list_groups": ["id", "name", "allUsersGroup"]
115
+ },
116
+ "parameters": {
117
+ "action": {
118
+ "type": "string",
119
+ "enum": ["list_issues", "list_issues_detailed", "get_issue", "list_issue_comments", "get_issue_comment", "list_issue_attachments", "get_issue_attachment", "download_issue_attachment", "list_issue_tags", "list_issue_links", "get_issue_link", "list_linked_issues", "list_projects", "get_project", "list_project_custom_fields", "get_project_custom_field", "list_workitems", "list_articles", "get_article", "list_article_comments", "list_article_attachments", "get_article_attachment", "download_article_attachment", "list_tags", "get_tag", "list_saved_queries", "list_agiles", "get_agile", "list_sprints", "list_users", "get_user", "list_groups"],
120
+ "description": "Action to perform",
121
+ "required": true
122
+ },
123
+ "id": {
124
+ "type": "string",
125
+ "description": "Entity ID (issue ID like 'PROJ-123', project shortName, article ID, agile ID, user login, tag ID, etc.)",
126
+ "required_for": ["get_issue", "list_issue_comments", "get_issue_comment", "list_issue_attachments", "get_issue_attachment", "download_issue_attachment", "list_issue_tags", "list_issue_links", "get_issue_link", "list_linked_issues", "get_project", "list_project_custom_fields", "get_project_custom_field", "get_article", "list_article_comments", "list_article_attachments", "get_article_attachment", "download_article_attachment", "get_tag", "get_agile", "list_sprints", "get_user"]
127
+ },
128
+ "projectCustomFieldId": {
129
+ "type": "string",
130
+ "description": "Custom field ID within a project",
131
+ "required_for": ["get_project_custom_field"]
132
+ },
133
+ "issueCommentId": {
134
+ "type": "string",
135
+ "description": "Comment ID within an issue",
136
+ "required_for": ["get_issue_comment"]
137
+ },
138
+ "issueAttachmentId": {
139
+ "type": "string",
140
+ "description": "Attachment ID within an issue",
141
+ "required_for": ["get_issue_attachment", "download_issue_attachment"]
142
+ },
143
+ "issueLinkId": {
144
+ "type": "string",
145
+ "description": "Link ID within an issue",
146
+ "required_for": ["get_issue_link", "list_linked_issues"]
147
+ },
148
+ "agile_id": {
149
+ "type": "string",
150
+ "description": "Agile board ID",
151
+ "required_for": ["list_sprints"]
152
+ },
153
+ "sprintId": {
154
+ "type": "string",
155
+ "description": "Sprint ID",
156
+ "required_for": []
157
+ },
158
+ "articleCommentId": {
159
+ "type": "string",
160
+ "description": "Comment ID within an article",
161
+ "required_for": []
162
+ },
163
+ "articleAttachmentId": {
164
+ "type": "string",
165
+ "description": "Attachment ID within an article",
166
+ "required_for": ["get_article_attachment", "download_article_attachment"]
167
+ },
168
+ "fields": {
169
+ "type": "string",
170
+ "description": "YouTrack fields query (e.g., 'id,summary,description,customFields'). Specify exact fields to return for better performance. For project-specific fields (e.g., 'state', 'State', 'assignee', 'Assignees'), use the exact field name as configured in project."
171
+ },
172
+ "query": {
173
+ "type": "string",
174
+ "description": "YouTrack search query (e.g., 'project: PROJ state: Open', 'text ~ bug'). For details, see YouTrack documentation on search and command attributes."
175
+ },
176
+ "skip": {
177
+ "type": "integer",
178
+ "description": "Number of items to skip (pagination)"
179
+ },
180
+ "top": {
181
+ "type": "integer",
182
+ "description": "Maximum items to return (pagination, max 100)"
183
+ }
184
+ }
185
+ },
186
+
187
+ {
188
+ "name": "retrieve_history",
189
+ "description": "Read-only access to activity logs and audit trails. Actions: 'list_activities', 'get_activity', 'list_activities_page', 'list_issue_activities'. Separated from content retrieval for granular permission control.",
190
+ "metadata_params": ["action", "id"],
191
+ "operations": {
192
+ "list_activities": "get_/activities",
193
+ "get_activity": "get_/activities/{id}",
194
+ "list_activities_page": "get_/activitiesPage",
195
+ "list_issue_activities": "get_/issues/{id}/activities"
196
+ },
197
+ "response_fields": {
198
+ "list_activities": ["id", "timestamp", "author", "category", "target"],
199
+ "get_activity": ["id", "timestamp", "author", "category", "field", "target", "added", "removed"],
200
+ "list_activities_page": ["id", "timestamp", "author", "category"],
201
+ "list_issue_activities": ["id", "timestamp", "author", "category", "field", "added", "removed"]
202
+ },
203
+ "parameters": {
204
+ "action": {
205
+ "type": "string",
206
+ "enum": ["list_activities", "get_activity", "list_activities_page", "list_issue_activities"],
207
+ "description": "Action to perform",
208
+ "required": true
209
+ },
210
+ "id": {
211
+ "type": "string",
212
+ "description": "Activity or issue ID",
213
+ "required_for": ["get_activity", "list_issue_activities"]
214
+ },
215
+ "categories": {
216
+ "type": "string",
217
+ "description": "Filter by activity categories (comma-separated)"
218
+ },
219
+ "reverse": {
220
+ "type": "boolean",
221
+ "description": "Sort newest to oldest (default: false for oldest first)"
222
+ },
223
+ "start": {
224
+ "type": "string",
225
+ "description": "Start timestamp in milliseconds (unix timestamp UTC)"
226
+ },
227
+ "end": {
228
+ "type": "string",
229
+ "description": "End timestamp in milliseconds (unix timestamp UTC)"
230
+ },
231
+ "author": {
232
+ "type": "string",
233
+ "description": "Filter by author (database ID, login, Hub ID, or 'me')"
234
+ },
235
+ "issueQuery": {
236
+ "type": "string",
237
+ "description": "Issue search query to filter activities"
238
+ },
239
+ "fields": {
240
+ "type": "string",
241
+ "description": "YouTrack fields query"
242
+ },
243
+ "skip": {
244
+ "type": "integer",
245
+ "description": "Number of items to skip (pagination)"
246
+ },
247
+ "top": {
248
+ "type": "integer",
249
+ "description": "Maximum items to return (pagination)"
250
+ }
251
+ }
252
+ },
253
+
254
+ {
255
+ "name": "create_content",
256
+ "description": "Create new entities in YouTrack. Actions: 'create_issue', 'create_issue_comment', 'create_article_comment', 'log_time', 'add_issue_tag', 'add_article_tag', 'create_tag', 'add_issue_link', 'upload_issue_attachment', 'upload_article_attachment'. Use for creating issues, adding comments, logging time, tagging, and uploading files.",
257
+ "metadata_params": ["action", "id", "issueCommentId", "issueAttachmentId", "articleCommentId", "articleAttachmentId"],
258
+ "operations": {
259
+ "create_issue": "post_/issues",
260
+ "create_issue_comment": "post_/issues/{id}/comments",
261
+ "create_article_comment": "post_/articles/{id}/comments",
262
+ "log_time": "post_/issues/{id}/timeTracking/workItems",
263
+ "add_issue_tag": "post_/issues/{id}/tags",
264
+ "add_article_tag": "post_/articles/{id}/tags",
265
+ "create_tag": "post_/tags",
266
+ "add_issue_link": "post_/issues/{id}/links/{issueLinkId}/issues",
267
+ "upload_issue_attachment": "post_/issues/{id}/attachments",
268
+ "upload_article_attachment": "post_/articles/{id}/attachments"
269
+ },
270
+ "response_fields": {
271
+ "create_issue": ["id", "idReadable", "summary"],
272
+ "create_issue_comment": ["id", "text", "author", "created"],
273
+ "create_article_comment": ["id", "text", "author", "created"],
274
+ "log_time": ["id", "duration"],
275
+ "add_issue_tag": ["id", "name"],
276
+ "add_article_tag": ["id", "name"],
277
+ "create_tag": ["id", "name", "color"],
278
+ "add_issue_link": ["id"],
279
+ "upload_issue_attachment": ["id", "name"],
280
+ "upload_article_attachment": ["id", "name"]
281
+ },
282
+ "parameters": {
283
+ "action": {
284
+ "type": "string",
285
+ "enum": ["create_issue", "create_issue_comment", "create_article_comment", "log_time", "add_issue_tag", "add_article_tag", "create_tag", "add_issue_link", "upload_issue_attachment", "upload_article_attachment"],
286
+ "description": "Action to perform",
287
+ "required": true
288
+ },
289
+ "id": {
290
+ "type": "string",
291
+ "description": "Issue or article ID",
292
+ "required_for": ["create_issue_comment", "create_article_comment", "log_time", "add_issue_tag", "add_article_tag", "add_issue_link", "upload_issue_attachment", "upload_article_attachment"]
293
+ },
294
+ "issueLinkId": {
295
+ "type": "string",
296
+ "description": "Link type ID (for add_issue_link)",
297
+ "required_for": ["add_issue_link"]
298
+ },
299
+ "summary": {
300
+ "type": "string",
301
+ "description": "Issue summary/title (for create_issue)",
302
+ "required_for": ["create_issue"]
303
+ },
304
+ "description": {
305
+ "type": "string",
306
+ "description": "Issue description (for create_issue)"
307
+ },
308
+ "project": {
309
+ "type": "object",
310
+ "description": "Project reference object with 'id' or 'shortName' (for create_issue). Example: {\"shortName\": \"PROJ\"}",
311
+ "required_for": ["create_issue"],
312
+ "properties": {}
313
+ },
314
+ "text": {
315
+ "type": "string",
316
+ "description": "Comment text",
317
+ "required_for": ["create_issue_comment", "create_article_comment"]
318
+ },
319
+ "duration": {
320
+ "type": "object",
321
+ "description": "Duration object (minutes or presentation) for work item",
322
+ "required_for": ["log_time"],
323
+ "properties": {}
324
+ },
325
+ "date": {
326
+ "type": "integer",
327
+ "description": "Work item date as unix timestamp in milliseconds",
328
+ "required_for": ["log_time"]
329
+ },
330
+ "tag": {
331
+ "type": "object",
332
+ "description": "Tag reference object with 'id'. Example: {\"id\": \"tag-123\"}",
333
+ "required_for": ["add_issue_tag", "add_article_tag"],
334
+ "properties": {}
335
+ },
336
+ "name": {
337
+ "type": "string",
338
+ "description": "Tag name (for create_tag)",
339
+ "required_for": ["create_tag"]
340
+ },
341
+ "color": {
342
+ "type": "string",
343
+ "description": "Tag color in hex format (e.g., '#FF0000')",
344
+ "required_for": []
345
+ },
346
+ "issues": {
347
+ "type": "array",
348
+ "description": "Array of issue IDs to link (for add_issue_link)",
349
+ "required_for": ["add_issue_link"],
350
+ "items": {
351
+ "type": "string"
352
+ }
353
+ },
354
+ "fileName": {
355
+ "type": "string",
356
+ "description": "Attachment filename (for upload_issue_attachment, upload_article_attachment)",
357
+ "required_for": ["upload_issue_attachment", "upload_article_attachment"]
358
+ },
359
+ "base64Content": {
360
+ "type": "string",
361
+ "description": "Base64-encoded file content (for upload_issue_attachment, upload_article_attachment)",
362
+ "required_for": ["upload_issue_attachment", "upload_article_attachment"]
363
+ },
364
+ "mimeType": {
365
+ "type": "string",
366
+ "description": "MIME type of the file",
367
+ "required_for": []
368
+ },
369
+ "customFields": {
370
+ "type": ["object", "array"],
371
+ "description": "Custom fields array or object (for create_issue). Example: [{\"name\": \"Priority\", \"value\": {\"name\": \"High\"}}]",
372
+ "properties": {},
373
+ "items": {
374
+ "type": "object"
375
+ },
376
+ "object_entries_to_array": {
377
+ "key_field": "name",
378
+ "value_field": "value",
379
+ "wrap_value_field": "name"
380
+ }
381
+ }
382
+ }
383
+ },
384
+
385
+ {
386
+ "name": "update_content",
387
+ "description": "Modify existing entities in YouTrack. Actions: 'update_issue', 'update_issue_comment', 'update_article_comment', 'update_work_item', 'update_issue_attachment', 'update_tag'. Use for editing issues, comments, time tracking entries, and tags.",
388
+ "metadata_params": ["action", "id", "issueCommentId", "issueAttachmentId", "issueWorkItemId", "articleCommentId"],
389
+ "operations": {
390
+ "update_issue": "post_/issues/{id}",
391
+ "update_issue_comment": "post_/issues/{id}/comments/{issueCommentId}",
392
+ "update_article_comment": "post_/articles/{id}/comments/{articleCommentId}",
393
+ "update_work_item": "post_/issues/{id}/timeTracking/workItems/{issueWorkItemId}",
394
+ "update_issue_attachment": "post_/issues/{id}/attachments/{issueAttachmentId}",
395
+ "update_tag": "post_/tags/{id}"
396
+ },
397
+ "response_fields": {
398
+ "update_issue": ["id", "idReadable", "summary", "updated"],
399
+ "update_issue_comment": ["id", "text", "updated"],
400
+ "update_article_comment": ["id", "text", "updated"],
401
+ "update_work_item": ["id", "duration", "updated"],
402
+ "update_issue_attachment": ["id", "name", "updated"],
403
+ "update_tag": ["id", "name", "updated"]
404
+ },
405
+ "parameters": {
406
+ "action": {
407
+ "type": "string",
408
+ "enum": ["update_issue", "update_issue_comment", "update_article_comment", "update_work_item", "update_issue_attachment", "update_tag"],
409
+ "description": "Action to perform",
410
+ "required": true
411
+ },
412
+ "id": {
413
+ "type": "string",
414
+ "description": "Entity ID to update (issue, article, or tag ID)",
415
+ "required_for": ["update_issue", "update_issue_comment", "update_article_comment", "update_work_item", "update_issue_attachment", "update_tag"]
416
+ },
417
+ "issueCommentId": {
418
+ "type": "string",
419
+ "description": "Comment ID to update",
420
+ "required_for": ["update_issue_comment"]
421
+ },
422
+ "articleCommentId": {
423
+ "type": "string",
424
+ "description": "Article comment ID to update",
425
+ "required_for": ["update_article_comment"]
426
+ },
427
+ "issueAttachmentId": {
428
+ "type": "string",
429
+ "description": "Attachment ID to update",
430
+ "required_for": ["update_issue_attachment"]
431
+ },
432
+ "issueWorkItemId": {
433
+ "type": "string",
434
+ "description": "Work item ID to update",
435
+ "required_for": ["update_work_item"]
436
+ },
437
+ "summary": {
438
+ "type": "string",
439
+ "description": "Issue summary (for update_issue)"
440
+ },
441
+ "description": {
442
+ "type": "string",
443
+ "description": "Issue description (for update_issue)"
444
+ },
445
+ "text": {
446
+ "type": "string",
447
+ "description": "Comment text",
448
+ "required_for": ["update_issue_comment", "update_article_comment"]
449
+ },
450
+ "duration": {
451
+ "type": "object",
452
+ "description": "Duration object for update_work_item",
453
+ "required_for": ["update_work_item"],
454
+ "properties": {}
455
+ },
456
+ "date": {
457
+ "type": "integer",
458
+ "description": "Work item date as unix timestamp in milliseconds (for update_work_item)"
459
+ },
460
+ "name": {
461
+ "type": "string",
462
+ "description": "Tag name or attachment name",
463
+ "required_for": ["update_tag", "update_issue_attachment"]
464
+ },
465
+ "color": {
466
+ "type": "string",
467
+ "description": "Tag color in hex format (for update_tag)"
468
+ },
469
+ "customFields": {
470
+ "type": ["object", "array"],
471
+ "description": "Custom fields to update (for update_issue)",
472
+ "properties": {},
473
+ "items": {
474
+ "type": "object"
475
+ },
476
+ "object_entries_to_array": {
477
+ "key_field": "name",
478
+ "value_field": "value",
479
+ "wrap_value_field": "name"
480
+ }
481
+ }
482
+ }
483
+ },
484
+
485
+ {
486
+ "name": "delete_content",
487
+ "description": "Remove entities from YouTrack. Actions: 'delete_issue', 'delete_issue_comment', 'delete_article_comment', 'delete_work_item', 'delete_issue_attachment', 'delete_article_attachment', 'remove_issue_tag', 'remove_article_tag', 'delete_tag', 'remove_issue_link'. Use with caution as deletions may be irreversible.",
488
+ "metadata_params": ["action", "id", "issueCommentId", "issueAttachmentId", "issueWorkItemId", "issueLinkId", "articleCommentId", "articleAttachmentId", "tagId"],
489
+ "operations": {
490
+ "delete_issue": "delete_/issues/{id}",
491
+ "delete_issue_comment": "delete_/issues/{id}/comments/{issueCommentId}",
492
+ "delete_article_comment": "delete_/articles/{id}/comments/{articleCommentId}",
493
+ "delete_work_item": "delete_/issues/{id}/timeTracking/workItems/{issueWorkItemId}",
494
+ "delete_issue_attachment": "delete_/issues/{id}/attachments/{issueAttachmentId}",
495
+ "delete_article_attachment": "delete_/articles/{id}/attachments/{articleAttachmentId}",
496
+ "remove_issue_tag": "delete_/issues/{id}/tags/{tagId}",
497
+ "remove_article_tag": "delete_/articles/{id}/tags/{tagId}",
498
+ "delete_tag": "delete_/tags/{id}",
499
+ "remove_issue_link": "delete_/issues/{id}/links/{issueLinkId}/issues/{issueId}"
500
+ },
501
+ "response_fields": {},
502
+ "parameters": {
503
+ "action": {
504
+ "type": "string",
505
+ "enum": ["delete_issue", "delete_issue_comment", "delete_article_comment", "delete_work_item", "delete_issue_attachment", "delete_article_attachment", "remove_issue_tag", "remove_article_tag", "delete_tag", "remove_issue_link"],
506
+ "description": "Action to perform",
507
+ "required": true
508
+ },
509
+ "id": {
510
+ "type": "string",
511
+ "description": "Primary entity ID (issue, article, or tag)",
512
+ "required_for": ["delete_issue", "delete_issue_comment", "delete_article_comment", "delete_work_item", "delete_issue_attachment", "delete_article_attachment", "remove_issue_tag", "remove_article_tag", "delete_tag", "remove_issue_link"]
513
+ },
514
+ "issueCommentId": {
515
+ "type": "string",
516
+ "description": "Comment ID to delete",
517
+ "required_for": ["delete_issue_comment"]
518
+ },
519
+ "articleCommentId": {
520
+ "type": "string",
521
+ "description": "Article comment ID to delete",
522
+ "required_for": ["delete_article_comment"]
523
+ },
524
+ "issueAttachmentId": {
525
+ "type": "string",
526
+ "description": "Attachment ID to delete",
527
+ "required_for": ["delete_issue_attachment"]
528
+ },
529
+ "articleAttachmentId": {
530
+ "type": "string",
531
+ "description": "Article attachment ID to delete",
532
+ "required_for": ["delete_article_attachment"]
533
+ },
534
+ "issueWorkItemId": {
535
+ "type": "string",
536
+ "description": "Work item ID to delete",
537
+ "required_for": ["delete_work_item"]
538
+ },
539
+ "tagId": {
540
+ "type": "string",
541
+ "description": "Tag ID to remove/delete",
542
+ "required_for": ["remove_issue_tag", "remove_article_tag", "delete_tag"]
543
+ },
544
+ "issueLinkId": {
545
+ "type": "string",
546
+ "description": "Link type ID",
547
+ "required_for": ["remove_issue_link"]
548
+ },
549
+ "issueId": {
550
+ "type": "string",
551
+ "description": "Issue ID to unlink (for remove_issue_link)",
552
+ "required_for": ["remove_issue_link"]
553
+ }
554
+ }
555
+ },
556
+
557
+ {
558
+ "name": "run_commands",
559
+ "description": "Execute YouTrack command language for bulk/batch operations on issues. Actions: 'execute_command', 'assist_command'. Commands allow modifying multiple issues at once using YouTrack's powerful command syntax. Use with caution for bulk updates.",
560
+ "metadata_params": ["action"],
561
+ "operations": {
562
+ "execute_command": "post_/commands",
563
+ "assist_command": "post_/commands/assist"
564
+ },
565
+ "response_fields": {
566
+ "execute_command": ["id", "error"],
567
+ "assist_command": ["commands", "error"]
568
+ },
569
+ "parameters": {
570
+ "action": {
571
+ "type": "string",
572
+ "enum": ["execute_command", "assist_command"],
573
+ "description": "Action to perform",
574
+ "required": true
575
+ },
576
+ "query": {
577
+ "type": "string",
578
+ "description": "Issue query to select issues (e.g., 'project: PROJ state: Open'). Required for execute_command.",
579
+ "required_for": ["execute_command"]
580
+ },
581
+ "command": {
582
+ "type": "string",
583
+ "description": "YouTrack command to execute (e.g., 'state: Open', 'priority: Critical'). For details on command syntax, see YouTrack documentation.",
584
+ "required_for": ["execute_command"]
585
+ },
586
+ "issues": {
587
+ "type": "array",
588
+ "description": "Issue IDs to apply the command to (for execute_command).",
589
+ "items": {
590
+ "type": "string"
591
+ },
592
+ "array_item_to_object": {
593
+ "key_field": "id"
594
+ }
595
+ },
596
+ "text": {
597
+ "type": "string",
598
+ "description": "Text to analyze for command suggestions (for assist_command)",
599
+ "required_for": ["assist_command"]
600
+ },
601
+ "fields": {
602
+ "type": "string",
603
+ "description": "YouTrack fields query for response"
604
+ }
605
+ }
606
+ }
607
+ ]
608
+ }