@henrylabs/mcp 0.13.0 → 0.15.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 (122) hide show
  1. package/code-tool-types.d.mts +2 -0
  2. package/code-tool-types.d.mts.map +1 -1
  3. package/code-tool-types.d.ts +2 -0
  4. package/code-tool-types.d.ts.map +1 -1
  5. package/code-tool.d.mts +44 -2
  6. package/code-tool.d.mts.map +1 -1
  7. package/code-tool.d.ts +44 -2
  8. package/code-tool.d.ts.map +1 -1
  9. package/code-tool.js +22 -129
  10. package/code-tool.js.map +1 -1
  11. package/code-tool.mjs +22 -96
  12. package/code-tool.mjs.map +1 -1
  13. package/docs-search-tool.d.mts +12 -6
  14. package/docs-search-tool.d.mts.map +1 -1
  15. package/docs-search-tool.d.ts +12 -6
  16. package/docs-search-tool.d.ts.map +1 -1
  17. package/docs-search-tool.js +10 -2
  18. package/docs-search-tool.js.map +1 -1
  19. package/docs-search-tool.mjs +10 -2
  20. package/docs-search-tool.mjs.map +1 -1
  21. package/package.json +3 -19
  22. package/server.js +1 -1
  23. package/server.mjs +1 -1
  24. package/src/code-tool-types.ts +5 -1
  25. package/src/code-tool.ts +32 -121
  26. package/src/docs-search-tool.ts +14 -3
  27. package/src/server.ts +1 -1
  28. package/src/tools/cart/create-cart-checkout.ts +5 -1
  29. package/src/tools/cart/items/add-cart-items.ts +1 -1
  30. package/src/tools/cart/items/clear-cart-items.ts +1 -1
  31. package/src/tools/cart/items/list-cart-items.ts +1 -1
  32. package/src/tools/cart/items/remove-cart-items.ts +1 -1
  33. package/src/tools/orders/retrieve-status-orders.ts +1 -1
  34. package/src/tools/products/retrieve-product-details.ts +9 -2
  35. package/src/tools/products/search-products.ts +1 -1
  36. package/src/tools/wallet/collect-payment-details.ts +1 -1
  37. package/tools/cart/create-cart-checkout.d.mts +12 -6
  38. package/tools/cart/create-cart-checkout.d.mts.map +1 -1
  39. package/tools/cart/create-cart-checkout.d.ts +12 -6
  40. package/tools/cart/create-cart-checkout.d.ts.map +1 -1
  41. package/tools/cart/create-cart-checkout.js +9 -1
  42. package/tools/cart/create-cart-checkout.js.map +1 -1
  43. package/tools/cart/create-cart-checkout.mjs +6 -1
  44. package/tools/cart/create-cart-checkout.mjs.map +1 -1
  45. package/tools/cart/items/add-cart-items.d.mts +12 -6
  46. package/tools/cart/items/add-cart-items.d.mts.map +1 -1
  47. package/tools/cart/items/add-cart-items.d.ts +12 -6
  48. package/tools/cart/items/add-cart-items.d.ts.map +1 -1
  49. package/tools/cart/items/add-cart-items.js +5 -1
  50. package/tools/cart/items/add-cart-items.js.map +1 -1
  51. package/tools/cart/items/add-cart-items.mjs +2 -1
  52. package/tools/cart/items/add-cart-items.mjs.map +1 -1
  53. package/tools/cart/items/clear-cart-items.d.mts +12 -6
  54. package/tools/cart/items/clear-cart-items.d.mts.map +1 -1
  55. package/tools/cart/items/clear-cart-items.d.ts +12 -6
  56. package/tools/cart/items/clear-cart-items.d.ts.map +1 -1
  57. package/tools/cart/items/clear-cart-items.js +5 -1
  58. package/tools/cart/items/clear-cart-items.js.map +1 -1
  59. package/tools/cart/items/clear-cart-items.mjs +2 -1
  60. package/tools/cart/items/clear-cart-items.mjs.map +1 -1
  61. package/tools/cart/items/list-cart-items.d.mts +12 -6
  62. package/tools/cart/items/list-cart-items.d.mts.map +1 -1
  63. package/tools/cart/items/list-cart-items.d.ts +12 -6
  64. package/tools/cart/items/list-cart-items.d.ts.map +1 -1
  65. package/tools/cart/items/list-cart-items.js +5 -1
  66. package/tools/cart/items/list-cart-items.js.map +1 -1
  67. package/tools/cart/items/list-cart-items.mjs +2 -1
  68. package/tools/cart/items/list-cart-items.mjs.map +1 -1
  69. package/tools/cart/items/remove-cart-items.d.mts +12 -6
  70. package/tools/cart/items/remove-cart-items.d.mts.map +1 -1
  71. package/tools/cart/items/remove-cart-items.d.ts +12 -6
  72. package/tools/cart/items/remove-cart-items.d.ts.map +1 -1
  73. package/tools/cart/items/remove-cart-items.js +5 -1
  74. package/tools/cart/items/remove-cart-items.js.map +1 -1
  75. package/tools/cart/items/remove-cart-items.mjs +2 -1
  76. package/tools/cart/items/remove-cart-items.mjs.map +1 -1
  77. package/tools/orders/retrieve-status-orders.d.mts +12 -6
  78. package/tools/orders/retrieve-status-orders.d.mts.map +1 -1
  79. package/tools/orders/retrieve-status-orders.d.ts +12 -6
  80. package/tools/orders/retrieve-status-orders.d.ts.map +1 -1
  81. package/tools/orders/retrieve-status-orders.js +5 -1
  82. package/tools/orders/retrieve-status-orders.js.map +1 -1
  83. package/tools/orders/retrieve-status-orders.mjs +2 -1
  84. package/tools/orders/retrieve-status-orders.mjs.map +1 -1
  85. package/tools/products/retrieve-product-details.d.mts +12 -6
  86. package/tools/products/retrieve-product-details.d.mts.map +1 -1
  87. package/tools/products/retrieve-product-details.d.ts +12 -6
  88. package/tools/products/retrieve-product-details.d.ts.map +1 -1
  89. package/tools/products/retrieve-product-details.js +13 -1
  90. package/tools/products/retrieve-product-details.js.map +1 -1
  91. package/tools/products/retrieve-product-details.mjs +11 -2
  92. package/tools/products/retrieve-product-details.mjs.map +1 -1
  93. package/tools/products/search-products.d.mts +12 -6
  94. package/tools/products/search-products.d.mts.map +1 -1
  95. package/tools/products/search-products.d.ts +12 -6
  96. package/tools/products/search-products.d.ts.map +1 -1
  97. package/tools/products/search-products.js +5 -1
  98. package/tools/products/search-products.js.map +1 -1
  99. package/tools/products/search-products.mjs +2 -1
  100. package/tools/products/search-products.mjs.map +1 -1
  101. package/tools/wallet/collect-payment-details.d.mts +12 -6
  102. package/tools/wallet/collect-payment-details.d.mts.map +1 -1
  103. package/tools/wallet/collect-payment-details.d.ts +12 -6
  104. package/tools/wallet/collect-payment-details.d.ts.map +1 -1
  105. package/tools/wallet/collect-payment-details.js +5 -1
  106. package/tools/wallet/collect-payment-details.js.map +1 -1
  107. package/tools/wallet/collect-payment-details.mjs +2 -1
  108. package/tools/wallet/collect-payment-details.mjs.map +1 -1
  109. package/code-tool-paths.cjs +0 -6
  110. package/code-tool-paths.cjs.map +0 -1
  111. package/code-tool-paths.d.cts +0 -2
  112. package/code-tool-paths.d.cts.map +0 -1
  113. package/code-tool-worker.d.mts +0 -5
  114. package/code-tool-worker.d.mts.map +0 -1
  115. package/code-tool-worker.d.ts +0 -5
  116. package/code-tool-worker.d.ts.map +0 -1
  117. package/code-tool-worker.js +0 -162
  118. package/code-tool-worker.js.map +0 -1
  119. package/code-tool-worker.mjs +0 -157
  120. package/code-tool-worker.mjs.map +0 -1
  121. package/src/code-tool-paths.cts +0 -3
  122. package/src/code-tool-worker.ts +0 -208
@@ -11,7 +11,7 @@ exports.metadata = {
11
11
  };
12
12
  exports.tool = {
13
13
  name: 'search_docs',
14
- description: 'Search for documentation for how to use the client to interact with the API.\nThe tool will return an array of Markdown-formatted documentation pages.',
14
+ description: 'Search for documentation for how to use the client to interact with the API.',
15
15
  inputSchema: {
16
16
  type: 'object',
17
17
  properties: {
@@ -22,7 +22,12 @@ exports.tool = {
22
22
  language: {
23
23
  type: 'string',
24
24
  description: 'The language for the SDK to search for.',
25
- enum: ['http', 'python', 'go', 'typescript', 'terraform', 'ruby', 'java', 'kotlin'],
25
+ enum: ['http', 'python', 'go', 'typescript', 'javascript', 'terraform', 'ruby', 'java', 'kotlin'],
26
+ },
27
+ detail: {
28
+ type: 'string',
29
+ description: 'The amount of detail to return.',
30
+ enum: ['default', 'verbose'],
26
31
  },
27
32
  },
28
33
  required: ['query', 'language'],
@@ -36,6 +41,9 @@ const handler = async (_, args) => {
36
41
  const body = args;
37
42
  const query = new URLSearchParams(body).toString();
38
43
  const result = await fetch(`${docsSearchURL}?${query}`);
44
+ if (!result.ok) {
45
+ throw new Error(`${result.status}: ${result.statusText} when using doc search tool. Details: ${await result.text()}`);
46
+ }
39
47
  return (0, types_1.asTextContentResult)(await result.json());
40
48
  };
41
49
  exports.handler = handler;
@@ -1 +1 @@
1
- {"version":3,"file":"docs-search-tool.js","sourceRoot":"","sources":["src/docs-search-tool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,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,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC,CAAC;AAZW,QAAA,OAAO,WAYlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -8,7 +8,7 @@ export const metadata = {
8
8
  };
9
9
  export const tool = {
10
10
  name: 'search_docs',
11
- description: 'Search for documentation for how to use the client to interact with the API.\nThe tool will return an array of Markdown-formatted documentation pages.',
11
+ description: 'Search for documentation for how to use the client to interact with the API.',
12
12
  inputSchema: {
13
13
  type: 'object',
14
14
  properties: {
@@ -19,7 +19,12 @@ export const tool = {
19
19
  language: {
20
20
  type: 'string',
21
21
  description: 'The language for the SDK to search for.',
22
- enum: ['http', 'python', 'go', 'typescript', 'terraform', 'ruby', 'java', 'kotlin'],
22
+ enum: ['http', 'python', 'go', 'typescript', 'javascript', 'terraform', 'ruby', 'java', 'kotlin'],
23
+ },
24
+ detail: {
25
+ type: 'string',
26
+ description: 'The amount of detail to return.',
27
+ enum: ['default', 'verbose'],
23
28
  },
24
29
  },
25
30
  required: ['query', 'language'],
@@ -33,6 +38,9 @@ export const handler = async (_, args) => {
33
38
  const body = args;
34
39
  const query = new URLSearchParams(body).toString();
35
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
+ }
36
44
  return asTextContentResult(await result.json());
37
45
  };
38
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,EACT,wJAAwJ;IAC1J,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,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC;aACpF;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,8DAA8D,CAAC;AAEnG,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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E;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": "@henrylabs/mcp",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "description": "The official MCP Server for the Henry SDK API",
5
5
  "author": "Henry SDK <lawrence@henry.social>",
6
6
  "types": "./index.d.ts",
@@ -27,9 +27,9 @@
27
27
  "fix": "eslint --fix --ext ts,js ."
28
28
  },
29
29
  "dependencies": {
30
- "@henrylabs/sdk": "^0.13.0",
30
+ "@henrylabs/sdk": "^0.15.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: 'henrylabs_sdk_api',
25
- version: '0.13.0',
25
+ version: '0.15.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: 'henrylabs_sdk_api',
14
- version: '0.13.0',
14
+ version: '0.15.0',
15
15
  }, { capabilities: { tools: {}, logging: {} } });
16
16
  // Create server instance
17
17
  export const server = newMcpServer();
@@ -11,4 +11,8 @@ export type WorkerSuccess = {
11
11
  logLines: string[];
12
12
  errLines: string[];
13
13
  };
14
- export type WorkerError = { message: string | undefined };
14
+ export type WorkerError = {
15
+ message: string | undefined;
16
+ logLines: string[];
17
+ errLines: string[];
18
+ };
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 HenrySDK, { ClientOptions } from '@henrylabs/sdk';
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,129 +13,45 @@ 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: HenrySDK, 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({ HENRY_SDK_API_KEY: readEnv('HENRY_SDK_API_KEY') }),
50
39
  },
40
+ body: JSON.stringify({
41
+ project_name: 'henry-sdk',
42
+ code,
43
+ }),
51
44
  });
52
45
 
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 } = (await resp.json()) as WorkerError;
136
- return {
137
- content: message == null ? [] : [{ type: 'text', text: message }],
138
- isError: true,
139
- };
140
- }
141
- } finally {
142
- worker.terminate();
46
+ if (!res.ok) {
47
+ throw new Error(
48
+ `${res.status}: ${
49
+ res.statusText
50
+ } error when trying to contact Code Tool server. Details: ${await res.text()}`,
51
+ );
143
52
  }
53
+
54
+ return asTextContentResult((await res.json()) as WorkerSuccess);
144
55
  };
145
56
 
146
57
  return { metadata, tool, handler };
@@ -13,8 +13,7 @@ export const metadata: Metadata = {
13
13
 
14
14
  export const tool: Tool = {
15
15
  name: 'search_docs',
16
- description:
17
- 'Search for documentation for how to use the client to interact with the API.\nThe tool will return an array of Markdown-formatted documentation pages.',
16
+ description: 'Search for documentation for how to use the client to interact with the API.',
18
17
  inputSchema: {
19
18
  type: 'object',
20
19
  properties: {
@@ -25,7 +24,12 @@ export const tool: Tool = {
25
24
  language: {
26
25
  type: 'string',
27
26
  description: 'The language for the SDK to search for.',
28
- enum: ['http', 'python', 'go', 'typescript', 'terraform', 'ruby', 'java', 'kotlin'],
27
+ enum: ['http', 'python', 'go', 'typescript', 'javascript', 'terraform', 'ruby', 'java', 'kotlin'],
28
+ },
29
+ detail: {
30
+ type: 'string',
31
+ description: 'The amount of detail to return.',
32
+ enum: ['default', 'verbose'],
29
33
  },
30
34
  },
31
35
  required: ['query', 'language'],
@@ -42,6 +46,13 @@ export const handler = async (_: unknown, args: Record<string, unknown> | undefi
42
46
  const body = args as any;
43
47
  const query = new URLSearchParams(body).toString();
44
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
+
45
56
  return asTextContentResult(await result.json());
46
57
  };
47
58
 
package/src/server.ts CHANGED
@@ -34,7 +34,7 @@ export const newMcpServer = () =>
34
34
  new McpServer(
35
35
  {
36
36
  name: 'henrylabs_sdk_api',
37
- version: '0.13.0',
37
+ version: '0.15.0',
38
38
  },
39
39
  { capabilities: { tools: {}, logging: {} } },
40
40
  );
@@ -29,6 +29,10 @@ export const tool: Tool = {
29
29
  type: 'boolean',
30
30
  description: 'Whether authentication is required for checkout (default: true)',
31
31
  },
32
+ region: {
33
+ type: 'string',
34
+ description: 'ISO 3166-1 alpha-2 country code (2-character lowercase string)',
35
+ },
32
36
  jq_filter: {
33
37
  type: 'string',
34
38
  title: 'jq Filter',
@@ -46,7 +50,7 @@ export const handler = async (client: HenrySDK, args: Record<string, unknown> |
46
50
  try {
47
51
  return asTextContentResult(await maybeFilter(jq_filter, await client.cart.createCheckout(body)));
48
52
  } catch (error) {
49
- if (isJqError(error)) {
53
+ if (error instanceof HenrySDK.APIError || isJqError(error)) {
50
54
  return asErrorResult(error.message);
51
55
  }
52
56
  throw error;
@@ -90,7 +90,7 @@ export const handler = async (client: HenrySDK, args: Record<string, unknown> |
90
90
  try {
91
91
  return asTextContentResult(await maybeFilter(jq_filter, await client.cart.items.add(body)));
92
92
  } catch (error) {
93
- if (isJqError(error)) {
93
+ if (error instanceof HenrySDK.APIError || isJqError(error)) {
94
94
  return asErrorResult(error.message);
95
95
  }
96
96
  throw error;
@@ -44,7 +44,7 @@ export const handler = async (client: HenrySDK, args: Record<string, unknown> |
44
44
  try {
45
45
  return asTextContentResult(await maybeFilter(jq_filter, await client.cart.items.clear(body)));
46
46
  } catch (error) {
47
- if (isJqError(error)) {
47
+ if (error instanceof HenrySDK.APIError || isJqError(error)) {
48
48
  return asErrorResult(error.message);
49
49
  }
50
50
  throw error;
@@ -44,7 +44,7 @@ export const handler = async (client: HenrySDK, args: Record<string, unknown> |
44
44
  try {
45
45
  return asTextContentResult(await maybeFilter(jq_filter, await client.cart.items.list(body)));
46
46
  } catch (error) {
47
- if (isJqError(error)) {
47
+ if (error instanceof HenrySDK.APIError || isJqError(error)) {
48
48
  return asErrorResult(error.message);
49
49
  }
50
50
  throw error;
@@ -47,7 +47,7 @@ export const handler = async (client: HenrySDK, args: Record<string, unknown> |
47
47
  try {
48
48
  return asTextContentResult(await maybeFilter(jq_filter, await client.cart.items.remove(productId, body)));
49
49
  } catch (error) {
50
- if (isJqError(error)) {
50
+ if (error instanceof HenrySDK.APIError || isJqError(error)) {
51
51
  return asErrorResult(error.message);
52
52
  }
53
53
  throw error;
@@ -44,7 +44,7 @@ export const handler = async (client: HenrySDK, args: Record<string, unknown> |
44
44
  try {
45
45
  return asTextContentResult(await maybeFilter(jq_filter, await client.orders.retrieveStatus(orderId)));
46
46
  } catch (error) {
47
- if (isJqError(error)) {
47
+ if (error instanceof HenrySDK.APIError || isJqError(error)) {
48
48
  return asErrorResult(error.message);
49
49
  }
50
50
  throw error;
@@ -1,6 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { Metadata, asTextContentResult } from '@henrylabs/mcp/tools/types';
3
+ import { Metadata, asErrorResult, asTextContentResult } from '@henrylabs/mcp/tools/types';
4
4
 
5
5
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
6
  import HenrySDK from '@henrylabs/sdk';
@@ -35,7 +35,14 @@ export const tool: Tool = {
35
35
 
36
36
  export const handler = async (client: HenrySDK, args: Record<string, unknown> | undefined) => {
37
37
  const body = args as any;
38
- return asTextContentResult(await client.products.retrieveDetails(body));
38
+ try {
39
+ return asTextContentResult(await client.products.retrieveDetails(body));
40
+ } catch (error) {
41
+ if (error instanceof HenrySDK.APIError) {
42
+ return asErrorResult(error.message);
43
+ }
44
+ throw error;
45
+ }
39
46
  };
40
47
 
41
48
  export default { metadata, tool, handler };
@@ -100,7 +100,7 @@ export const handler = async (client: HenrySDK, args: Record<string, unknown> |
100
100
  try {
101
101
  return asTextContentResult(await maybeFilter(jq_filter, await client.products.search(body)));
102
102
  } catch (error) {
103
- if (isJqError(error)) {
103
+ if (error instanceof HenrySDK.APIError || isJqError(error)) {
104
104
  return asErrorResult(error.message);
105
105
  }
106
106
  throw error;
@@ -46,7 +46,7 @@ export const handler = async (client: HenrySDK, args: Record<string, unknown> |
46
46
  try {
47
47
  return asTextContentResult(await maybeFilter(jq_filter, await client.wallet.createCardCollection(body)));
48
48
  } catch (error) {
49
- if (isJqError(error)) {
49
+ if (error instanceof HenrySDK.APIError || isJqError(error)) {
50
50
  return asErrorResult(error.message);
51
51
  }
52
52
  throw error;
@@ -7,37 +7,43 @@ export declare const handler: (client: HenrySDK, args: Record<string, unknown> |
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: HenrySDK, args: Record<string, unknown> | undefined) => Promise<import("@henrylabs/mcp/tools/types").ToolCallResult>;
43
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"create-cart-checkout.d.mts","sourceRoot":"","sources":["../../src/tools/cart/create-cart-checkout.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,gBAAgB;AAErC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAwBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYzF,wBAA2C"}
1
+ {"version":3,"file":"create-cart-checkout.d.mts","sourceRoot":"","sources":["../../src/tools/cart/create-cart-checkout.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,gBAAgB;AAErC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA4BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYzF,wBAA2C"}
@@ -7,37 +7,43 @@ export declare const handler: (client: HenrySDK, args: Record<string, unknown> |
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: HenrySDK, args: Record<string, unknown> | undefined) => Promise<import("@henrylabs/mcp/tools/types").ToolCallResult>;
43
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"create-cart-checkout.d.ts","sourceRoot":"","sources":["../../src/tools/cart/create-cart-checkout.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,gBAAgB;AAErC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAwBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYzF,wBAA2C"}
1
+ {"version":3,"file":"create-cart-checkout.d.ts","sourceRoot":"","sources":["../../src/tools/cart/create-cart-checkout.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,gBAAgB;AAErC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA4BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYzF,wBAA2C"}