@codeqr/ts-mcp 0.2.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 (432) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +267 -0
  3. package/code-tool-paths.cjs +6 -0
  4. package/code-tool-paths.cjs.map +1 -0
  5. package/code-tool-paths.d.cts +2 -0
  6. package/code-tool-paths.d.cts.map +1 -0
  7. package/code-tool-types.d.mts +14 -0
  8. package/code-tool-types.d.mts.map +1 -0
  9. package/code-tool-types.d.ts +14 -0
  10. package/code-tool-types.d.ts.map +1 -0
  11. package/code-tool-types.js +4 -0
  12. package/code-tool-types.js.map +1 -0
  13. package/code-tool-types.mjs +3 -0
  14. package/code-tool-types.mjs.map +1 -0
  15. package/code-tool-worker.d.mts +5 -0
  16. package/code-tool-worker.d.mts.map +1 -0
  17. package/code-tool-worker.d.ts +5 -0
  18. package/code-tool-worker.d.ts.map +1 -0
  19. package/code-tool-worker.js +45 -0
  20. package/code-tool-worker.js.map +1 -0
  21. package/code-tool-worker.mjs +40 -0
  22. package/code-tool-worker.mjs.map +1 -0
  23. package/code-tool.d.mts +12 -0
  24. package/code-tool.d.mts.map +1 -0
  25. package/code-tool.d.ts +12 -0
  26. package/code-tool.d.ts.map +1 -0
  27. package/code-tool.js +157 -0
  28. package/code-tool.js.map +1 -0
  29. package/code-tool.mjs +121 -0
  30. package/code-tool.mjs.map +1 -0
  31. package/compat.d.mts +58 -0
  32. package/compat.d.mts.map +1 -0
  33. package/compat.d.ts +58 -0
  34. package/compat.d.ts.map +1 -0
  35. package/compat.js +387 -0
  36. package/compat.js.map +1 -0
  37. package/compat.mjs +378 -0
  38. package/compat.mjs.map +1 -0
  39. package/dynamic-tools.d.mts +12 -0
  40. package/dynamic-tools.d.mts.map +1 -0
  41. package/dynamic-tools.d.ts +12 -0
  42. package/dynamic-tools.d.ts.map +1 -0
  43. package/dynamic-tools.js +135 -0
  44. package/dynamic-tools.js.map +1 -0
  45. package/dynamic-tools.mjs +132 -0
  46. package/dynamic-tools.mjs.map +1 -0
  47. package/filtering.d.mts +2 -0
  48. package/filtering.d.mts.map +1 -0
  49. package/filtering.d.ts +2 -0
  50. package/filtering.d.ts.map +1 -0
  51. package/filtering.js +20 -0
  52. package/filtering.js.map +1 -0
  53. package/filtering.mjs +13 -0
  54. package/filtering.mjs.map +1 -0
  55. package/headers.d.mts +4 -0
  56. package/headers.d.mts.map +1 -0
  57. package/headers.d.ts +4 -0
  58. package/headers.d.ts.map +1 -0
  59. package/headers.js +22 -0
  60. package/headers.js.map +1 -0
  61. package/headers.mjs +18 -0
  62. package/headers.mjs.map +1 -0
  63. package/http.d.mts +9 -0
  64. package/http.d.mts.map +1 -0
  65. package/http.d.ts +9 -0
  66. package/http.d.ts.map +1 -0
  67. package/http.js +108 -0
  68. package/http.js.map +1 -0
  69. package/http.mjs +100 -0
  70. package/http.mjs.map +1 -0
  71. package/index.d.mts +3 -0
  72. package/index.d.mts.map +1 -0
  73. package/index.d.ts +3 -0
  74. package/index.d.ts.map +1 -0
  75. package/index.js +91 -0
  76. package/index.js.map +1 -0
  77. package/index.mjs +89 -0
  78. package/index.mjs.map +1 -0
  79. package/options.d.mts +19 -0
  80. package/options.d.mts.map +1 -0
  81. package/options.d.ts +19 -0
  82. package/options.d.ts.map +1 -0
  83. package/options.js +417 -0
  84. package/options.js.map +1 -0
  85. package/options.mjs +410 -0
  86. package/options.mjs.map +1 -0
  87. package/package.json +206 -0
  88. package/server.d.mts +35 -0
  89. package/server.d.mts.map +1 -0
  90. package/server.d.ts +35 -0
  91. package/server.d.ts.map +1 -0
  92. package/server.js +170 -0
  93. package/server.js.map +1 -0
  94. package/server.mjs +156 -0
  95. package/server.mjs.map +1 -0
  96. package/src/code-tool-paths.cts +3 -0
  97. package/src/code-tool-types.ts +14 -0
  98. package/src/code-tool-worker.ts +46 -0
  99. package/src/code-tool.ts +146 -0
  100. package/src/compat.ts +483 -0
  101. package/src/dynamic-tools.ts +153 -0
  102. package/src/filtering.ts +14 -0
  103. package/src/headers.ts +23 -0
  104. package/src/http.ts +127 -0
  105. package/src/index.ts +108 -0
  106. package/src/options.ts +456 -0
  107. package/src/server.ts +204 -0
  108. package/src/stdio.ts +13 -0
  109. package/src/tools/analytics/retrieve-analytics.ts +434 -0
  110. package/src/tools/domains/create-domains.ts +59 -0
  111. package/src/tools/domains/delete-domains.ts +48 -0
  112. package/src/tools/domains/list-domains.ts +61 -0
  113. package/src/tools/domains/update-domains.ts +63 -0
  114. package/src/tools/events/list-events.ts +414 -0
  115. package/src/tools/index.ts +133 -0
  116. package/src/tools/links/bulk/create-links-bulk.ts +955 -0
  117. package/src/tools/links/bulk/delete-links-bulk.ts +52 -0
  118. package/src/tools/links/count-links.ts +946 -0
  119. package/src/tools/links/create-links.ts +946 -0
  120. package/src/tools/links/delete-links.ts +49 -0
  121. package/src/tools/links/list-links.ts +969 -0
  122. package/src/tools/links/retrieve-info-links.ts +68 -0
  123. package/src/tools/links/update-links.ts +953 -0
  124. package/src/tools/links/upsert-links.ts +947 -0
  125. package/src/tools/projects/list-projects.ts +44 -0
  126. package/src/tools/projects/retrieve-projects.ts +49 -0
  127. package/src/tools/qrcodes/bulk/create-qrcodes-bulk.ts +1066 -0
  128. package/src/tools/qrcodes/bulk/delete-qrcodes-bulk.ts +52 -0
  129. package/src/tools/qrcodes/count-qrcodes.ts +209 -0
  130. package/src/tools/qrcodes/create-qrcodes.ts +1056 -0
  131. package/src/tools/qrcodes/delete-qrcodes.ts +49 -0
  132. package/src/tools/qrcodes/list-qrcodes.ts +210 -0
  133. package/src/tools/qrcodes/retrieve-qrcodes.ts +60 -0
  134. package/src/tools/qrcodes/update-qrcodes.ts +1063 -0
  135. package/src/tools/qrcodes/upsert-qrcodes.ts +1057 -0
  136. package/src/tools/tags/create-tags.ts +52 -0
  137. package/src/tools/tags/delete-tags.ts +48 -0
  138. package/src/tools/tags/list-tags.ts +80 -0
  139. package/src/tools/tags/update-tags.ts +56 -0
  140. package/src/tools/track/track-lead-track.ts +72 -0
  141. package/src/tools/track/track-sale-track.ts +74 -0
  142. package/src/tools/types.ts +103 -0
  143. package/src/tools.ts +1 -0
  144. package/src/tsconfig.json +11 -0
  145. package/stdio.d.mts +3 -0
  146. package/stdio.d.mts.map +1 -0
  147. package/stdio.d.ts +3 -0
  148. package/stdio.d.ts.map +1 -0
  149. package/stdio.js +14 -0
  150. package/stdio.js.map +1 -0
  151. package/stdio.mjs +10 -0
  152. package/stdio.mjs.map +1 -0
  153. package/tools/analytics/retrieve-analytics.d.mts +45 -0
  154. package/tools/analytics/retrieve-analytics.d.mts.map +1 -0
  155. package/tools/analytics/retrieve-analytics.d.ts +45 -0
  156. package/tools/analytics/retrieve-analytics.d.ts.map +1 -0
  157. package/tools/analytics/retrieve-analytics.js +426 -0
  158. package/tools/analytics/retrieve-analytics.js.map +1 -0
  159. package/tools/analytics/retrieve-analytics.mjs +422 -0
  160. package/tools/analytics/retrieve-analytics.mjs.map +1 -0
  161. package/tools/domains/create-domains.d.mts +45 -0
  162. package/tools/domains/create-domains.d.mts.map +1 -0
  163. package/tools/domains/create-domains.d.ts +45 -0
  164. package/tools/domains/create-domains.d.ts.map +1 -0
  165. package/tools/domains/create-domains.js +53 -0
  166. package/tools/domains/create-domains.js.map +1 -0
  167. package/tools/domains/create-domains.mjs +49 -0
  168. package/tools/domains/create-domains.mjs.map +1 -0
  169. package/tools/domains/delete-domains.d.mts +45 -0
  170. package/tools/domains/delete-domains.d.mts.map +1 -0
  171. package/tools/domains/delete-domains.d.ts +45 -0
  172. package/tools/domains/delete-domains.d.ts.map +1 -0
  173. package/tools/domains/delete-domains.js +43 -0
  174. package/tools/domains/delete-domains.js.map +1 -0
  175. package/tools/domains/delete-domains.mjs +39 -0
  176. package/tools/domains/delete-domains.mjs.map +1 -0
  177. package/tools/domains/list-domains.d.mts +45 -0
  178. package/tools/domains/list-domains.d.mts.map +1 -0
  179. package/tools/domains/list-domains.d.ts +45 -0
  180. package/tools/domains/list-domains.d.ts.map +1 -0
  181. package/tools/domains/list-domains.js +55 -0
  182. package/tools/domains/list-domains.js.map +1 -0
  183. package/tools/domains/list-domains.mjs +51 -0
  184. package/tools/domains/list-domains.mjs.map +1 -0
  185. package/tools/domains/update-domains.d.mts +45 -0
  186. package/tools/domains/update-domains.d.mts.map +1 -0
  187. package/tools/domains/update-domains.d.ts +45 -0
  188. package/tools/domains/update-domains.d.ts.map +1 -0
  189. package/tools/domains/update-domains.js +57 -0
  190. package/tools/domains/update-domains.js.map +1 -0
  191. package/tools/domains/update-domains.mjs +53 -0
  192. package/tools/domains/update-domains.mjs.map +1 -0
  193. package/tools/events/list-events.d.mts +45 -0
  194. package/tools/events/list-events.d.mts.map +1 -0
  195. package/tools/events/list-events.d.ts +45 -0
  196. package/tools/events/list-events.d.ts.map +1 -0
  197. package/tools/events/list-events.js +406 -0
  198. package/tools/events/list-events.js.map +1 -0
  199. package/tools/events/list-events.mjs +402 -0
  200. package/tools/events/list-events.mjs.map +1 -0
  201. package/tools/index.d.mts +10 -0
  202. package/tools/index.d.mts.map +1 -0
  203. package/tools/index.d.ts +10 -0
  204. package/tools/index.d.ts.map +1 -0
  205. package/tools/index.js +117 -0
  206. package/tools/index.js.map +1 -0
  207. package/tools/index.mjs +110 -0
  208. package/tools/index.mjs.map +1 -0
  209. package/tools/links/bulk/create-links-bulk.d.mts +45 -0
  210. package/tools/links/bulk/create-links-bulk.d.mts.map +1 -0
  211. package/tools/links/bulk/create-links-bulk.d.ts +45 -0
  212. package/tools/links/bulk/create-links-bulk.d.ts.map +1 -0
  213. package/tools/links/bulk/create-links-bulk.js +940 -0
  214. package/tools/links/bulk/create-links-bulk.js.map +1 -0
  215. package/tools/links/bulk/create-links-bulk.mjs +936 -0
  216. package/tools/links/bulk/create-links-bulk.mjs.map +1 -0
  217. package/tools/links/bulk/delete-links-bulk.d.mts +45 -0
  218. package/tools/links/bulk/delete-links-bulk.d.mts.map +1 -0
  219. package/tools/links/bulk/delete-links-bulk.d.ts +45 -0
  220. package/tools/links/bulk/delete-links-bulk.d.ts.map +1 -0
  221. package/tools/links/bulk/delete-links-bulk.js +46 -0
  222. package/tools/links/bulk/delete-links-bulk.js.map +1 -0
  223. package/tools/links/bulk/delete-links-bulk.mjs +42 -0
  224. package/tools/links/bulk/delete-links-bulk.mjs.map +1 -0
  225. package/tools/links/count-links.d.mts +45 -0
  226. package/tools/links/count-links.d.mts.map +1 -0
  227. package/tools/links/count-links.d.ts +45 -0
  228. package/tools/links/count-links.d.ts.map +1 -0
  229. package/tools/links/count-links.js +935 -0
  230. package/tools/links/count-links.js.map +1 -0
  231. package/tools/links/count-links.mjs +931 -0
  232. package/tools/links/count-links.mjs.map +1 -0
  233. package/tools/links/create-links.d.mts +45 -0
  234. package/tools/links/create-links.d.mts.map +1 -0
  235. package/tools/links/create-links.d.ts +45 -0
  236. package/tools/links/create-links.d.ts.map +1 -0
  237. package/tools/links/create-links.js +931 -0
  238. package/tools/links/create-links.js.map +1 -0
  239. package/tools/links/create-links.mjs +927 -0
  240. package/tools/links/create-links.mjs.map +1 -0
  241. package/tools/links/delete-links.d.mts +45 -0
  242. package/tools/links/delete-links.d.mts.map +1 -0
  243. package/tools/links/delete-links.d.ts +45 -0
  244. package/tools/links/delete-links.d.ts.map +1 -0
  245. package/tools/links/delete-links.js +43 -0
  246. package/tools/links/delete-links.js.map +1 -0
  247. package/tools/links/delete-links.mjs +39 -0
  248. package/tools/links/delete-links.mjs.map +1 -0
  249. package/tools/links/list-links.d.mts +45 -0
  250. package/tools/links/list-links.d.mts.map +1 -0
  251. package/tools/links/list-links.d.ts +45 -0
  252. package/tools/links/list-links.d.ts.map +1 -0
  253. package/tools/links/list-links.js +957 -0
  254. package/tools/links/list-links.js.map +1 -0
  255. package/tools/links/list-links.mjs +953 -0
  256. package/tools/links/list-links.mjs.map +1 -0
  257. package/tools/links/retrieve-info-links.d.mts +45 -0
  258. package/tools/links/retrieve-info-links.d.mts.map +1 -0
  259. package/tools/links/retrieve-info-links.d.ts +45 -0
  260. package/tools/links/retrieve-info-links.d.ts.map +1 -0
  261. package/tools/links/retrieve-info-links.js +59 -0
  262. package/tools/links/retrieve-info-links.js.map +1 -0
  263. package/tools/links/retrieve-info-links.mjs +55 -0
  264. package/tools/links/retrieve-info-links.mjs.map +1 -0
  265. package/tools/links/update-links.d.mts +45 -0
  266. package/tools/links/update-links.d.mts.map +1 -0
  267. package/tools/links/update-links.d.ts +45 -0
  268. package/tools/links/update-links.d.ts.map +1 -0
  269. package/tools/links/update-links.js +937 -0
  270. package/tools/links/update-links.js.map +1 -0
  271. package/tools/links/update-links.mjs +933 -0
  272. package/tools/links/update-links.mjs.map +1 -0
  273. package/tools/links/upsert-links.d.mts +45 -0
  274. package/tools/links/upsert-links.d.mts.map +1 -0
  275. package/tools/links/upsert-links.d.ts +45 -0
  276. package/tools/links/upsert-links.d.ts.map +1 -0
  277. package/tools/links/upsert-links.js +931 -0
  278. package/tools/links/upsert-links.js.map +1 -0
  279. package/tools/links/upsert-links.mjs +927 -0
  280. package/tools/links/upsert-links.mjs.map +1 -0
  281. package/tools/projects/list-projects.d.mts +45 -0
  282. package/tools/projects/list-projects.d.mts.map +1 -0
  283. package/tools/projects/list-projects.d.ts +45 -0
  284. package/tools/projects/list-projects.d.ts.map +1 -0
  285. package/tools/projects/list-projects.js +39 -0
  286. package/tools/projects/list-projects.js.map +1 -0
  287. package/tools/projects/list-projects.mjs +35 -0
  288. package/tools/projects/list-projects.mjs.map +1 -0
  289. package/tools/projects/retrieve-projects.d.mts +45 -0
  290. package/tools/projects/retrieve-projects.d.mts.map +1 -0
  291. package/tools/projects/retrieve-projects.d.ts +45 -0
  292. package/tools/projects/retrieve-projects.d.ts.map +1 -0
  293. package/tools/projects/retrieve-projects.js +43 -0
  294. package/tools/projects/retrieve-projects.js.map +1 -0
  295. package/tools/projects/retrieve-projects.mjs +39 -0
  296. package/tools/projects/retrieve-projects.mjs.map +1 -0
  297. package/tools/qrcodes/bulk/create-qrcodes-bulk.d.mts +45 -0
  298. package/tools/qrcodes/bulk/create-qrcodes-bulk.d.mts.map +1 -0
  299. package/tools/qrcodes/bulk/create-qrcodes-bulk.d.ts +45 -0
  300. package/tools/qrcodes/bulk/create-qrcodes-bulk.d.ts.map +1 -0
  301. package/tools/qrcodes/bulk/create-qrcodes-bulk.js +1052 -0
  302. package/tools/qrcodes/bulk/create-qrcodes-bulk.js.map +1 -0
  303. package/tools/qrcodes/bulk/create-qrcodes-bulk.mjs +1048 -0
  304. package/tools/qrcodes/bulk/create-qrcodes-bulk.mjs.map +1 -0
  305. package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.mts +45 -0
  306. package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.mts.map +1 -0
  307. package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.ts +45 -0
  308. package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.ts.map +1 -0
  309. package/tools/qrcodes/bulk/delete-qrcodes-bulk.js +46 -0
  310. package/tools/qrcodes/bulk/delete-qrcodes-bulk.js.map +1 -0
  311. package/tools/qrcodes/bulk/delete-qrcodes-bulk.mjs +42 -0
  312. package/tools/qrcodes/bulk/delete-qrcodes-bulk.mjs.map +1 -0
  313. package/tools/qrcodes/count-qrcodes.d.mts +45 -0
  314. package/tools/qrcodes/count-qrcodes.d.mts.map +1 -0
  315. package/tools/qrcodes/count-qrcodes.d.ts +45 -0
  316. package/tools/qrcodes/count-qrcodes.d.ts.map +1 -0
  317. package/tools/qrcodes/count-qrcodes.js +199 -0
  318. package/tools/qrcodes/count-qrcodes.js.map +1 -0
  319. package/tools/qrcodes/count-qrcodes.mjs +195 -0
  320. package/tools/qrcodes/count-qrcodes.mjs.map +1 -0
  321. package/tools/qrcodes/create-qrcodes.d.mts +45 -0
  322. package/tools/qrcodes/create-qrcodes.d.mts.map +1 -0
  323. package/tools/qrcodes/create-qrcodes.d.ts +45 -0
  324. package/tools/qrcodes/create-qrcodes.d.ts.map +1 -0
  325. package/tools/qrcodes/create-qrcodes.js +1043 -0
  326. package/tools/qrcodes/create-qrcodes.js.map +1 -0
  327. package/tools/qrcodes/create-qrcodes.mjs +1039 -0
  328. package/tools/qrcodes/create-qrcodes.mjs.map +1 -0
  329. package/tools/qrcodes/delete-qrcodes.d.mts +45 -0
  330. package/tools/qrcodes/delete-qrcodes.d.mts.map +1 -0
  331. package/tools/qrcodes/delete-qrcodes.d.ts +45 -0
  332. package/tools/qrcodes/delete-qrcodes.d.ts.map +1 -0
  333. package/tools/qrcodes/delete-qrcodes.js +43 -0
  334. package/tools/qrcodes/delete-qrcodes.js.map +1 -0
  335. package/tools/qrcodes/delete-qrcodes.mjs +39 -0
  336. package/tools/qrcodes/delete-qrcodes.mjs.map +1 -0
  337. package/tools/qrcodes/list-qrcodes.d.mts +45 -0
  338. package/tools/qrcodes/list-qrcodes.d.mts.map +1 -0
  339. package/tools/qrcodes/list-qrcodes.d.ts +45 -0
  340. package/tools/qrcodes/list-qrcodes.d.ts.map +1 -0
  341. package/tools/qrcodes/list-qrcodes.js +201 -0
  342. package/tools/qrcodes/list-qrcodes.js.map +1 -0
  343. package/tools/qrcodes/list-qrcodes.mjs +197 -0
  344. package/tools/qrcodes/list-qrcodes.mjs.map +1 -0
  345. package/tools/qrcodes/retrieve-qrcodes.d.mts +45 -0
  346. package/tools/qrcodes/retrieve-qrcodes.d.mts.map +1 -0
  347. package/tools/qrcodes/retrieve-qrcodes.d.ts +45 -0
  348. package/tools/qrcodes/retrieve-qrcodes.d.ts.map +1 -0
  349. package/tools/qrcodes/retrieve-qrcodes.js +53 -0
  350. package/tools/qrcodes/retrieve-qrcodes.js.map +1 -0
  351. package/tools/qrcodes/retrieve-qrcodes.mjs +49 -0
  352. package/tools/qrcodes/retrieve-qrcodes.mjs.map +1 -0
  353. package/tools/qrcodes/update-qrcodes.d.mts +45 -0
  354. package/tools/qrcodes/update-qrcodes.d.mts.map +1 -0
  355. package/tools/qrcodes/update-qrcodes.d.ts +45 -0
  356. package/tools/qrcodes/update-qrcodes.d.ts.map +1 -0
  357. package/tools/qrcodes/update-qrcodes.js +1049 -0
  358. package/tools/qrcodes/update-qrcodes.js.map +1 -0
  359. package/tools/qrcodes/update-qrcodes.mjs +1045 -0
  360. package/tools/qrcodes/update-qrcodes.mjs.map +1 -0
  361. package/tools/qrcodes/upsert-qrcodes.d.mts +45 -0
  362. package/tools/qrcodes/upsert-qrcodes.d.mts.map +1 -0
  363. package/tools/qrcodes/upsert-qrcodes.d.ts +45 -0
  364. package/tools/qrcodes/upsert-qrcodes.d.ts.map +1 -0
  365. package/tools/qrcodes/upsert-qrcodes.js +1043 -0
  366. package/tools/qrcodes/upsert-qrcodes.js.map +1 -0
  367. package/tools/qrcodes/upsert-qrcodes.mjs +1039 -0
  368. package/tools/qrcodes/upsert-qrcodes.mjs.map +1 -0
  369. package/tools/tags/create-tags.d.mts +45 -0
  370. package/tools/tags/create-tags.d.mts.map +1 -0
  371. package/tools/tags/create-tags.d.ts +45 -0
  372. package/tools/tags/create-tags.d.ts.map +1 -0
  373. package/tools/tags/create-tags.js +46 -0
  374. package/tools/tags/create-tags.js.map +1 -0
  375. package/tools/tags/create-tags.mjs +42 -0
  376. package/tools/tags/create-tags.mjs.map +1 -0
  377. package/tools/tags/delete-tags.d.mts +45 -0
  378. package/tools/tags/delete-tags.d.mts.map +1 -0
  379. package/tools/tags/delete-tags.d.ts +45 -0
  380. package/tools/tags/delete-tags.d.ts.map +1 -0
  381. package/tools/tags/delete-tags.js +43 -0
  382. package/tools/tags/delete-tags.js.map +1 -0
  383. package/tools/tags/delete-tags.mjs +39 -0
  384. package/tools/tags/delete-tags.mjs.map +1 -0
  385. package/tools/tags/list-tags.d.mts +45 -0
  386. package/tools/tags/list-tags.d.mts.map +1 -0
  387. package/tools/tags/list-tags.d.ts +45 -0
  388. package/tools/tags/list-tags.d.ts.map +1 -0
  389. package/tools/tags/list-tags.js +75 -0
  390. package/tools/tags/list-tags.js.map +1 -0
  391. package/tools/tags/list-tags.mjs +71 -0
  392. package/tools/tags/list-tags.mjs.map +1 -0
  393. package/tools/tags/update-tags.d.mts +45 -0
  394. package/tools/tags/update-tags.d.mts.map +1 -0
  395. package/tools/tags/update-tags.d.ts +45 -0
  396. package/tools/tags/update-tags.d.ts.map +1 -0
  397. package/tools/tags/update-tags.js +51 -0
  398. package/tools/tags/update-tags.js.map +1 -0
  399. package/tools/tags/update-tags.mjs +47 -0
  400. package/tools/tags/update-tags.mjs.map +1 -0
  401. package/tools/track/track-lead-track.d.mts +45 -0
  402. package/tools/track/track-lead-track.d.mts.map +1 -0
  403. package/tools/track/track-lead-track.d.ts +45 -0
  404. package/tools/track/track-lead-track.d.ts.map +1 -0
  405. package/tools/track/track-lead-track.js +66 -0
  406. package/tools/track/track-lead-track.js.map +1 -0
  407. package/tools/track/track-lead-track.mjs +62 -0
  408. package/tools/track/track-lead-track.mjs.map +1 -0
  409. package/tools/track/track-sale-track.d.mts +45 -0
  410. package/tools/track/track-sale-track.d.mts.map +1 -0
  411. package/tools/track/track-sale-track.d.ts +45 -0
  412. package/tools/track/track-sale-track.d.ts.map +1 -0
  413. package/tools/track/track-sale-track.js +67 -0
  414. package/tools/track/track-sale-track.js.map +1 -0
  415. package/tools/track/track-sale-track.mjs +63 -0
  416. package/tools/track/track-sale-track.mjs.map +1 -0
  417. package/tools/types.d.mts +51 -0
  418. package/tools/types.d.mts.map +1 -0
  419. package/tools/types.d.ts +51 -0
  420. package/tools/types.d.ts.map +1 -0
  421. package/tools/types.js +46 -0
  422. package/tools/types.js.map +1 -0
  423. package/tools/types.mjs +42 -0
  424. package/tools/types.mjs.map +1 -0
  425. package/tools.d.mts +2 -0
  426. package/tools.d.mts.map +1 -0
  427. package/tools.d.ts +2 -0
  428. package/tools.d.ts.map +1 -0
  429. package/tools.js +18 -0
  430. package/tools.js.map +1 -0
  431. package/tools.mjs +2 -0
  432. package/tools.mjs.map +1 -0
@@ -0,0 +1,52 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { maybeFilter } from '@codeqr/ts-mcp/filtering';
4
+ import { Metadata, asTextContentResult } from '@codeqr/ts-mcp/tools/types';
5
+
6
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
+ import Codeqr from '@codeqr/ts';
8
+
9
+ export const metadata: Metadata = {
10
+ resource: 'tags',
11
+ operation: 'write',
12
+ tags: [],
13
+ httpMethod: 'post',
14
+ httpPath: '/tags',
15
+ operationId: 'createTag',
16
+ };
17
+
18
+ export const tool: Tool = {
19
+ name: 'create_tags',
20
+ description:
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCreate a new tag for the authenticated project.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/tag',\n $defs: {\n tag: {\n type: 'object',\n title: 'Tag',\n properties: {\n id: {\n type: 'string',\n description: 'The unique ID of the tag.'\n },\n color: {\n type: 'string',\n description: 'The color of the tag.',\n enum: [ 'red',\n 'yellow',\n 'green',\n 'blue',\n 'purple',\n 'pink',\n 'brown'\n ]\n },\n name: {\n type: 'string',\n description: 'The name of the tag.'\n }\n },\n required: [ 'id',\n 'color',\n 'name'\n ]\n }\n }\n}\n```",
22
+ inputSchema: {
23
+ type: 'object',
24
+ properties: {
25
+ tag: {
26
+ type: 'string',
27
+ description: 'The name of the tag to create.',
28
+ },
29
+ color: {
30
+ type: 'string',
31
+ description:
32
+ 'The color of the tag. If not provided, a random color will be used from the list: red, yellow, green, blue, purple, pink, brown.',
33
+ enum: ['red', 'yellow', 'green', 'blue', 'purple', 'pink', 'brown'],
34
+ },
35
+ jq_filter: {
36
+ type: 'string',
37
+ title: 'jq Filter',
38
+ description:
39
+ 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
40
+ },
41
+ },
42
+ required: ['tag'],
43
+ },
44
+ annotations: {},
45
+ };
46
+
47
+ export const handler = async (client: Codeqr, args: Record<string, unknown> | undefined) => {
48
+ const { jq_filter, ...body } = args as any;
49
+ return asTextContentResult(await maybeFilter(jq_filter, await client.tags.create(body)));
50
+ };
51
+
52
+ export default { metadata, tool, handler };
@@ -0,0 +1,48 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { maybeFilter } from '@codeqr/ts-mcp/filtering';
4
+ import { Metadata, asTextContentResult } from '@codeqr/ts-mcp/tools/types';
5
+
6
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
+ import Codeqr from '@codeqr/ts';
8
+
9
+ export const metadata: Metadata = {
10
+ resource: 'tags',
11
+ operation: 'write',
12
+ tags: [],
13
+ httpMethod: 'delete',
14
+ httpPath: '/tags/{id}',
15
+ operationId: 'deleteTag',
16
+ };
17
+
18
+ export const tool: Tool = {
19
+ name: 'delete_tags',
20
+ description:
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nDelete a tag from the workspace. All existing links will still work, but they will no longer be associated with this tag.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'The ID of the deleted tag.'\n }\n },\n required: [ 'id'\n ]\n}\n```",
22
+ inputSchema: {
23
+ type: 'object',
24
+ properties: {
25
+ id: {
26
+ type: 'string',
27
+ description: 'The ID of the tag to delete.',
28
+ },
29
+ jq_filter: {
30
+ type: 'string',
31
+ title: 'jq Filter',
32
+ description:
33
+ 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
34
+ },
35
+ },
36
+ required: ['id'],
37
+ },
38
+ annotations: {
39
+ idempotentHint: true,
40
+ },
41
+ };
42
+
43
+ export const handler = async (client: Codeqr, args: Record<string, unknown> | undefined) => {
44
+ const { id, jq_filter, ...body } = args as any;
45
+ return asTextContentResult(await maybeFilter(jq_filter, await client.tags.delete(id)));
46
+ };
47
+
48
+ export default { metadata, tool, handler };
@@ -0,0 +1,80 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { maybeFilter } from '@codeqr/ts-mcp/filtering';
4
+ import { Metadata, asTextContentResult } from '@codeqr/ts-mcp/tools/types';
5
+
6
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
+ import Codeqr from '@codeqr/ts';
8
+
9
+ export const metadata: Metadata = {
10
+ resource: 'tags',
11
+ operation: 'read',
12
+ tags: [],
13
+ httpMethod: 'get',
14
+ httpPath: '/tags',
15
+ operationId: 'getTags',
16
+ };
17
+
18
+ export const tool: Tool = {
19
+ name: 'list_tags',
20
+ description:
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nRetrieve a list of tags for the authenticated workspace.\n\n# Response Schema\n```json\n{\n type: 'array',\n items: {\n $ref: '#/$defs/tag'\n },\n $defs: {\n tag: {\n type: 'object',\n title: 'Tag',\n properties: {\n id: {\n type: 'string',\n description: 'The unique ID of the tag.'\n },\n color: {\n type: 'string',\n description: 'The color of the tag.',\n enum: [ 'red',\n 'yellow',\n 'green',\n 'blue',\n 'purple',\n 'pink',\n 'brown'\n ]\n },\n name: {\n type: 'string',\n description: 'The name of the tag.'\n }\n },\n required: [ 'id',\n 'color',\n 'name'\n ]\n }\n }\n}\n```",
22
+ inputSchema: {
23
+ type: 'object',
24
+ properties: {
25
+ ids: {
26
+ anyOf: [
27
+ {
28
+ type: 'string',
29
+ },
30
+ {
31
+ type: 'array',
32
+ items: {
33
+ type: 'string',
34
+ },
35
+ },
36
+ ],
37
+ description: 'IDs of tags to filter by.',
38
+ },
39
+ page: {
40
+ type: 'number',
41
+ description: 'The page number for pagination.',
42
+ },
43
+ pageSize: {
44
+ type: 'number',
45
+ description: 'The number of items per page.',
46
+ },
47
+ search: {
48
+ type: 'string',
49
+ description: 'The search term to filter the tags by.',
50
+ },
51
+ sortBy: {
52
+ type: 'string',
53
+ description: 'The field to sort the tags by.',
54
+ enum: ['name', 'createdAt'],
55
+ },
56
+ sortOrder: {
57
+ type: 'string',
58
+ description: 'The order to sort the tags by.',
59
+ enum: ['asc', 'desc'],
60
+ },
61
+ jq_filter: {
62
+ type: 'string',
63
+ title: 'jq Filter',
64
+ description:
65
+ 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
66
+ },
67
+ },
68
+ required: [],
69
+ },
70
+ annotations: {
71
+ readOnlyHint: true,
72
+ },
73
+ };
74
+
75
+ export const handler = async (client: Codeqr, args: Record<string, unknown> | undefined) => {
76
+ const { jq_filter, ...body } = args as any;
77
+ return asTextContentResult(await maybeFilter(jq_filter, await client.tags.list(body)));
78
+ };
79
+
80
+ export default { metadata, tool, handler };
@@ -0,0 +1,56 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { maybeFilter } from '@codeqr/ts-mcp/filtering';
4
+ import { Metadata, asTextContentResult } from '@codeqr/ts-mcp/tools/types';
5
+
6
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
+ import Codeqr from '@codeqr/ts';
8
+
9
+ export const metadata: Metadata = {
10
+ resource: 'tags',
11
+ operation: 'write',
12
+ tags: [],
13
+ httpMethod: 'put',
14
+ httpPath: '/tags/{id}',
15
+ operationId: 'updateTag',
16
+ };
17
+
18
+ export const tool: Tool = {
19
+ name: 'update_tags',
20
+ description:
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nUpdate a tag in the workspace.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/tag',\n $defs: {\n tag: {\n type: 'object',\n title: 'Tag',\n properties: {\n id: {\n type: 'string',\n description: 'The unique ID of the tag.'\n },\n color: {\n type: 'string',\n description: 'The color of the tag.',\n enum: [ 'red',\n 'yellow',\n 'green',\n 'blue',\n 'purple',\n 'pink',\n 'brown'\n ]\n },\n name: {\n type: 'string',\n description: 'The name of the tag.'\n }\n },\n required: [ 'id',\n 'color',\n 'name'\n ]\n }\n }\n}\n```",
22
+ inputSchema: {
23
+ type: 'object',
24
+ properties: {
25
+ id: {
26
+ type: 'string',
27
+ description: 'The ID of the tag to update.',
28
+ },
29
+ name: {
30
+ type: 'string',
31
+ },
32
+ color: {
33
+ type: 'string',
34
+ description: 'The color of the tag',
35
+ enum: ['red', 'yellow', 'green', 'blue', 'purple', 'pink', 'brown'],
36
+ },
37
+ jq_filter: {
38
+ type: 'string',
39
+ title: 'jq Filter',
40
+ description:
41
+ 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
42
+ },
43
+ },
44
+ required: ['id', 'name'],
45
+ },
46
+ annotations: {
47
+ idempotentHint: true,
48
+ },
49
+ };
50
+
51
+ export const handler = async (client: Codeqr, args: Record<string, unknown> | undefined) => {
52
+ const { id, jq_filter, ...body } = args as any;
53
+ return asTextContentResult(await maybeFilter(jq_filter, await client.tags.update(id, body)));
54
+ };
55
+
56
+ export default { metadata, tool, handler };
@@ -0,0 +1,72 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { maybeFilter } from '@codeqr/ts-mcp/filtering';
4
+ import { Metadata, asTextContentResult } from '@codeqr/ts-mcp/tools/types';
5
+
6
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
+ import Codeqr from '@codeqr/ts';
8
+
9
+ export const metadata: Metadata = {
10
+ resource: 'track',
11
+ operation: 'write',
12
+ tags: [],
13
+ httpMethod: 'post',
14
+ httpPath: '/track/lead',
15
+ operationId: 'trackLead',
16
+ };
17
+
18
+ export const tool: Tool = {
19
+ name: 'track_lead_track',
20
+ description:
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nTrack a lead for a short link.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n click: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n }\n },\n required: [ 'id'\n ]\n },\n customer: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n avatar: {\n type: 'string'\n },\n email: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id'\n ]\n }\n },\n required: [ 'click',\n 'customer'\n ]\n}\n```",
22
+ inputSchema: {
23
+ type: 'object',
24
+ properties: {
25
+ clickId: {
26
+ type: 'string',
27
+ description: 'The ID of the click in th CodeQR. You can read this value from `cq_id` cookie.',
28
+ },
29
+ customerId: {
30
+ type: 'string',
31
+ description:
32
+ "This is the unique identifier for the customer in the client's app. This is used to track the customer's journey.",
33
+ },
34
+ eventName: {
35
+ type: 'string',
36
+ description: 'The name of the event to track.',
37
+ },
38
+ customerAvatar: {
39
+ type: 'string',
40
+ description: "Avatar of the customer in the client's app.",
41
+ },
42
+ customerEmail: {
43
+ type: 'string',
44
+ description: "Email of the customer in the client's app.",
45
+ },
46
+ customerName: {
47
+ type: 'string',
48
+ description: "Name of the customer in the client's app.",
49
+ },
50
+ metadata: {
51
+ type: 'object',
52
+ description: 'Additional metadata to be stored with the lead event',
53
+ additionalProperties: true,
54
+ },
55
+ jq_filter: {
56
+ type: 'string',
57
+ title: 'jq Filter',
58
+ description:
59
+ 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
60
+ },
61
+ },
62
+ required: ['clickId', 'customerId', 'eventName'],
63
+ },
64
+ annotations: {},
65
+ };
66
+
67
+ export const handler = async (client: Codeqr, args: Record<string, unknown> | undefined) => {
68
+ const { jq_filter, ...body } = args as any;
69
+ return asTextContentResult(await maybeFilter(jq_filter, await client.track.trackLead(body)));
70
+ };
71
+
72
+ export default { metadata, tool, handler };
@@ -0,0 +1,74 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { maybeFilter } from '@codeqr/ts-mcp/filtering';
4
+ import { Metadata, asTextContentResult } from '@codeqr/ts-mcp/tools/types';
5
+
6
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
+ import Codeqr from '@codeqr/ts';
8
+
9
+ export const metadata: Metadata = {
10
+ resource: 'track',
11
+ operation: 'write',
12
+ tags: [],
13
+ httpMethod: 'post',
14
+ httpPath: '/track/sale',
15
+ operationId: 'trackSale',
16
+ };
17
+
18
+ export const tool: Tool = {
19
+ name: 'track_sale_track',
20
+ description:
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nTrack a sale for a short link.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n amount: {\n type: 'number'\n },\n currency: {\n type: 'string'\n },\n customerId: {\n type: 'string'\n },\n eventName: {\n type: 'string'\n },\n invoiceId: {\n type: 'string'\n },\n metadata: {\n type: 'object',\n additionalProperties: true\n },\n paymentProcessor: {\n type: 'string'\n }\n },\n required: [ 'amount',\n 'currency',\n 'customerId',\n 'eventName',\n 'invoiceId',\n 'metadata',\n 'paymentProcessor'\n ]\n}\n```",
22
+ inputSchema: {
23
+ type: 'object',
24
+ properties: {
25
+ amount: {
26
+ type: 'integer',
27
+ description: 'The amount of the sale. Should be passed in cents.',
28
+ },
29
+ customerId: {
30
+ type: 'string',
31
+ description:
32
+ "This is the unique identifier for the customer in the client's app. This is used to track the customer's journey.",
33
+ },
34
+ paymentProcessor: {
35
+ type: 'string',
36
+ description: 'The payment processor via which the sale was made.',
37
+ enum: ['stripe', 'shopify', 'paddle'],
38
+ },
39
+ currency: {
40
+ type: 'string',
41
+ description: 'The currency of the sale. Accepts ISO 4217 currency codes.',
42
+ },
43
+ eventName: {
44
+ type: 'string',
45
+ description:
46
+ "The name of the sale event. It can be used to track different types of event for example 'Purchase', 'Upgrade', 'Payment', etc.",
47
+ },
48
+ invoiceId: {
49
+ type: 'string',
50
+ description: 'The invoice ID of the sale.',
51
+ },
52
+ metadata: {
53
+ type: 'object',
54
+ description: 'Additional metadata to be stored with the sale event.',
55
+ additionalProperties: true,
56
+ },
57
+ jq_filter: {
58
+ type: 'string',
59
+ title: 'jq Filter',
60
+ description:
61
+ 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
62
+ },
63
+ },
64
+ required: ['amount', 'customerId', 'paymentProcessor'],
65
+ },
66
+ annotations: {},
67
+ };
68
+
69
+ export const handler = async (client: Codeqr, args: Record<string, unknown> | undefined) => {
70
+ const { jq_filter, ...body } = args as any;
71
+ return asTextContentResult(await maybeFilter(jq_filter, await client.track.trackSale(body)));
72
+ };
73
+
74
+ export default { metadata, tool, handler };
@@ -0,0 +1,103 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import Codeqr from '@codeqr/ts';
4
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
5
+
6
+ type TextContentBlock = {
7
+ type: 'text';
8
+ text: string;
9
+ };
10
+
11
+ type ImageContentBlock = {
12
+ type: 'image';
13
+ data: string;
14
+ mimeType: string;
15
+ };
16
+
17
+ type AudioContentBlock = {
18
+ type: 'audio';
19
+ data: string;
20
+ mimeType: string;
21
+ };
22
+
23
+ type ResourceContentBlock = {
24
+ type: 'resource';
25
+ resource:
26
+ | {
27
+ uri: string;
28
+ mimeType: string;
29
+ text: string;
30
+ }
31
+ | {
32
+ uri: string;
33
+ mimeType: string;
34
+ blob: string;
35
+ };
36
+ };
37
+
38
+ export type ContentBlock = TextContentBlock | ImageContentBlock | AudioContentBlock | ResourceContentBlock;
39
+
40
+ export type ToolCallResult = {
41
+ content: ContentBlock[];
42
+ isError?: boolean;
43
+ };
44
+
45
+ export type HandlerFunction = (
46
+ client: Codeqr,
47
+ args: Record<string, unknown> | undefined,
48
+ ) => Promise<ToolCallResult>;
49
+
50
+ export function asTextContentResult(result: unknown): ToolCallResult {
51
+ return {
52
+ content: [
53
+ {
54
+ type: 'text',
55
+ text: JSON.stringify(result, null, 2),
56
+ },
57
+ ],
58
+ };
59
+ }
60
+
61
+ export async function asBinaryContentResult(response: Response): Promise<ToolCallResult> {
62
+ const blob = await response.blob();
63
+ const mimeType = blob.type;
64
+ const data = Buffer.from(await blob.arrayBuffer()).toString('base64');
65
+ if (mimeType.startsWith('image/')) {
66
+ return {
67
+ content: [{ type: 'image', mimeType, data }],
68
+ };
69
+ } else if (mimeType.startsWith('audio/')) {
70
+ return {
71
+ content: [{ type: 'audio', mimeType, data }],
72
+ };
73
+ } else {
74
+ return {
75
+ content: [
76
+ {
77
+ type: 'resource',
78
+ resource: {
79
+ // We must give a URI, even though this isn't actually an MCP resource.
80
+ uri: 'resource://tool-response',
81
+ mimeType,
82
+ blob: data,
83
+ },
84
+ },
85
+ ],
86
+ };
87
+ }
88
+ }
89
+
90
+ export type Metadata = {
91
+ resource: string;
92
+ operation: 'read' | 'write';
93
+ tags: string[];
94
+ httpMethod?: string;
95
+ httpPath?: string;
96
+ operationId?: string;
97
+ };
98
+
99
+ export type Endpoint = {
100
+ metadata: Metadata;
101
+ tool: Tool;
102
+ handler: HandlerFunction;
103
+ };
package/src/tools.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './tools/index';
@@ -0,0 +1,11 @@
1
+ {
2
+ // this config is included in the published src directory to prevent TS errors
3
+ // from appearing when users go to source, and VSCode opens the source .ts file
4
+ // via declaration maps
5
+ "include": ["index.ts"],
6
+ "compilerOptions": {
7
+ "target": "es2015",
8
+ "lib": ["DOM"],
9
+ "moduleResolution": "node"
10
+ }
11
+ }
package/stdio.d.mts ADDED
@@ -0,0 +1,3 @@
1
+ import { McpOptions } from "./options.mjs";
2
+ export declare const launchStdioServer: (options: McpOptions) => Promise<void>;
3
+ //# sourceMappingURL=stdio.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stdio.d.mts","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OAEO,EAAE,UAAU,EAAE;AAErB,eAAO,MAAM,iBAAiB,GAAU,SAAS,UAAU,kBAQ1D,CAAC"}
package/stdio.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { McpOptions } from "./options.js";
2
+ export declare const launchStdioServer: (options: McpOptions) => Promise<void>;
3
+ //# sourceMappingURL=stdio.d.ts.map
package/stdio.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OAEO,EAAE,UAAU,EAAE;AAErB,eAAO,MAAM,iBAAiB,GAAU,SAAS,UAAU,kBAQ1D,CAAC"}
package/stdio.js ADDED
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.launchStdioServer = void 0;
4
+ const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
5
+ const server_1 = require("./server.js");
6
+ const launchStdioServer = async (options) => {
7
+ const server = (0, server_1.newMcpServer)();
8
+ (0, server_1.initMcpServer)({ server, mcpOptions: options });
9
+ const transport = new stdio_js_1.StdioServerTransport();
10
+ await server.connect(transport);
11
+ console.error('MCP Server running on stdio');
12
+ };
13
+ exports.launchStdioServer = launchStdioServer;
14
+ //# sourceMappingURL=stdio.js.map
package/stdio.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stdio.js","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":";;;AAAA,wEAAiF;AACjF,wCAAuD;AAGhD,MAAM,iBAAiB,GAAG,KAAK,EAAE,OAAmB,EAAE,EAAE;IAC7D,MAAM,MAAM,GAAG,IAAA,qBAAY,GAAE,CAAC;IAE9B,IAAA,sBAAa,EAAC,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;IAE/C,MAAM,SAAS,GAAG,IAAI,+BAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;AAC/C,CAAC,CAAC;AARW,QAAA,iBAAiB,qBAQ5B"}
package/stdio.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
2
+ import { initMcpServer, newMcpServer } from "./server.mjs";
3
+ export const launchStdioServer = async (options) => {
4
+ const server = newMcpServer();
5
+ initMcpServer({ server, mcpOptions: options });
6
+ const transport = new StdioServerTransport();
7
+ await server.connect(transport);
8
+ console.error('MCP Server running on stdio');
9
+ };
10
+ //# sourceMappingURL=stdio.mjs.map
package/stdio.mjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stdio.mjs","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C;OACzE,EAAE,aAAa,EAAE,YAAY,EAAE;AAGtC,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,EAAE,OAAmB,EAAE,EAAE;IAC7D,MAAM,MAAM,GAAG,YAAY,EAAE,CAAC;IAE9B,aAAa,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;IAE/C,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;AAC/C,CAAC,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { Metadata } from '@codeqr/ts-mcp/tools/types';
2
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
3
+ import Codeqr from '@codeqr/ts';
4
+ export declare const metadata: Metadata;
5
+ export declare const tool: Tool;
6
+ export declare const handler: (client: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-mcp/tools/types").ToolCallResult>;
7
+ declare const _default: {
8
+ metadata: Metadata;
9
+ tool: {
10
+ [x: string]: unknown;
11
+ name: string;
12
+ inputSchema: {
13
+ [x: string]: unknown;
14
+ type: "object";
15
+ properties?: {
16
+ [x: string]: unknown;
17
+ } | undefined;
18
+ required?: string[] | undefined;
19
+ };
20
+ title?: string | undefined;
21
+ description?: string | undefined;
22
+ outputSchema?: {
23
+ [x: string]: unknown;
24
+ type: "object";
25
+ properties?: {
26
+ [x: string]: unknown;
27
+ } | undefined;
28
+ required?: string[] | undefined;
29
+ } | undefined;
30
+ annotations?: {
31
+ [x: string]: unknown;
32
+ title?: string | undefined;
33
+ readOnlyHint?: boolean | undefined;
34
+ destructiveHint?: boolean | undefined;
35
+ idempotentHint?: boolean | undefined;
36
+ openWorldHint?: boolean | undefined;
37
+ } | undefined;
38
+ _meta?: {
39
+ [x: string]: unknown;
40
+ } | undefined;
41
+ };
42
+ handler: (client: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-mcp/tools/types").ToolCallResult>;
43
+ };
44
+ export default _default;
45
+ //# sourceMappingURL=retrieve-analytics.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-analytics.d.mts","sourceRoot":"","sources":["../../src/tools/analytics/retrieve-analytics.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0ZlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKvF,wBAA2C"}
@@ -0,0 +1,45 @@
1
+ import { Metadata } from '@codeqr/ts-mcp/tools/types';
2
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
3
+ import Codeqr from '@codeqr/ts';
4
+ export declare const metadata: Metadata;
5
+ export declare const tool: Tool;
6
+ export declare const handler: (client: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-mcp/tools/types").ToolCallResult>;
7
+ declare const _default: {
8
+ metadata: Metadata;
9
+ tool: {
10
+ [x: string]: unknown;
11
+ name: string;
12
+ inputSchema: {
13
+ [x: string]: unknown;
14
+ type: "object";
15
+ properties?: {
16
+ [x: string]: unknown;
17
+ } | undefined;
18
+ required?: string[] | undefined;
19
+ };
20
+ title?: string | undefined;
21
+ description?: string | undefined;
22
+ outputSchema?: {
23
+ [x: string]: unknown;
24
+ type: "object";
25
+ properties?: {
26
+ [x: string]: unknown;
27
+ } | undefined;
28
+ required?: string[] | undefined;
29
+ } | undefined;
30
+ annotations?: {
31
+ [x: string]: unknown;
32
+ title?: string | undefined;
33
+ readOnlyHint?: boolean | undefined;
34
+ destructiveHint?: boolean | undefined;
35
+ idempotentHint?: boolean | undefined;
36
+ openWorldHint?: boolean | undefined;
37
+ } | undefined;
38
+ _meta?: {
39
+ [x: string]: unknown;
40
+ } | undefined;
41
+ };
42
+ handler: (client: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-mcp/tools/types").ToolCallResult>;
43
+ };
44
+ export default _default;
45
+ //# sourceMappingURL=retrieve-analytics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-analytics.d.ts","sourceRoot":"","sources":["../../src/tools/analytics/retrieve-analytics.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0ZlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKvF,wBAA2C"}