@codeqr/ts-mcp 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/code-tool.d.mts +44 -2
  2. package/code-tool.d.mts.map +1 -1
  3. package/code-tool.d.ts +44 -2
  4. package/code-tool.d.ts.map +1 -1
  5. package/code-tool.js +23 -145
  6. package/code-tool.js.map +1 -1
  7. package/code-tool.mjs +23 -112
  8. package/code-tool.mjs.map +1 -1
  9. package/docs-search-tool.d.mts +12 -6
  10. package/docs-search-tool.d.mts.map +1 -1
  11. package/docs-search-tool.d.ts +12 -6
  12. package/docs-search-tool.d.ts.map +1 -1
  13. package/docs-search-tool.js +3 -0
  14. package/docs-search-tool.js.map +1 -1
  15. package/docs-search-tool.mjs +3 -0
  16. package/docs-search-tool.mjs.map +1 -1
  17. package/package.json +3 -19
  18. package/server.js +1 -1
  19. package/server.mjs +1 -1
  20. package/src/code-tool.ts +33 -142
  21. package/src/docs-search-tool.ts +7 -0
  22. package/src/server.ts +1 -1
  23. package/tools/analytics/retrieve-analytics.d.mts +12 -6
  24. package/tools/analytics/retrieve-analytics.d.mts.map +1 -1
  25. package/tools/analytics/retrieve-analytics.d.ts +12 -6
  26. package/tools/analytics/retrieve-analytics.d.ts.map +1 -1
  27. package/tools/domains/create-domains.d.mts +12 -6
  28. package/tools/domains/create-domains.d.mts.map +1 -1
  29. package/tools/domains/create-domains.d.ts +12 -6
  30. package/tools/domains/create-domains.d.ts.map +1 -1
  31. package/tools/domains/delete-domains.d.mts +12 -6
  32. package/tools/domains/delete-domains.d.mts.map +1 -1
  33. package/tools/domains/delete-domains.d.ts +12 -6
  34. package/tools/domains/delete-domains.d.ts.map +1 -1
  35. package/tools/domains/list-domains.d.mts +12 -6
  36. package/tools/domains/list-domains.d.mts.map +1 -1
  37. package/tools/domains/list-domains.d.ts +12 -6
  38. package/tools/domains/list-domains.d.ts.map +1 -1
  39. package/tools/domains/update-domains.d.mts +12 -6
  40. package/tools/domains/update-domains.d.mts.map +1 -1
  41. package/tools/domains/update-domains.d.ts +12 -6
  42. package/tools/domains/update-domains.d.ts.map +1 -1
  43. package/tools/events/list-events.d.mts +12 -6
  44. package/tools/events/list-events.d.mts.map +1 -1
  45. package/tools/events/list-events.d.ts +12 -6
  46. package/tools/events/list-events.d.ts.map +1 -1
  47. package/tools/links/bulk/create-links-bulk.d.mts +12 -6
  48. package/tools/links/bulk/create-links-bulk.d.mts.map +1 -1
  49. package/tools/links/bulk/create-links-bulk.d.ts +12 -6
  50. package/tools/links/bulk/create-links-bulk.d.ts.map +1 -1
  51. package/tools/links/bulk/delete-links-bulk.d.mts +12 -6
  52. package/tools/links/bulk/delete-links-bulk.d.mts.map +1 -1
  53. package/tools/links/bulk/delete-links-bulk.d.ts +12 -6
  54. package/tools/links/bulk/delete-links-bulk.d.ts.map +1 -1
  55. package/tools/links/count-links.d.mts +12 -6
  56. package/tools/links/count-links.d.mts.map +1 -1
  57. package/tools/links/count-links.d.ts +12 -6
  58. package/tools/links/count-links.d.ts.map +1 -1
  59. package/tools/links/create-links.d.mts +12 -6
  60. package/tools/links/create-links.d.mts.map +1 -1
  61. package/tools/links/create-links.d.ts +12 -6
  62. package/tools/links/create-links.d.ts.map +1 -1
  63. package/tools/links/delete-links.d.mts +12 -6
  64. package/tools/links/delete-links.d.mts.map +1 -1
  65. package/tools/links/delete-links.d.ts +12 -6
  66. package/tools/links/delete-links.d.ts.map +1 -1
  67. package/tools/links/list-links.d.mts +12 -6
  68. package/tools/links/list-links.d.mts.map +1 -1
  69. package/tools/links/list-links.d.ts +12 -6
  70. package/tools/links/list-links.d.ts.map +1 -1
  71. package/tools/links/retrieve-info-links.d.mts +12 -6
  72. package/tools/links/retrieve-info-links.d.mts.map +1 -1
  73. package/tools/links/retrieve-info-links.d.ts +12 -6
  74. package/tools/links/retrieve-info-links.d.ts.map +1 -1
  75. package/tools/links/update-links.d.mts +12 -6
  76. package/tools/links/update-links.d.mts.map +1 -1
  77. package/tools/links/update-links.d.ts +12 -6
  78. package/tools/links/update-links.d.ts.map +1 -1
  79. package/tools/links/upsert-links.d.mts +12 -6
  80. package/tools/links/upsert-links.d.mts.map +1 -1
  81. package/tools/links/upsert-links.d.ts +12 -6
  82. package/tools/links/upsert-links.d.ts.map +1 -1
  83. package/tools/projects/list-projects.d.mts +12 -6
  84. package/tools/projects/list-projects.d.mts.map +1 -1
  85. package/tools/projects/list-projects.d.ts +12 -6
  86. package/tools/projects/list-projects.d.ts.map +1 -1
  87. package/tools/projects/retrieve-projects.d.mts +12 -6
  88. package/tools/projects/retrieve-projects.d.mts.map +1 -1
  89. package/tools/projects/retrieve-projects.d.ts +12 -6
  90. package/tools/projects/retrieve-projects.d.ts.map +1 -1
  91. package/tools/qrcodes/bulk/create-qrcodes-bulk.d.mts +12 -6
  92. package/tools/qrcodes/bulk/create-qrcodes-bulk.d.mts.map +1 -1
  93. package/tools/qrcodes/bulk/create-qrcodes-bulk.d.ts +12 -6
  94. package/tools/qrcodes/bulk/create-qrcodes-bulk.d.ts.map +1 -1
  95. package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.mts +12 -6
  96. package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.mts.map +1 -1
  97. package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.ts +12 -6
  98. package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.ts.map +1 -1
  99. package/tools/qrcodes/count-qrcodes.d.mts +12 -6
  100. package/tools/qrcodes/count-qrcodes.d.mts.map +1 -1
  101. package/tools/qrcodes/count-qrcodes.d.ts +12 -6
  102. package/tools/qrcodes/count-qrcodes.d.ts.map +1 -1
  103. package/tools/qrcodes/create-qrcodes.d.mts +12 -6
  104. package/tools/qrcodes/create-qrcodes.d.mts.map +1 -1
  105. package/tools/qrcodes/create-qrcodes.d.ts +12 -6
  106. package/tools/qrcodes/create-qrcodes.d.ts.map +1 -1
  107. package/tools/qrcodes/delete-qrcodes.d.mts +12 -6
  108. package/tools/qrcodes/delete-qrcodes.d.mts.map +1 -1
  109. package/tools/qrcodes/delete-qrcodes.d.ts +12 -6
  110. package/tools/qrcodes/delete-qrcodes.d.ts.map +1 -1
  111. package/tools/qrcodes/list-qrcodes.d.mts +12 -6
  112. package/tools/qrcodes/list-qrcodes.d.mts.map +1 -1
  113. package/tools/qrcodes/list-qrcodes.d.ts +12 -6
  114. package/tools/qrcodes/list-qrcodes.d.ts.map +1 -1
  115. package/tools/qrcodes/retrieve-qrcodes.d.mts +12 -6
  116. package/tools/qrcodes/retrieve-qrcodes.d.mts.map +1 -1
  117. package/tools/qrcodes/retrieve-qrcodes.d.ts +12 -6
  118. package/tools/qrcodes/retrieve-qrcodes.d.ts.map +1 -1
  119. package/tools/qrcodes/update-qrcodes.d.mts +12 -6
  120. package/tools/qrcodes/update-qrcodes.d.mts.map +1 -1
  121. package/tools/qrcodes/update-qrcodes.d.ts +12 -6
  122. package/tools/qrcodes/update-qrcodes.d.ts.map +1 -1
  123. package/tools/qrcodes/upsert-qrcodes.d.mts +12 -6
  124. package/tools/qrcodes/upsert-qrcodes.d.mts.map +1 -1
  125. package/tools/qrcodes/upsert-qrcodes.d.ts +12 -6
  126. package/tools/qrcodes/upsert-qrcodes.d.ts.map +1 -1
  127. package/tools/tags/create-tags.d.mts +12 -6
  128. package/tools/tags/create-tags.d.mts.map +1 -1
  129. package/tools/tags/create-tags.d.ts +12 -6
  130. package/tools/tags/create-tags.d.ts.map +1 -1
  131. package/tools/tags/delete-tags.d.mts +12 -6
  132. package/tools/tags/delete-tags.d.mts.map +1 -1
  133. package/tools/tags/delete-tags.d.ts +12 -6
  134. package/tools/tags/delete-tags.d.ts.map +1 -1
  135. package/tools/tags/list-tags.d.mts +12 -6
  136. package/tools/tags/list-tags.d.mts.map +1 -1
  137. package/tools/tags/list-tags.d.ts +12 -6
  138. package/tools/tags/list-tags.d.ts.map +1 -1
  139. package/tools/tags/update-tags.d.mts +12 -6
  140. package/tools/tags/update-tags.d.mts.map +1 -1
  141. package/tools/tags/update-tags.d.ts +12 -6
  142. package/tools/tags/update-tags.d.ts.map +1 -1
  143. package/tools/track/track-lead-track.d.mts +12 -6
  144. package/tools/track/track-lead-track.d.mts.map +1 -1
  145. package/tools/track/track-lead-track.d.ts +12 -6
  146. package/tools/track/track-lead-track.d.ts.map +1 -1
  147. package/tools/track/track-sale-track.d.mts +12 -6
  148. package/tools/track/track-sale-track.d.mts.map +1 -1
  149. package/tools/track/track-sale-track.d.ts +12 -6
  150. package/tools/track/track-sale-track.d.ts.map +1 -1
  151. package/code-tool-paths.cjs +0 -6
  152. package/code-tool-paths.cjs.map +0 -1
  153. package/code-tool-paths.d.cts +0 -2
  154. package/code-tool-paths.d.cts.map +0 -1
  155. package/code-tool-worker.d.mts +0 -5
  156. package/code-tool-worker.d.mts.map +0 -1
  157. package/code-tool-worker.d.ts +0 -5
  158. package/code-tool-worker.d.ts.map +0 -1
  159. package/code-tool-worker.js +0 -186
  160. package/code-tool-worker.js.map +0 -1
  161. package/code-tool-worker.mjs +0 -181
  162. package/code-tool-worker.mjs.map +0 -1
  163. package/src/code-tool-paths.cts +0 -3
  164. package/src/code-tool-worker.ts +0 -232
@@ -38,6 +38,9 @@ export const handler = async (_, args) => {
38
38
  const body = args;
39
39
  const query = new URLSearchParams(body).toString();
40
40
  const result = await fetch(`${docsSearchURL}?${query}`);
41
+ if (!result.ok) {
42
+ throw new Error(`${result.status}: ${result.statusText} when using doc search tool. Details: ${await result.text()}`);
43
+ }
41
44
  return asTextContentResult(await result.json());
42
45
  };
43
46
  export default { metadata, tool, handler };
@@ -1 +1 @@
1
- {"version":3,"file":"docs-search-tool.mjs","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE;AAIxC,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,8EAA8E;IAC3F,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0BAA0B;aACxC;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,yCAAyC;gBACtD,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC;aAClG;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iCAAiC;gBAC9C,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;aAC7B;SACF;QACD,QAAQ,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC;KAChC;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,aAAa,GACjB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,2DAA2D,CAAC;AAEhG,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,CAAU,EAAE,IAAyC,EAAE,EAAE;IACrF,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,MAAM,KAAK,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;IACnD,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,GAAG,aAAa,IAAI,KAAK,EAAE,CAAC,CAAC;IACxD,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"docs-search-tool.mjs","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE;AAIxC,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,8EAA8E;IAC3F,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0BAA0B;aACxC;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,yCAAyC;gBACtD,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC;aAClG;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iCAAiC;gBAC9C,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;aAC7B;SACF;QACD,QAAQ,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC;KAChC;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,aAAa,GACjB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,2DAA2D,CAAC;AAEhG,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,CAAU,EAAE,IAAyC,EAAE,EAAE;IACrF,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,MAAM,KAAK,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;IACnD,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,GAAG,aAAa,IAAI,KAAK,EAAE,CAAC,CAAC;IAExD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,GAAG,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC,UAAU,yCAAyC,MAAM,MAAM,CAAC,IAAI,EAAE,EAAE,CACrG,CAAC;IACJ,CAAC;IAED,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeqr/ts-mcp",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "The official MCP Server for the CodeQR API",
5
5
  "author": "CodeQR <contact@codeqr.io>",
6
6
  "types": "./index.d.ts",
@@ -27,9 +27,9 @@
27
27
  "fix": "eslint --fix --ext ts,js ."
28
28
  },
29
29
  "dependencies": {
30
- "@codeqr/ts": "^0.8.0",
30
+ "@codeqr/ts": "^0.9.0",
31
31
  "@cloudflare/cabidela": "^0.2.4",
32
- "@modelcontextprotocol/sdk": "^1.11.5",
32
+ "@modelcontextprotocol/sdk": "^1.24.0",
33
33
  "@valtown/deno-http-worker": "^0.0.21",
34
34
  "cors": "^2.8.5",
35
35
  "express": "^5.1.0",
@@ -58,12 +58,6 @@
58
58
  "types": "./index.d.mts",
59
59
  "default": "./index.mjs"
60
60
  },
61
- "./code-tool-paths": {
62
- "require": "./code-tool-paths.cjs"
63
- },
64
- "./code-tool-paths.cjs": {
65
- "default": "./code-tool-paths.cjs"
66
- },
67
61
  "./code-tool-types": {
68
62
  "import": "./code-tool-types.mjs",
69
63
  "require": "./code-tool-types.js"
@@ -74,16 +68,6 @@
74
68
  "./code-tool-types.mjs": {
75
69
  "default": "./code-tool-types.mjs"
76
70
  },
77
- "./code-tool-worker": {
78
- "import": "./code-tool-worker.mjs",
79
- "require": "./code-tool-worker.js"
80
- },
81
- "./code-tool-worker.js": {
82
- "default": "./code-tool-worker.js"
83
- },
84
- "./code-tool-worker.mjs": {
85
- "default": "./code-tool-worker.mjs"
86
- },
87
71
  "./code-tool": {
88
72
  "import": "./code-tool.mjs",
89
73
  "require": "./code-tool.js"
package/server.js CHANGED
@@ -22,7 +22,7 @@ var tools_2 = require("./tools.js");
22
22
  Object.defineProperty(exports, "endpoints", { enumerable: true, get: function () { return tools_2.endpoints; } });
23
23
  const newMcpServer = () => new mcp_js_1.McpServer({
24
24
  name: 'codeqr_ts_api',
25
- version: '0.8.0',
25
+ version: '0.9.0',
26
26
  }, { capabilities: { tools: {}, logging: {} } });
27
27
  exports.newMcpServer = newMcpServer;
28
28
  // Create server instance
package/server.mjs CHANGED
@@ -11,7 +11,7 @@ export { ClientType } from "./compat.mjs";
11
11
  export { endpoints } from "./tools.mjs";
12
12
  export const newMcpServer = () => new McpServer({
13
13
  name: 'codeqr_ts_api',
14
- version: '0.8.0',
14
+ version: '0.9.0',
15
15
  }, { capabilities: { tools: {}, logging: {} } });
16
16
  // Create server instance
17
17
  export const server = newMcpServer();
package/src/code-tool.ts CHANGED
@@ -1,14 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { dirname } from 'node:path';
4
- import { pathToFileURL } from 'node:url';
5
- import Codeqr, { ClientOptions } from '@codeqr/ts';
6
- import { ContentBlock, Endpoint, Metadata, ToolCallResult } from './tools/types';
7
-
3
+ import { Metadata, ToolCallResult, asTextContentResult } from './tools/types';
8
4
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
9
-
10
- import { WorkerInput, WorkerError, WorkerSuccess } from './code-tool-types';
11
-
5
+ import { readEnv } from './server';
6
+ import { WorkerSuccess } from './code-tool-types';
12
7
  /**
13
8
  * A tool that runs code against a copy of the SDK.
14
9
  *
@@ -18,150 +13,46 @@ import { WorkerInput, WorkerError, WorkerSuccess } from './code-tool-types';
18
13
  *
19
14
  * @param endpoints - The endpoints to include in the list.
20
15
  */
21
- export async function codeTool(): Promise<Endpoint> {
16
+ export async function codeTool() {
22
17
  const metadata: Metadata = { resource: 'all', operation: 'write', tags: [] };
23
18
  const tool: Tool = {
24
19
  name: 'execute',
25
20
  description:
26
- 'Runs JavaScript code to interact with the API.\n\nYou are a skilled programmer writing code to interface with the service.\nDefine an async function named "run" that takes a single parameter of an initialized client named "client", and it will be run.\nWrite code within this template:\n\n```\nasync function run(client) {\n // Fill this out\n}\n```\n\nYou will be returned anything that your function returns, plus the results of any console.log statements.\nIf any code triggers an error, the tool will return an error response, so you do not need to add error handling unless you want to output something more helpful than the raw error.\nIt is not necessary to add comments to code, unless by adding those comments you believe that you can generate better code.\nThis code will run in a container, and you will not be able to use fetch or otherwise interact with the network calls other than through the client you are given.\nAny variables you define won\'t live between successive uses of this call, so make sure to return or log any data you might need later.',
21
+ 'Runs JavaScript code to interact with the API.\n\nYou are a skilled programmer writing code to interface with the service.\nDefine an async function named "run" that takes a single parameter of an initialized SDK client and it will be run.\nWrite code within this template:\n\n```\nasync function run(client) {\n // Fill this out\n}\n```\n\nYou will be returned anything that your function returns, plus the results of any console.log statements.\nIf any code triggers an error, the tool will return an error response, so you do not need to add error handling unless you want to output something more helpful than the raw error.\nIt is not necessary to add comments to code, unless by adding those comments you believe that you can generate better code.\nThis code will run in a container, and you will not be able to use fetch or otherwise interact with the network calls other than through the client you are given.\nAny variables you define won\'t live between successive uses of this call, so make sure to return or log any data you might need later.',
27
22
  inputSchema: { type: 'object', properties: { code: { type: 'string' } } },
28
23
  };
29
-
30
- // Import dynamically to avoid failing at import time in cases where the environment is not well-supported.
31
- const { newDenoHTTPWorker } = await import('@valtown/deno-http-worker');
32
- const { workerPath } = await import('./code-tool-paths.cjs');
33
-
34
- const handler = async (client: Codeqr, args: unknown): Promise<ToolCallResult> => {
35
- const baseURLHostname = new URL(client.baseURL).hostname;
36
- const { code } = args as { code: string };
37
-
38
- const worker = await newDenoHTTPWorker(pathToFileURL(workerPath), {
39
- runFlags: [
40
- `--node-modules-dir=manual`,
41
- `--allow-read=code-tool-worker.mjs,${workerPath.replace(/([\/\\]node_modules)[\/\\].+$/, '$1')}/`,
42
- `--allow-net=${baseURLHostname}`,
43
- // Allow environment variables because instantiating the client will try to read from them,
44
- // even though they are not set.
45
- '--allow-env',
46
- ],
47
- printOutput: true,
48
- spawnOptions: {
49
- cwd: dirname(workerPath),
24
+ const handler = async (_: unknown, args: any): Promise<ToolCallResult> => {
25
+ const code = args.code as string;
26
+
27
+ // this is not required, but passing a Stainless API key for the matching project_name
28
+ // will allow you to run code-mode queries against non-published versions of your SDK.
29
+ const stainlessAPIKey = readEnv('STAINLESS_API_KEY');
30
+ const codeModeEndpoint =
31
+ readEnv('CODE_MODE_ENDPOINT_URL') ?? 'https://api.stainless.com/api/ai/code-tool';
32
+
33
+ const res = await fetch(codeModeEndpoint, {
34
+ method: 'POST',
35
+ headers: {
36
+ ...(stainlessAPIKey && { Authorization: stainlessAPIKey }),
37
+ 'Content-Type': 'application/json',
38
+ client_envs: JSON.stringify({ CODEQR_API_KEY: readEnv('CODEQR_API_KEY') }),
50
39
  },
40
+ body: JSON.stringify({
41
+ project_name: 'codeqr',
42
+ client_opts: {},
43
+ code,
44
+ }),
51
45
  });
52
46
 
53
- try {
54
- const resp = await new Promise<Response>((resolve, reject) => {
55
- worker.addEventListener('exit', (exitCode) => {
56
- reject(new Error(`Worker exited with code ${exitCode}`));
57
- });
58
-
59
- const opts: ClientOptions = {
60
- baseURL: client.baseURL,
61
- apiKey: client.apiKey,
62
- defaultHeaders: {
63
- 'X-Stainless-MCP': 'true',
64
- },
65
- };
66
-
67
- const req = worker.request(
68
- 'http://localhost',
69
- {
70
- headers: {
71
- 'content-type': 'application/json',
72
- },
73
- method: 'POST',
74
- },
75
- (resp) => {
76
- const body: Uint8Array[] = [];
77
- resp.on('error', (err) => {
78
- reject(err);
79
- });
80
- resp.on('data', (chunk) => {
81
- body.push(chunk);
82
- });
83
- resp.on('end', () => {
84
- resolve(
85
- new Response(Buffer.concat(body).toString(), {
86
- status: resp.statusCode ?? 200,
87
- headers: resp.headers as any,
88
- }),
89
- );
90
- });
91
- },
92
- );
93
-
94
- const body = JSON.stringify({
95
- opts,
96
- code,
97
- } satisfies WorkerInput);
98
-
99
- req.write(body, (err) => {
100
- if (err != null) {
101
- reject(err);
102
- }
103
- });
104
-
105
- req.end();
106
- });
107
-
108
- if (resp.status === 200) {
109
- const { result, logLines, errLines } = (await resp.json()) as WorkerSuccess;
110
- const returnOutput: ContentBlock | null =
111
- result == null ? null : (
112
- {
113
- type: 'text',
114
- text: typeof result === 'string' ? result : JSON.stringify(result),
115
- }
116
- );
117
- const logOutput: ContentBlock | null =
118
- logLines.length === 0 ?
119
- null
120
- : {
121
- type: 'text',
122
- text: logLines.join('\n'),
123
- };
124
- const errOutput: ContentBlock | null =
125
- errLines.length === 0 ?
126
- null
127
- : {
128
- type: 'text',
129
- text: 'Error output:\n' + errLines.join('\n'),
130
- };
131
- return {
132
- content: [returnOutput, logOutput, errOutput].filter((block) => block !== null),
133
- };
134
- } else {
135
- const { message, logLines, errLines } = (await resp.json()) as WorkerError;
136
- const messageOutput: ContentBlock | null =
137
- message == null ? null : (
138
- {
139
- type: 'text',
140
- text: message,
141
- }
142
- );
143
- const logOutput: ContentBlock | null =
144
- logLines.length === 0 ?
145
- null
146
- : {
147
- type: 'text',
148
- text: logLines.join('\n'),
149
- };
150
- const errOutput: ContentBlock | null =
151
- errLines.length === 0 ?
152
- null
153
- : {
154
- type: 'text',
155
- text: 'Error output:\n' + errLines.join('\n'),
156
- };
157
- return {
158
- content: [messageOutput, logOutput, errOutput].filter((block) => block !== null),
159
- isError: true,
160
- };
161
- }
162
- } finally {
163
- worker.terminate();
47
+ if (!res.ok) {
48
+ throw new Error(
49
+ `${res.status}: ${
50
+ res.statusText
51
+ } error when trying to contact Code Tool server. Details: ${await res.text()}`,
52
+ );
164
53
  }
54
+
55
+ return asTextContentResult((await res.json()) as WorkerSuccess);
165
56
  };
166
57
 
167
58
  return { metadata, tool, handler };
@@ -46,6 +46,13 @@ export const handler = async (_: unknown, args: Record<string, unknown> | undefi
46
46
  const body = args as any;
47
47
  const query = new URLSearchParams(body).toString();
48
48
  const result = await fetch(`${docsSearchURL}?${query}`);
49
+
50
+ if (!result.ok) {
51
+ throw new Error(
52
+ `${result.status}: ${result.statusText} when using doc search tool. Details: ${await result.text()}`,
53
+ );
54
+ }
55
+
49
56
  return asTextContentResult(await result.json());
50
57
  };
51
58
 
package/src/server.ts CHANGED
@@ -34,7 +34,7 @@ export const newMcpServer = () =>
34
34
  new McpServer(
35
35
  {
36
36
  name: 'codeqr_ts_api',
37
- version: '0.8.0',
37
+ version: '0.9.0',
38
38
  },
39
39
  { capabilities: { tools: {}, logging: {} } },
40
40
  );
@@ -7,37 +7,43 @@ export declare const handler: (client: Codeqr, args: Record<string, unknown> | u
7
7
  declare const _default: {
8
8
  metadata: Metadata;
9
9
  tool: {
10
- [x: string]: unknown;
11
- name: string;
12
10
  inputSchema: {
13
11
  [x: string]: unknown;
14
12
  type: "object";
15
13
  properties?: {
16
- [x: string]: unknown;
14
+ [x: string]: object;
17
15
  } | undefined;
18
16
  required?: string[] | undefined;
19
17
  };
20
- title?: string | undefined;
18
+ name: string;
21
19
  description?: string | undefined;
22
20
  outputSchema?: {
23
21
  [x: string]: unknown;
24
22
  type: "object";
25
23
  properties?: {
26
- [x: string]: unknown;
24
+ [x: string]: object;
27
25
  } | undefined;
28
26
  required?: string[] | undefined;
29
27
  } | undefined;
30
28
  annotations?: {
31
- [x: string]: unknown;
32
29
  title?: string | undefined;
33
30
  readOnlyHint?: boolean | undefined;
34
31
  destructiveHint?: boolean | undefined;
35
32
  idempotentHint?: boolean | undefined;
36
33
  openWorldHint?: boolean | undefined;
37
34
  } | undefined;
35
+ execution?: {
36
+ taskSupport?: "optional" | "required" | "forbidden" | undefined;
37
+ } | undefined;
38
38
  _meta?: {
39
39
  [x: string]: unknown;
40
40
  } | undefined;
41
+ icons?: {
42
+ src: string;
43
+ mimeType?: string | undefined;
44
+ sizes?: string[] | undefined;
45
+ }[] | undefined;
46
+ title?: string | undefined;
41
47
  };
42
48
  handler: (client: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-mcp/tools/types").ToolCallResult>;
43
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-analytics.d.mts","sourceRoot":"","sources":["../../src/tools/analytics/retrieve-analytics.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,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,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
1
+ {"version":3,"file":"retrieve-analytics.d.mts","sourceRoot":"","sources":["../../src/tools/analytics/retrieve-analytics.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,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,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
@@ -7,37 +7,43 @@ export declare const handler: (client: Codeqr, args: Record<string, unknown> | u
7
7
  declare const _default: {
8
8
  metadata: Metadata;
9
9
  tool: {
10
- [x: string]: unknown;
11
- name: string;
12
10
  inputSchema: {
13
11
  [x: string]: unknown;
14
12
  type: "object";
15
13
  properties?: {
16
- [x: string]: unknown;
14
+ [x: string]: object;
17
15
  } | undefined;
18
16
  required?: string[] | undefined;
19
17
  };
20
- title?: string | undefined;
18
+ name: string;
21
19
  description?: string | undefined;
22
20
  outputSchema?: {
23
21
  [x: string]: unknown;
24
22
  type: "object";
25
23
  properties?: {
26
- [x: string]: unknown;
24
+ [x: string]: object;
27
25
  } | undefined;
28
26
  required?: string[] | undefined;
29
27
  } | undefined;
30
28
  annotations?: {
31
- [x: string]: unknown;
32
29
  title?: string | undefined;
33
30
  readOnlyHint?: boolean | undefined;
34
31
  destructiveHint?: boolean | undefined;
35
32
  idempotentHint?: boolean | undefined;
36
33
  openWorldHint?: boolean | undefined;
37
34
  } | undefined;
35
+ execution?: {
36
+ taskSupport?: "optional" | "required" | "forbidden" | undefined;
37
+ } | undefined;
38
38
  _meta?: {
39
39
  [x: string]: unknown;
40
40
  } | undefined;
41
+ icons?: {
42
+ src: string;
43
+ mimeType?: string | undefined;
44
+ sizes?: string[] | undefined;
45
+ }[] | undefined;
46
+ title?: string | undefined;
41
47
  };
42
48
  handler: (client: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-mcp/tools/types").ToolCallResult>;
43
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-analytics.d.ts","sourceRoot":"","sources":["../../src/tools/analytics/retrieve-analytics.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,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,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
1
+ {"version":3,"file":"retrieve-analytics.d.ts","sourceRoot":"","sources":["../../src/tools/analytics/retrieve-analytics.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,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,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
@@ -7,37 +7,43 @@ export declare const handler: (client: Codeqr, args: Record<string, unknown> | u
7
7
  declare const _default: {
8
8
  metadata: Metadata;
9
9
  tool: {
10
- [x: string]: unknown;
11
- name: string;
12
10
  inputSchema: {
13
11
  [x: string]: unknown;
14
12
  type: "object";
15
13
  properties?: {
16
- [x: string]: unknown;
14
+ [x: string]: object;
17
15
  } | undefined;
18
16
  required?: string[] | undefined;
19
17
  };
20
- title?: string | undefined;
18
+ name: string;
21
19
  description?: string | undefined;
22
20
  outputSchema?: {
23
21
  [x: string]: unknown;
24
22
  type: "object";
25
23
  properties?: {
26
- [x: string]: unknown;
24
+ [x: string]: object;
27
25
  } | undefined;
28
26
  required?: string[] | undefined;
29
27
  } | undefined;
30
28
  annotations?: {
31
- [x: string]: unknown;
32
29
  title?: string | undefined;
33
30
  readOnlyHint?: boolean | undefined;
34
31
  destructiveHint?: boolean | undefined;
35
32
  idempotentHint?: boolean | undefined;
36
33
  openWorldHint?: boolean | undefined;
37
34
  } | undefined;
35
+ execution?: {
36
+ taskSupport?: "optional" | "required" | "forbidden" | undefined;
37
+ } | undefined;
38
38
  _meta?: {
39
39
  [x: string]: unknown;
40
40
  } | undefined;
41
+ icons?: {
42
+ src: string;
43
+ mimeType?: string | undefined;
44
+ sizes?: string[] | undefined;
45
+ }[] | undefined;
46
+ title?: string | undefined;
41
47
  };
42
48
  handler: (client: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-mcp/tools/types").ToolCallResult>;
43
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"create-domains.d.mts","sourceRoot":"","sources":["../../src/tools/domains/create-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA2ClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
1
+ {"version":3,"file":"create-domains.d.mts","sourceRoot":"","sources":["../../src/tools/domains/create-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA2ClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
@@ -7,37 +7,43 @@ export declare const handler: (client: Codeqr, args: Record<string, unknown> | u
7
7
  declare const _default: {
8
8
  metadata: Metadata;
9
9
  tool: {
10
- [x: string]: unknown;
11
- name: string;
12
10
  inputSchema: {
13
11
  [x: string]: unknown;
14
12
  type: "object";
15
13
  properties?: {
16
- [x: string]: unknown;
14
+ [x: string]: object;
17
15
  } | undefined;
18
16
  required?: string[] | undefined;
19
17
  };
20
- title?: string | undefined;
18
+ name: string;
21
19
  description?: string | undefined;
22
20
  outputSchema?: {
23
21
  [x: string]: unknown;
24
22
  type: "object";
25
23
  properties?: {
26
- [x: string]: unknown;
24
+ [x: string]: object;
27
25
  } | undefined;
28
26
  required?: string[] | undefined;
29
27
  } | undefined;
30
28
  annotations?: {
31
- [x: string]: unknown;
32
29
  title?: string | undefined;
33
30
  readOnlyHint?: boolean | undefined;
34
31
  destructiveHint?: boolean | undefined;
35
32
  idempotentHint?: boolean | undefined;
36
33
  openWorldHint?: boolean | undefined;
37
34
  } | undefined;
35
+ execution?: {
36
+ taskSupport?: "optional" | "required" | "forbidden" | undefined;
37
+ } | undefined;
38
38
  _meta?: {
39
39
  [x: string]: unknown;
40
40
  } | undefined;
41
+ icons?: {
42
+ src: string;
43
+ mimeType?: string | undefined;
44
+ sizes?: string[] | undefined;
45
+ }[] | undefined;
46
+ title?: string | undefined;
41
47
  };
42
48
  handler: (client: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-mcp/tools/types").ToolCallResult>;
43
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"create-domains.d.ts","sourceRoot":"","sources":["../../src/tools/domains/create-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA2ClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
1
+ {"version":3,"file":"create-domains.d.ts","sourceRoot":"","sources":["../../src/tools/domains/create-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA2ClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
@@ -7,37 +7,43 @@ export declare const handler: (client: Codeqr, args: Record<string, unknown> | u
7
7
  declare const _default: {
8
8
  metadata: Metadata;
9
9
  tool: {
10
- [x: string]: unknown;
11
- name: string;
12
10
  inputSchema: {
13
11
  [x: string]: unknown;
14
12
  type: "object";
15
13
  properties?: {
16
- [x: string]: unknown;
14
+ [x: string]: object;
17
15
  } | undefined;
18
16
  required?: string[] | undefined;
19
17
  };
20
- title?: string | undefined;
18
+ name: string;
21
19
  description?: string | undefined;
22
20
  outputSchema?: {
23
21
  [x: string]: unknown;
24
22
  type: "object";
25
23
  properties?: {
26
- [x: string]: unknown;
24
+ [x: string]: object;
27
25
  } | undefined;
28
26
  required?: string[] | undefined;
29
27
  } | undefined;
30
28
  annotations?: {
31
- [x: string]: unknown;
32
29
  title?: string | undefined;
33
30
  readOnlyHint?: boolean | undefined;
34
31
  destructiveHint?: boolean | undefined;
35
32
  idempotentHint?: boolean | undefined;
36
33
  openWorldHint?: boolean | undefined;
37
34
  } | undefined;
35
+ execution?: {
36
+ taskSupport?: "optional" | "required" | "forbidden" | undefined;
37
+ } | undefined;
38
38
  _meta?: {
39
39
  [x: string]: unknown;
40
40
  } | undefined;
41
+ icons?: {
42
+ src: string;
43
+ mimeType?: string | undefined;
44
+ sizes?: string[] | undefined;
45
+ }[] | undefined;
46
+ title?: string | undefined;
41
47
  };
42
48
  handler: (client: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-mcp/tools/types").ToolCallResult>;
43
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-domains.d.mts","sourceRoot":"","sources":["../../src/tools/domains/delete-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAuBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
1
+ {"version":3,"file":"delete-domains.d.mts","sourceRoot":"","sources":["../../src/tools/domains/delete-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAuBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
@@ -7,37 +7,43 @@ export declare const handler: (client: Codeqr, args: Record<string, unknown> | u
7
7
  declare const _default: {
8
8
  metadata: Metadata;
9
9
  tool: {
10
- [x: string]: unknown;
11
- name: string;
12
10
  inputSchema: {
13
11
  [x: string]: unknown;
14
12
  type: "object";
15
13
  properties?: {
16
- [x: string]: unknown;
14
+ [x: string]: object;
17
15
  } | undefined;
18
16
  required?: string[] | undefined;
19
17
  };
20
- title?: string | undefined;
18
+ name: string;
21
19
  description?: string | undefined;
22
20
  outputSchema?: {
23
21
  [x: string]: unknown;
24
22
  type: "object";
25
23
  properties?: {
26
- [x: string]: unknown;
24
+ [x: string]: object;
27
25
  } | undefined;
28
26
  required?: string[] | undefined;
29
27
  } | undefined;
30
28
  annotations?: {
31
- [x: string]: unknown;
32
29
  title?: string | undefined;
33
30
  readOnlyHint?: boolean | undefined;
34
31
  destructiveHint?: boolean | undefined;
35
32
  idempotentHint?: boolean | undefined;
36
33
  openWorldHint?: boolean | undefined;
37
34
  } | undefined;
35
+ execution?: {
36
+ taskSupport?: "optional" | "required" | "forbidden" | undefined;
37
+ } | undefined;
38
38
  _meta?: {
39
39
  [x: string]: unknown;
40
40
  } | undefined;
41
+ icons?: {
42
+ src: string;
43
+ mimeType?: string | undefined;
44
+ sizes?: string[] | undefined;
45
+ }[] | undefined;
46
+ title?: string | undefined;
41
47
  };
42
48
  handler: (client: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-mcp/tools/types").ToolCallResult>;
43
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-domains.d.ts","sourceRoot":"","sources":["../../src/tools/domains/delete-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAuBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
1
+ {"version":3,"file":"delete-domains.d.ts","sourceRoot":"","sources":["../../src/tools/domains/delete-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAuBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}