@atlaskit/ads-mcp 0.9.0 → 0.10.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 (37) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/index.js +14 -9
  3. package/dist/cjs/tools/get-icons/icon-structured-content.codegen.js +2585 -0
  4. package/dist/cjs/tools/get-icons/index.js +133 -0
  5. package/dist/cjs/tools/get-tokens/index.js +15 -22
  6. package/dist/cjs/tools/get-tokens/token-structured-content.codegen.js +2261 -0
  7. package/dist/es2019/index.js +13 -9
  8. package/dist/es2019/tools/get-icons/icon-structured-content.codegen.js +2579 -0
  9. package/dist/es2019/tools/get-icons/index.js +108 -0
  10. package/dist/es2019/tools/get-tokens/index.js +7 -22
  11. package/dist/es2019/tools/get-tokens/token-structured-content.codegen.js +2255 -0
  12. package/dist/esm/index.js +14 -9
  13. package/dist/esm/tools/get-icons/icon-structured-content.codegen.js +2579 -0
  14. package/dist/esm/tools/get-icons/index.js +126 -0
  15. package/dist/esm/tools/get-tokens/index.js +15 -22
  16. package/dist/esm/tools/get-tokens/token-structured-content.codegen.js +2255 -0
  17. package/dist/types/index.d.ts +1 -2
  18. package/dist/types/tools/get-icons/icon-structured-content.codegen.d.ts +13 -0
  19. package/dist/types/tools/get-icons/index.d.ts +35 -0
  20. package/dist/types/tools/get-tokens/index.d.ts +6 -4
  21. package/dist/types/tools/get-tokens/token-structured-content.codegen.d.ts +13 -0
  22. package/dist/types-ts4.5/index.d.ts +1 -2
  23. package/dist/types-ts4.5/tools/get-icons/icon-structured-content.codegen.d.ts +13 -0
  24. package/dist/types-ts4.5/tools/get-icons/index.d.ts +35 -0
  25. package/dist/types-ts4.5/tools/get-tokens/index.d.ts +6 -4
  26. package/dist/types-ts4.5/tools/get-tokens/token-structured-content.codegen.d.ts +13 -0
  27. package/package.json +5 -1
  28. package/dist/cjs/structured-content/formatters/token.js +0 -11
  29. package/dist/cjs/structured-content/types.js +0 -1
  30. package/dist/es2019/structured-content/formatters/token.js +0 -10
  31. package/dist/es2019/structured-content/types.js +0 -0
  32. package/dist/esm/structured-content/formatters/token.js +0 -5
  33. package/dist/esm/structured-content/types.js +0 -0
  34. package/dist/types/structured-content/formatters/token.d.ts +0 -2
  35. package/dist/types/structured-content/types.d.ts +0 -20
  36. package/dist/types-ts4.5/structured-content/formatters/token.d.ts +0 -2
  37. package/dist/types-ts4.5/structured-content/types.d.ts +0 -20
@@ -11,6 +11,7 @@ import { getA11yGuidelinesInputSchema, getA11yGuidelinesTool, listGetA11yGuideli
11
11
  import { getAllIconsTool, listGetAllIconsTool } from './tools/get-all-icons';
12
12
  import { getAllTokensTool, listGetAllTokensTool } from './tools/get-all-tokens';
13
13
  import { getComponentsTool, listGetComponentsTool } from './tools/get-components';
14
+ import { getIconsInputSchema, getIconsTool, listGetIconsTool } from './tools/get-icons';
14
15
  import { getTokensInputSchema, getTokensTool, listGetTokensTool } from './tools/get-tokens';
15
16
  import { listPlanTool, planInputSchema, planTool } from './tools/plan';
16
17
  import { listSuggestA11yFixesTool, suggestA11yFixesInputSchema, suggestA11yFixesTool } from './tools/suggest-a11y-fixes';
@@ -60,11 +61,6 @@ export const getToolRegistry = () => {
60
61
  inputSchema: getA11yGuidelinesInputSchema,
61
62
  tool: listGetA11yGuidelinesTool
62
63
  },
63
- [listGetAllIconsTool.name]: {
64
- handler: getAllIconsTool,
65
- inputSchema: null,
66
- tool: listGetAllIconsTool
67
- },
68
64
  [listGetComponentsTool.name]: {
69
65
  handler: getComponentsTool,
70
66
  inputSchema: null,
@@ -99,19 +95,29 @@ export const getToolRegistry = () => {
99
95
  }
100
96
  };
101
97
 
102
- // Conditionally add token tools based on feature flag
98
+ // Conditionally add token and icon tools based on feature flag
103
99
  if (fg('design_system_mcp_structured_content')) {
104
100
  baseTools[listGetTokensTool.name] = {
105
101
  handler: getTokensTool,
106
102
  inputSchema: getTokensInputSchema,
107
103
  tool: listGetTokensTool
108
104
  };
105
+ baseTools[listGetIconsTool.name] = {
106
+ handler: getIconsTool,
107
+ inputSchema: getIconsInputSchema,
108
+ tool: listGetIconsTool
109
+ };
109
110
  } else {
110
111
  baseTools[listGetAllTokensTool.name] = {
111
112
  handler: getAllTokensTool,
112
113
  inputSchema: null,
113
114
  tool: listGetAllTokensTool
114
115
  };
116
+ baseTools[listGetAllIconsTool.name] = {
117
+ handler: getAllIconsTool,
118
+ inputSchema: null,
119
+ tool: listGetAllIconsTool
120
+ };
115
121
  }
116
122
  return baseTools;
117
123
  };
@@ -244,6 +250,4 @@ async function runServer() {
244
250
  runServer().catch(error => {
245
251
  const errorMessage = error instanceof Error ? error.message : 'Unknown error';
246
252
  console.error(`Invalid input to ads-mcp: ${errorMessage}`);
247
- });
248
-
249
- // Export types for use by other packages
253
+ });