brand.dev-mcp 0.1.0-alpha.9 → 0.1.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/README.md +1 -2
  2. package/filtering.d.mts +2 -0
  3. package/filtering.d.mts.map +1 -0
  4. package/filtering.d.ts +2 -0
  5. package/filtering.d.ts.map +1 -0
  6. package/filtering.js +21 -0
  7. package/filtering.js.map +1 -0
  8. package/filtering.mjs +14 -0
  9. package/filtering.mjs.map +1 -0
  10. package/package.json +13 -2
  11. package/server.d.mts.map +1 -1
  12. package/server.d.ts.map +1 -1
  13. package/server.js +2 -6
  14. package/server.js.map +1 -1
  15. package/server.mjs +2 -6
  16. package/server.mjs.map +1 -1
  17. package/src/filtering.ts +15 -0
  18. package/src/server.ts +2 -6
  19. package/src/tools/brand/ai-query-brand.ts +12 -5
  20. package/src/tools/brand/identify-from-transaction-brand.ts +14 -4
  21. package/src/tools/brand/prefetch-brand.ts +12 -4
  22. package/src/tools/brand/retrieve-brand.ts +15 -4
  23. package/src/tools/brand/retrieve-by-ticker-brand.ts +15 -4
  24. package/src/tools/brand/retrieve-naics-brand.ts +15 -4
  25. package/src/tools/brand/retrieve-simplified-brand.ts +14 -4
  26. package/src/tools/brand/screenshot-brand.ts +14 -4
  27. package/src/tools/brand/styleguide-brand.ts +6 -3
  28. package/src/tools/index.ts +0 -2
  29. package/src/tools/types.ts +1 -1
  30. package/tools/brand/ai-query-brand.d.mts +1 -1
  31. package/tools/brand/ai-query-brand.d.mts.map +1 -1
  32. package/tools/brand/ai-query-brand.d.ts +1 -1
  33. package/tools/brand/ai-query-brand.d.ts.map +1 -1
  34. package/tools/brand/ai-query-brand.js +10 -3
  35. package/tools/brand/ai-query-brand.js.map +1 -1
  36. package/tools/brand/ai-query-brand.mjs +10 -3
  37. package/tools/brand/ai-query-brand.mjs.map +1 -1
  38. package/tools/brand/identify-from-transaction-brand.d.mts +1 -1
  39. package/tools/brand/identify-from-transaction-brand.d.mts.map +1 -1
  40. package/tools/brand/identify-from-transaction-brand.d.ts +1 -1
  41. package/tools/brand/identify-from-transaction-brand.d.ts.map +1 -1
  42. package/tools/brand/identify-from-transaction-brand.js +12 -2
  43. package/tools/brand/identify-from-transaction-brand.js.map +1 -1
  44. package/tools/brand/identify-from-transaction-brand.mjs +12 -2
  45. package/tools/brand/identify-from-transaction-brand.mjs.map +1 -1
  46. package/tools/brand/prefetch-brand.d.mts +1 -1
  47. package/tools/brand/prefetch-brand.d.mts.map +1 -1
  48. package/tools/brand/prefetch-brand.d.ts +1 -1
  49. package/tools/brand/prefetch-brand.d.ts.map +1 -1
  50. package/tools/brand/prefetch-brand.js +10 -2
  51. package/tools/brand/prefetch-brand.js.map +1 -1
  52. package/tools/brand/prefetch-brand.mjs +10 -2
  53. package/tools/brand/prefetch-brand.mjs.map +1 -1
  54. package/tools/brand/retrieve-brand.d.mts +1 -1
  55. package/tools/brand/retrieve-brand.d.mts.map +1 -1
  56. package/tools/brand/retrieve-brand.d.ts +1 -1
  57. package/tools/brand/retrieve-brand.d.ts.map +1 -1
  58. package/tools/brand/retrieve-brand.js +12 -2
  59. package/tools/brand/retrieve-brand.js.map +1 -1
  60. package/tools/brand/retrieve-brand.mjs +12 -2
  61. package/tools/brand/retrieve-brand.mjs.map +1 -1
  62. package/tools/brand/retrieve-by-ticker-brand.d.mts +1 -1
  63. package/tools/brand/retrieve-by-ticker-brand.d.mts.map +1 -1
  64. package/tools/brand/retrieve-by-ticker-brand.d.ts +1 -1
  65. package/tools/brand/retrieve-by-ticker-brand.d.ts.map +1 -1
  66. package/tools/brand/retrieve-by-ticker-brand.js +12 -2
  67. package/tools/brand/retrieve-by-ticker-brand.js.map +1 -1
  68. package/tools/brand/retrieve-by-ticker-brand.mjs +12 -2
  69. package/tools/brand/retrieve-by-ticker-brand.mjs.map +1 -1
  70. package/tools/brand/retrieve-naics-brand.d.mts +1 -1
  71. package/tools/brand/retrieve-naics-brand.d.mts.map +1 -1
  72. package/tools/brand/retrieve-naics-brand.d.ts +1 -1
  73. package/tools/brand/retrieve-naics-brand.d.ts.map +1 -1
  74. package/tools/brand/retrieve-naics-brand.js +12 -2
  75. package/tools/brand/retrieve-naics-brand.js.map +1 -1
  76. package/tools/brand/retrieve-naics-brand.mjs +12 -2
  77. package/tools/brand/retrieve-naics-brand.mjs.map +1 -1
  78. package/tools/brand/retrieve-simplified-brand.d.mts +1 -1
  79. package/tools/brand/retrieve-simplified-brand.d.mts.map +1 -1
  80. package/tools/brand/retrieve-simplified-brand.d.ts +1 -1
  81. package/tools/brand/retrieve-simplified-brand.d.ts.map +1 -1
  82. package/tools/brand/retrieve-simplified-brand.js +12 -2
  83. package/tools/brand/retrieve-simplified-brand.js.map +1 -1
  84. package/tools/brand/retrieve-simplified-brand.mjs +12 -2
  85. package/tools/brand/retrieve-simplified-brand.mjs.map +1 -1
  86. package/tools/brand/screenshot-brand.d.mts +1 -1
  87. package/tools/brand/screenshot-brand.d.mts.map +1 -1
  88. package/tools/brand/screenshot-brand.d.ts +1 -1
  89. package/tools/brand/screenshot-brand.d.ts.map +1 -1
  90. package/tools/brand/screenshot-brand.js +12 -2
  91. package/tools/brand/screenshot-brand.js.map +1 -1
  92. package/tools/brand/screenshot-brand.mjs +12 -2
  93. package/tools/brand/screenshot-brand.mjs.map +1 -1
  94. package/tools/brand/styleguide-brand.d.mts +1 -1
  95. package/tools/brand/styleguide-brand.d.mts.map +1 -1
  96. package/tools/brand/styleguide-brand.d.ts +1 -1
  97. package/tools/brand/styleguide-brand.d.ts.map +1 -1
  98. package/tools/brand/styleguide-brand.js +5 -1
  99. package/tools/brand/styleguide-brand.js.map +1 -1
  100. package/tools/brand/styleguide-brand.mjs +5 -1
  101. package/tools/brand/styleguide-brand.mjs.map +1 -1
  102. package/tools/index.d.mts.map +1 -1
  103. package/tools/index.d.ts.map +1 -1
  104. package/tools/index.js +0 -2
  105. package/tools/index.js.map +1 -1
  106. package/tools/index.mjs +0 -2
  107. package/tools/index.mjs.map +1 -1
  108. package/tools/types.d.mts +1 -1
  109. package/tools/types.d.mts.map +1 -1
  110. package/tools/types.d.ts +1 -1
  111. package/tools/types.d.ts.map +1 -1
  112. package/tools/types.js.map +1 -1
  113. package/tools/types.mjs.map +1 -1
  114. package/src/tools/brand/search-brand.ts +0 -41
  115. package/tools/brand/search-brand.d.mts +0 -45
  116. package/tools/brand/search-brand.d.mts.map +0 -1
  117. package/tools/brand/search-brand.d.ts +0 -45
  118. package/tools/brand/search-brand.d.ts.map +0 -1
  119. package/tools/brand/search-brand.js +0 -36
  120. package/tools/brand/search-brand.js.map +0 -1
  121. package/tools/brand/search-brand.mjs +0 -32
  122. package/tools/brand/search-brand.mjs.map +0 -1
@@ -1,4 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { maybeFilter } from 'brand.dev-mcp/filtering';
2
3
  import { asTextContentResult } from 'brand.dev-mcp/tools/types';
3
4
  export const metadata = {
4
5
  resource: 'brand',
@@ -9,7 +10,7 @@ export const metadata = {
9
10
  };
10
11
  export const tool = {
11
12
  name: 'retrieve_simplified_brand',
12
- description: 'Returns a simplified version of brand data containing only essential information: domain, title, colors, logos, and backdrops. This endpoint is optimized for faster responses and reduced data transfer.',
13
+ description: "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\nReturns a simplified version of brand data containing only essential information: domain, title, colors, logos, and backdrops. This endpoint is optimized for faster responses and reduced data transfer.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n brand: {\n type: 'object',\n description: 'Simplified brand information',\n properties: {\n backdrops: {\n type: 'array',\n description: 'An array of backdrop images for the brand',\n items: {\n type: 'object',\n properties: {\n colors: {\n type: 'array',\n description: 'Array of colors in the backdrop image',\n items: {\n type: 'object',\n properties: {\n hex: {\n type: 'string',\n description: 'Color in hexadecimal format'\n },\n name: {\n type: 'string',\n description: 'Name of the color'\n }\n }\n }\n },\n resolution: {\n type: 'object',\n description: 'Resolution of the backdrop image',\n properties: {\n aspect_ratio: {\n type: 'number',\n description: 'Aspect ratio of the image (width/height)'\n },\n height: {\n type: 'integer',\n description: 'Height of the image in pixels'\n },\n width: {\n type: 'integer',\n description: 'Width of the image in pixels'\n }\n }\n },\n url: {\n type: 'string',\n description: 'URL of the backdrop image'\n }\n }\n }\n },\n colors: {\n type: 'array',\n description: 'An array of brand colors',\n items: {\n type: 'object',\n properties: {\n hex: {\n type: 'string',\n description: 'Color in hexadecimal format'\n },\n name: {\n type: 'string',\n description: 'Name of the color'\n }\n }\n }\n },\n domain: {\n type: 'string',\n description: 'The domain name of the brand'\n },\n logos: {\n type: 'array',\n description: 'An array of logos associated with the brand',\n items: {\n type: 'object',\n properties: {\n colors: {\n type: 'array',\n description: 'Array of colors in the logo',\n items: {\n type: 'object',\n properties: {\n hex: {\n type: 'string',\n description: 'Color in hexadecimal format'\n },\n name: {\n type: 'string',\n description: 'Name of the color'\n }\n }\n }\n },\n mode: {\n type: 'string',\n description: 'Indicates when this logo is best used: \\'light\\' = best for light mode, \\'dark\\' = best for dark mode, \\'has_opaque_background\\' = can be used for either as image has its own background',\n enum: [ 'light',\n 'dark',\n 'has_opaque_background'\n ]\n },\n resolution: {\n type: 'object',\n description: 'Resolution of the logo image',\n properties: {\n aspect_ratio: {\n type: 'number',\n description: 'Aspect ratio of the image (width/height)'\n },\n height: {\n type: 'integer',\n description: 'Height of the image in pixels'\n },\n width: {\n type: 'integer',\n description: 'Width of the image in pixels'\n }\n }\n },\n type: {\n type: 'string',\n description: 'Type of the logo based on resolution (e.g., \\'icon\\', \\'logo\\')',\n enum: [ 'icon',\n 'logo'\n ]\n },\n url: {\n type: 'string',\n description: 'CDN hosted url of the logo (ready for display)'\n }\n }\n }\n },\n title: {\n type: 'string',\n description: 'The title or name of the brand'\n }\n }\n },\n code: {\n type: 'integer',\n description: 'HTTP status code of the response'\n },\n status: {\n type: 'string',\n description: 'Status of the response, e.g., \\'ok\\''\n }\n }\n}\n```",
13
14
  inputSchema: {
14
15
  type: 'object',
15
16
  properties: {
@@ -21,12 +22,21 @@ export const tool = {
21
22
  type: 'integer',
22
23
  description: 'Optional timeout in milliseconds for the request. If the request takes longer than this value, it will be aborted with a 408 status code. Maximum allowed value is 300000ms (5 minutes).',
23
24
  },
25
+ jq_filter: {
26
+ type: 'string',
27
+ title: 'jq Filter',
28
+ description: '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/).',
29
+ },
24
30
  },
31
+ required: ['domain'],
32
+ },
33
+ annotations: {
34
+ readOnlyHint: true,
25
35
  },
26
36
  };
27
37
  export const handler = async (client, args) => {
28
38
  const body = args;
29
- return asTextContentResult(await client.brand.retrieveSimplified(body));
39
+ return asTextContentResult(await maybeFilter(args, await client.brand.retrieveSimplified(body)));
30
40
  };
31
41
  export default { metadata, tool, handler };
32
42
  //# sourceMappingURL=retrieve-simplified-brand.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-simplified-brand.mjs","sourceRoot":"","sources":["../../src/tools/brand/retrieve-simplified-brand.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,2BAA2B;AAM/D,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,4BAA4B;CACvC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,2BAA2B;IACjC,WAAW,EACT,2MAA2M;IAC7M,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mDAAmD;aACjE;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,0LAA0L;aAC7L;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC;AAC1E,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"retrieve-simplified-brand.mjs","sourceRoot":"","sources":["../../src/tools/brand/retrieve-simplified-brand.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,yBAAyB;OAC9C,EAAY,mBAAmB,EAAE,MAAM,2BAA2B;AAKzE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,4BAA4B;CACvC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,2BAA2B;IACjC,WAAW,EACT,6zKAA6zK;IAC/zK,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mDAAmD;aACjE;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,0LAA0L;aAC7L;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,IAAI,EAAE,MAAM,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACnG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
+ import { Metadata } from 'brand.dev-mcp/tools/types';
1
2
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
2
- import type { Metadata } from "..//index.mjs";
3
3
  import BrandDev from 'brand.dev';
4
4
  export declare const metadata: Metadata;
5
5
  export declare const tool: Tool;
@@ -1 +1 @@
1
- {"version":3,"file":"screenshot-brand.d.mts","sourceRoot":"","sources":["../../src/tools/brand/screenshot-brand.ts"],"names":[],"mappings":"OAIO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,WAAW;AAEhC,eAAO,MAAM,QAAQ,EAAE,QAMtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAoBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
1
+ {"version":3,"file":"screenshot-brand.d.mts","sourceRoot":"","sources":["../../src/tools/brand/screenshot-brand.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,2BAA2B;OAElE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,WAAW;AAEhC,eAAO,MAAM,QAAQ,EAAE,QAMtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA8BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
@@ -1,5 +1,5 @@
1
+ import { Metadata } from 'brand.dev-mcp/tools/types';
1
2
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
2
- import type { Metadata } from "..//index.js";
3
3
  import BrandDev from 'brand.dev';
4
4
  export declare const metadata: Metadata;
5
5
  export declare const tool: Tool;
@@ -1 +1 @@
1
- {"version":3,"file":"screenshot-brand.d.ts","sourceRoot":"","sources":["../../src/tools/brand/screenshot-brand.ts"],"names":[],"mappings":"OAIO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,WAAW;AAEhC,eAAO,MAAM,QAAQ,EAAE,QAMtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAoBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
1
+ {"version":3,"file":"screenshot-brand.d.ts","sourceRoot":"","sources":["../../src/tools/brand/screenshot-brand.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,2BAA2B;OAElE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,WAAW;AAEhC,eAAO,MAAM,QAAQ,EAAE,QAMtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA8BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
@@ -2,6 +2,7 @@
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.handler = exports.tool = exports.metadata = void 0;
5
+ const filtering_1 = require("brand.dev-mcp/filtering");
5
6
  const types_1 = require("brand.dev-mcp/tools/types");
6
7
  exports.metadata = {
7
8
  resource: 'brand',
@@ -12,7 +13,7 @@ exports.metadata = {
12
13
  };
13
14
  exports.tool = {
14
15
  name: 'screenshot_brand',
15
- description: 'Beta feature: Capture a screenshot of a website. Supports both viewport (standard browser view) and full-page screenshots. Returns a URL to the uploaded screenshot image hosted on our CDN.',
16
+ description: "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\nBeta feature: Capture a screenshot of a website. Supports both viewport (standard browser view) and full-page screenshots. Returns a URL to the uploaded screenshot image hosted on our CDN.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n code: {\n type: 'integer',\n description: 'HTTP status code'\n },\n domain: {\n type: 'string',\n description: 'The normalized domain that was processed'\n },\n screenshot: {\n type: 'string',\n description: 'Public URL of the uploaded screenshot image'\n },\n screenshotType: {\n type: 'string',\n description: 'Type of screenshot that was captured',\n enum: [ 'viewport',\n 'fullPage'\n ]\n },\n status: {\n type: 'string',\n description: 'Status of the response, e.g., \\'ok\\''\n }\n }\n}\n```",
16
17
  inputSchema: {
17
18
  type: 'object',
18
19
  properties: {
@@ -25,12 +26,21 @@ exports.tool = {
25
26
  description: "Optional parameter to determine screenshot type. If 'true', takes a full page screenshot capturing all content. If 'false' or not provided, takes a viewport screenshot (standard browser view).",
26
27
  enum: ['true', 'false'],
27
28
  },
29
+ jq_filter: {
30
+ type: 'string',
31
+ title: 'jq Filter',
32
+ description: '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/).',
33
+ },
28
34
  },
35
+ required: ['domain'],
36
+ },
37
+ annotations: {
38
+ readOnlyHint: true,
29
39
  },
30
40
  };
31
41
  const handler = async (client, args) => {
32
42
  const body = args;
33
- return (0, types_1.asTextContentResult)(await client.brand.screenshot(body));
43
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(args, await client.brand.screenshot(body)));
34
44
  };
35
45
  exports.handler = handler;
36
46
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +1 @@
1
- {"version":3,"file":"screenshot-brand.js","sourceRoot":"","sources":["../../src/tools/brand/screenshot-brand.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAgE;AAMnD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,mBAAmB;CAC9B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,8LAA8L;IAChM,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,mIAAmI;aACtI;YAC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QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,IAAI,EAAE,MAAM,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC3F,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,4 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { maybeFilter } from 'brand.dev-mcp/filtering';
2
3
  import { asTextContentResult } from 'brand.dev-mcp/tools/types';
3
4
  export const metadata = {
4
5
  resource: 'brand',
@@ -9,7 +10,7 @@ export const metadata = {
9
10
  };
10
11
  export const tool = {
11
12
  name: 'screenshot_brand',
12
- description: 'Beta feature: Capture a screenshot of a website. Supports both viewport (standard browser view) and full-page screenshots. Returns a URL to the uploaded screenshot image hosted on our CDN.',
13
+ description: "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\nBeta feature: Capture a screenshot of a website. Supports both viewport (standard browser view) and full-page screenshots. Returns a URL to the uploaded screenshot image hosted on our CDN.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n code: {\n type: 'integer',\n description: 'HTTP status code'\n },\n domain: {\n type: 'string',\n description: 'The normalized domain that was processed'\n },\n screenshot: {\n type: 'string',\n description: 'Public URL of the uploaded screenshot image'\n },\n screenshotType: {\n type: 'string',\n description: 'Type of screenshot that was captured',\n enum: [ 'viewport',\n 'fullPage'\n ]\n },\n status: {\n type: 'string',\n description: 'Status of the response, e.g., \\'ok\\''\n }\n }\n}\n```",
13
14
  inputSchema: {
14
15
  type: 'object',
15
16
  properties: {
@@ -22,12 +23,21 @@ export const tool = {
22
23
  description: "Optional parameter to determine screenshot type. If 'true', takes a full page screenshot capturing all content. If 'false' or not provided, takes a viewport screenshot (standard browser view).",
23
24
  enum: ['true', 'false'],
24
25
  },
26
+ jq_filter: {
27
+ type: 'string',
28
+ title: 'jq Filter',
29
+ description: '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/).',
30
+ },
25
31
  },
32
+ required: ['domain'],
33
+ },
34
+ annotations: {
35
+ readOnlyHint: true,
26
36
  },
27
37
  };
28
38
  export const handler = async (client, args) => {
29
39
  const body = args;
30
- return asTextContentResult(await client.brand.screenshot(body));
40
+ return asTextContentResult(await maybeFilter(args, await client.brand.screenshot(body)));
31
41
  };
32
42
  export default { metadata, tool, handler };
33
43
  //# sourceMappingURL=screenshot-brand.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"screenshot-brand.mjs","sourceRoot":"","sources":["../../src/tools/brand/screenshot-brand.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,2BAA2B;AAM/D,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,mBAAmB;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,8LAA8L;IAChM,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW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ClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,IAAI,EAAE,MAAM,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC3F,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
+ import { Metadata } from 'brand.dev-mcp/tools/types';
1
2
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
2
- import type { Metadata } from "..//index.mjs";
3
3
  import BrandDev from 'brand.dev';
4
4
  export declare const metadata: Metadata;
5
5
  export declare const tool: Tool;
@@ -1 +1 @@
1
- {"version":3,"file":"styleguide-brand.d.mts","sourceRoot":"","sources":["../../src/tools/brand/styleguide-brand.ts"],"names":[],"mappings":"OAIO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,WAAW;AAEhC,eAAO,MAAM,QAAQ,EAAE,QAMtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAmBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
1
+ {"version":3,"file":"styleguide-brand.d.mts","sourceRoot":"","sources":["../../src/tools/brand/styleguide-brand.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,2BAA2B;OAElE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,WAAW;AAEhC,eAAO,MAAM,QAAQ,EAAE,QAMtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAuBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
@@ -1,5 +1,5 @@
1
+ import { Metadata } from 'brand.dev-mcp/tools/types';
1
2
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
2
- import type { Metadata } from "..//index.js";
3
3
  import BrandDev from 'brand.dev';
4
4
  export declare const metadata: Metadata;
5
5
  export declare const tool: Tool;
@@ -1 +1 @@
1
- {"version":3,"file":"styleguide-brand.d.ts","sourceRoot":"","sources":["../../src/tools/brand/styleguide-brand.ts"],"names":[],"mappings":"OAIO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,WAAW;AAEhC,eAAO,MAAM,QAAQ,EAAE,QAMtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAmBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
1
+ {"version":3,"file":"styleguide-brand.d.ts","sourceRoot":"","sources":["../../src/tools/brand/styleguide-brand.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,2BAA2B;OAElE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,WAAW;AAEhC,eAAO,MAAM,QAAQ,EAAE,QAMtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAuBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
@@ -12,7 +12,7 @@ exports.metadata = {
12
12
  };
13
13
  exports.tool = {
14
14
  name: 'styleguide_brand',
15
- description: "Beta feature: Automatically extract comprehensive design system information from a brand's website including colors, typography, spacing, shadows, and UI components. Uses AI-powered analysis of website screenshots to identify design patterns and create a reusable styleguide.",
15
+ description: "Beta feature: Automatically extract comprehensive design system information from a brand's website including colors, typography, spacing, shadows, and UI components.",
16
16
  inputSchema: {
17
17
  type: 'object',
18
18
  properties: {
@@ -25,6 +25,10 @@ exports.tool = {
25
25
  description: 'Optional timeout in milliseconds for the request. If the request takes longer than this value, it will be aborted with a 408 status code. Maximum allowed value is 300000ms (5 minutes).',
26
26
  },
27
27
  },
28
+ required: ['domain'],
29
+ },
30
+ annotations: {
31
+ readOnlyHint: true,
28
32
  },
29
33
  };
30
34
  const handler = async (client, args) => {
@@ -1 +1 @@
1
- {"version":3,"file":"styleguide-brand.js","sourceRoot":"","sources":["../../src/tools/brand/styleguide-brand.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAgE;AAMnD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,E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AwI;aAC3I;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,0LAA0L;aAC7L;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;AAClE,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -9,7 +9,7 @@ export const metadata = {
9
9
  };
10
10
  export const tool = {
11
11
  name: 'styleguide_brand',
12
- description: "Beta feature: Automatically extract comprehensive design system information from a brand's website including colors, typography, spacing, shadows, and UI components. Uses AI-powered analysis of website screenshots to identify design patterns and create a reusable styleguide.",
12
+ description: "Beta feature: Automatically extract comprehensive design system information from a brand's website including colors, typography, spacing, shadows, and UI components.",
13
13
  inputSchema: {
14
14
  type: 'object',
15
15
  properties: {
@@ -22,6 +22,10 @@ export const tool = {
22
22
  description: 'Optional timeout in milliseconds for the request. If the request takes longer than this value, it will be aborted with a 408 status code. Maximum allowed value is 300000ms (5 minutes).',
23
23
  },
24
24
  },
25
+ required: ['domain'],
26
+ },
27
+ annotations: {
28
+ readOnlyHint: true,
25
29
  },
26
30
  };
27
31
  export const handler = async (client, args) => {
@@ -1 +1 @@
1
- {"version":3,"file":"styleguide-brand.mjs","sourceRoot":"","sources":["../../src/tools/brand/styleguide-brand.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,2BAA2B;AAM/D,MAAM,CAAC,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V,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,wIAAwI;aAC3I;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,0LAA0L;aAC7L;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;AAClE,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/tools/index.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE;AAE9C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC;AAa/C,eAAO,MAAM,SAAS,EAAE,QAAQ,EAAO,CAAC;AAiBxC,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,EAAE,UAAU,GAAG,WAAW,GAAG,KAAK,GAAG,MAAM,CAAC;IAChD,EAAE,EAAE,SAAS,GAAG,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,CA4B1E"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/tools/index.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE;AAE9C,OAAO,EAAE,QAAQ,EA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AK,GAAG,MAAM,CAAC;IAChD,EAAE,EAAE,SAAS,GAAG,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,CA4B1E"}
package/tools/index.js CHANGED
@@ -14,7 +14,6 @@ const retrieve_by_ticker_brand_1 = __importDefault(require("./brand/retrieve-by-
14
14
  const retrieve_naics_brand_1 = __importDefault(require("./brand/retrieve-naics-brand.js"));
15
15
  const retrieve_simplified_brand_1 = __importDefault(require("./brand/retrieve-simplified-brand.js"));
16
16
  const screenshot_brand_1 = __importDefault(require("./brand/screenshot-brand.js"));
17
- const search_brand_1 = __importDefault(require("./brand/search-brand.js"));
18
17
  const styleguide_brand_1 = __importDefault(require("./brand/styleguide-brand.js"));
19
18
  exports.endpoints = [];
20
19
  function addEndpoint(endpoint) {
@@ -28,7 +27,6 @@ addEndpoint(retrieve_by_ticker_brand_1.default);
28
27
  addEndpoint(retrieve_naics_brand_1.default);
29
28
  addEndpoint(retrieve_simplified_brand_1.default);
30
29
  addEndpoint(screenshot_brand_1.default);
31
- addEndpoint(search_brand_1.default);
32
30
  addEndpoint(styleguide_brand_1.default);
33
31
  function query(filters, endpoints) {
34
32
  const allExcludes = filters.length > 0 && filters.every((filter) => filter.op === 'exclude');
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/tools/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAwCtF,sBA4BC;AA9DD,+EAAoD;AACpD,+EAAoD;AACpD,iHAAsF;AACtF,+EAAoD;AACpD,mGAAwE;AACxE,2FAAgE;AAChE,qGAA0E;AAC1E,mFAAwD;AACxD,2EAAgD;AAChD,mFAAwD;AAE3C,QAAA,SAAS,GAAe,EAAE,CAAC;AAExC,SAAS,WAAW,CAAC,QAAkB;IACrC,iBAAS,CAAC,IAAI,CAA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,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAChD,KAAK,MAAM;YACT,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC;IACxC,CAAC;AACH,CAAC;AAED,SAAS,iBAAiB,CAAC,QAAgB;IACzC,OAAO,QAAQ,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;AAC7D,CAAC"}
package/tools/index.mjs CHANGED
@@ -7,7 +7,6 @@ import retrieve_by_ticker_brand from "./brand/retrieve-by-ticker-brand.mjs";
7
7
  import retrieve_naics_brand from "./brand/retrieve-naics-brand.mjs";
8
8
  import retrieve_simplified_brand from "./brand/retrieve-simplified-brand.mjs";
9
9
  import screenshot_brand from "./brand/screenshot-brand.mjs";
10
- import search_brand from "./brand/search-brand.mjs";
11
10
  import styleguide_brand from "./brand/styleguide-brand.mjs";
12
11
  export const endpoints = [];
13
12
  function addEndpoint(endpoint) {
@@ -21,7 +20,6 @@ addEndpoint(retrieve_by_ticker_brand);
21
20
  addEndpoint(retrieve_naics_brand);
22
21
  addEndpoint(retrieve_simplified_brand);
23
22
  addEndpoint(screenshot_brand);
24
- addEndpoint(search_brand);
25
23
  addEndpoint(styleguide_brand);
26
24
  export function query(filters, endpoints) {
27
25
  const allExcludes = filters.length > 0 && filters.every((filter) => filter.op === 'exclude');
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/tools/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAM/E,cAAc;OACd,cAAc;OACd,+BAA+B;OAC/B,cAAc;OACd,wBAAwB;OACxB,oBAAoB;OACpB,yBAAyB;OACzB,gBAAgB;OAChB,YAAY;OACZ,gBAAgB;AAEvB,MAAM,CAAC,MAAM,SAAS,GAAe,EAAE,CAAC;AAExC,SAAS,WAAW,CAAC,QAAkB;IACrC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC3B,CAAC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AChD,KAAK,MAAM;YACT,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC;IACxC,CAAC;AACH,CAAC;AAED,SAAS,iBAAiB,CAAC,QAAgB;IACzC,OAAO,QAAQ,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;AAC7D,CAAC"}
package/tools/types.d.mts CHANGED
@@ -32,7 +32,7 @@ export type ToolCallResult = {
32
32
  isError?: boolean;
33
33
  };
34
34
  export type HandlerFunction = (client: BrandDev, args: Record<string, unknown> | undefined) => Promise<ToolCallResult>;
35
- export declare function asTextContentResult(result: Object): ToolCallResult;
35
+ export declare function asTextContentResult(result: unknown): ToolCallResult;
36
36
  export declare function asBinaryContentResult(response: Response): Promise<ToolCallResult>;
37
37
  export type Metadata = {
38
38
  resource: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../src/tools/types.ts"],"names":[],"mappings":"OAEO,QAAQ,MAAM,WAAW;OACzB,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EACJ;QACE,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,GACD;QACE,GAAG,EAAE,MAAM,CAAC;Q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ACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC"}
package/tools/types.d.ts CHANGED
@@ -32,7 +32,7 @@ export type ToolCallResult = {
32
32
  isError?: boolean;
33
33
  };
34
34
  export type HandlerFunction = (client: BrandDev, args: Record<string, unknown> | undefined) => Promise<ToolCallResult>;
35
- export declare function asTextContentResult(result: Object): ToolCallResult;
35
+ export declare function asTextContentResult(result: unknown): ToolCallResult;
36
36
  export declare function asBinaryContentResult(response: Response): Promise<ToolCallResult>;
37
37
  export type Metadata = {
38
38
  resource: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/tools/types.ts"],"names":[],"mappings":"OAEO,QAAQ,MAAM,WAAW;OACzB,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EACJ;QACE,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,GACD;QACE,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ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,CAAC;AACH,CAAC"}
@@ -1,41 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { asTextContentResult } from 'brand.dev-mcp/tools/types';
4
-
5
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
- import type { Metadata } from '../';
7
- import BrandDev from 'brand.dev';
8
-
9
- export const metadata: Metadata = {
10
- resource: 'brand',
11
- operation: 'read',
12
- tags: [],
13
- httpMethod: 'get',
14
- httpPath: '/brand/search',
15
- };
16
-
17
- export const tool: Tool = {
18
- name: 'search_brand',
19
- description: 'Search brands by query',
20
- inputSchema: {
21
- type: 'object',
22
- properties: {
23
- query: {
24
- type: 'string',
25
- description: 'Query string to search brands',
26
- },
27
- timeoutMS: {
28
- type: 'integer',
29
- description:
30
- 'Optional timeout in milliseconds for the request. If the request takes longer than this value, it will be aborted with a 408 status code. Maximum allowed value is 300000ms (5 minutes).',
31
- },
32
- },
33
- },
34
- };
35
-
36
- export const handler = async (client: BrandDev, args: Record<string, unknown> | undefined) => {
37
- const body = args as any;
38
- return asTextContentResult(await client.brand.search(body));
39
- };
40
-
41
- export default { metadata, tool, handler };
@@ -1,45 +0,0 @@
1
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
2
- import type { Metadata } from "..//index.mjs";
3
- import BrandDev from 'brand.dev';
4
- export declare const metadata: Metadata;
5
- export declare const tool: Tool;
6
- export declare const handler: (client: BrandDev, args: Record<string, unknown> | undefined) => Promise<import("brand.dev-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: BrandDev, args: Record<string, unknown> | undefined) => Promise<import("brand.dev-mcp/tools/types").ToolCallResult>;
43
- };
44
- export default _default;
45
- //# sourceMappingURL=search-brand.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"search-brand.d.mts","sourceRoot":"","sources":["../../src/tools/brand/search-brand.ts"],"names":[],"mappings":"OAIO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,WAAW;AAEhC,eAAO,MAAM,QAAQ,EAAE,QAMtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAiBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
@@ -1,45 +0,0 @@
1
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
2
- import type { Metadata } from "..//index.js";
3
- import BrandDev from 'brand.dev';
4
- export declare const metadata: Metadata;
5
- export declare const tool: Tool;
6
- export declare const handler: (client: BrandDev, args: Record<string, unknown> | undefined) => Promise<import("brand.dev-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: BrandDev, args: Record<string, unknown> | undefined) => Promise<import("brand.dev-mcp/tools/types").ToolCallResult>;
43
- };
44
- export default _default;
45
- //# sourceMappingURL=search-brand.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"search-brand.d.ts","sourceRoot":"","sources":["../../src/tools/brand/search-brand.ts"],"names":[],"mappings":"OAIO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,WAAW;AAEhC,eAAO,MAAM,QAAQ,EAAE,QAMtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAiBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.handler = exports.tool = exports.metadata = void 0;
5
- const types_1 = require("brand.dev-mcp/tools/types");
6
- exports.metadata = {
7
- resource: 'brand',
8
- operation: 'read',
9
- tags: [],
10
- httpMethod: 'get',
11
- httpPath: '/brand/search',
12
- };
13
- exports.tool = {
14
- name: 'search_brand',
15
- description: 'Search brands by query',
16
- inputSchema: {
17
- type: 'object',
18
- properties: {
19
- query: {
20
- type: 'string',
21
- description: 'Query string to search brands',
22
- },
23
- timeoutMS: {
24
- type: 'integer',
25
- description: 'Optional timeout in milliseconds for the request. If the request takes longer than this value, it will be aborted with a 408 status code. Maximum allowed value is 300000ms (5 minutes).',
26
- },
27
- },
28
- },
29
- };
30
- const handler = async (client, args) => {
31
- const body = args;
32
- return (0, types_1.asTextContentResult)(await client.brand.search(body));
33
- };
34
- exports.handler = handler;
35
- exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
36
- //# sourceMappingURL=search-brand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"search-brand.js","sourceRoot":"","sources":["../../src/tools/brand/search-brand.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAgE;AAMnD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,eAAe;CAC1B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,wBAAwB;IACrC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+BAA+B;aAC7C;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,0LAA0L;aAC7L;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9D,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}