@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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/ads-mcp
2
2
 
3
+ ## 0.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`b01712bc0727d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b01712bc0727d) -
8
+ Update the structured docs package to generate icon content and update the ADS MCP to consume it.
9
+
10
+ ## 0.9.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [`286a209277502`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/286a209277502) -
15
+ update inputSchema type in getToolRegistry
16
+
3
17
  ## 0.9.0
4
18
 
5
19
  ### Minor Changes
package/dist/cjs/index.js CHANGED
@@ -20,6 +20,7 @@ var _getA11yGuidelines = require("./tools/get-a11y-guidelines");
20
20
  var _getAllIcons = require("./tools/get-all-icons");
21
21
  var _getAllTokens = require("./tools/get-all-tokens");
22
22
  var _getComponents = require("./tools/get-components");
23
+ var _getIcons = require("./tools/get-icons");
23
24
  var _getTokens = require("./tools/get-tokens");
24
25
  var _plan = require("./tools/plan");
25
26
  var _suggestA11yFixes = require("./tools/suggest-a11y-fixes");
@@ -60,7 +61,7 @@ var generateLogger = function generateLogger(level) {
60
61
  };
61
62
  };
62
63
  var getToolRegistry = exports.getToolRegistry = function getToolRegistry() {
63
- var baseTools = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _analyzeA11y.listAnalyzeA11yTool.name, {
64
+ var baseTools = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _analyzeA11y.listAnalyzeA11yTool.name, {
64
65
  handler: _analyzeA11y.analyzeA11yTool,
65
66
  inputSchema: _analyzeA11y.analyzeA11yInputSchema,
66
67
  tool: _analyzeA11y.listAnalyzeA11yTool
@@ -72,10 +73,6 @@ var getToolRegistry = exports.getToolRegistry = function getToolRegistry() {
72
73
  handler: _getA11yGuidelines.getA11yGuidelinesTool,
73
74
  inputSchema: _getA11yGuidelines.getA11yGuidelinesInputSchema,
74
75
  tool: _getA11yGuidelines.listGetA11yGuidelinesTool
75
- }), _getAllIcons.listGetAllIconsTool.name, {
76
- handler: _getAllIcons.getAllIconsTool,
77
- inputSchema: null,
78
- tool: _getAllIcons.listGetAllIconsTool
79
76
  }), _getComponents.listGetComponentsTool.name, {
80
77
  handler: _getComponents.getComponentsTool,
81
78
  inputSchema: null,
@@ -90,19 +87,29 @@ var getToolRegistry = exports.getToolRegistry = function getToolRegistry() {
90
87
  tool: _suggestA11yFixes.listSuggestA11yFixesTool
91
88
  });
92
89
 
93
- // Conditionally add token tools based on feature flag
90
+ // Conditionally add token and icon tools based on feature flag
94
91
  if ((0, _platformFeatureFlags.fg)('design_system_mcp_structured_content')) {
95
92
  baseTools[_getTokens.listGetTokensTool.name] = {
96
93
  handler: _getTokens.getTokensTool,
97
94
  inputSchema: _getTokens.getTokensInputSchema,
98
95
  tool: _getTokens.listGetTokensTool
99
96
  };
97
+ baseTools[_getIcons.listGetIconsTool.name] = {
98
+ handler: _getIcons.getIconsTool,
99
+ inputSchema: _getIcons.getIconsInputSchema,
100
+ tool: _getIcons.listGetIconsTool
101
+ };
100
102
  } else {
101
103
  baseTools[_getAllTokens.listGetAllTokensTool.name] = {
102
104
  handler: _getAllTokens.getAllTokensTool,
103
105
  inputSchema: null,
104
106
  tool: _getAllTokens.listGetAllTokensTool
105
107
  };
108
+ baseTools[_getAllIcons.listGetAllIconsTool.name] = {
109
+ handler: _getAllIcons.getAllIconsTool,
110
+ inputSchema: null,
111
+ tool: _getAllIcons.listGetAllIconsTool
112
+ };
106
113
  }
107
114
  return baseTools;
108
115
  };
@@ -288,6 +295,4 @@ function _runServer() {
288
295
  runServer().catch(function (error) {
289
296
  var errorMessage = error instanceof Error ? error.message : 'Unknown error';
290
297
  console.error("Invalid input to ads-mcp: ".concat(errorMessage));
291
- });
292
-
293
- // Export types for use by other packages
298
+ });