@atlaskit/ads-mcp 1.10.12 → 1.11.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/ads-mcp
2
2
 
3
+ ## 1.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`9b565c62c7a8d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9b565c62c7a8d) -
8
+ Return the canonical per-token description from the tokens package in detailed token searches and
9
+ CLI JSON output. Show that description as the CLI's token guidance instead of generic category
10
+ guidance, while retaining CSS property hints and compact search results.
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 1.10.12
4
17
 
5
18
  ### Patch Changes
@@ -21,6 +21,7 @@ var getAllTokensTool = exports.getAllTokensTool = /*#__PURE__*/function () {
21
21
  type: 'text',
22
22
  text: JSON.stringify({
23
23
  name: token.name,
24
+ description: token.description,
24
25
  exampleValue: token.exampleValue,
25
26
  usageGuidelines: token.usageGuidelines
26
27
  }, null, 2)
@@ -11,7 +11,7 @@ var _zodToJsonSchema = require("../../helpers/zod-to-json-schema");
11
11
  var inputSchema = _zod.z.object({});
12
12
  var listGetAllTokensTool = exports.listGetAllTokensTool = {
13
13
  name: 'ads_get_all_tokens',
14
- description: "Returns **every** ADS design token from bundled metadata (name, example value, usage guidelines)\u2014one JSON object per token, **very large** output.\n\nWHEN TO USE:\nLast resort when `ads_plan` / `ads_search_tokens` cannot answer the question and you need the full list (e.g. exhaustive audit). Prefer targeted search for normal development.\n\nNo parameters.",
14
+ description: "Returns **every** ADS design token from bundled metadata (name, canonical token description, example value, shared usage guidelines)\u2014one JSON object per token, **very large** output.\n\nWHEN TO USE:\nLast resort when `ads_plan` / `ads_search_tokens` cannot answer the question and you need the full list (e.g. exhaustive audit). Prefer targeted search for normal development.\n\nNo parameters.",
15
15
  annotations: {
16
16
  title: 'Get all ADS tokens',
17
17
  readOnlyHint: true,
@@ -10,7 +10,7 @@ var _searchTokensInputSchema = require("./search-tokens-input-schema");
10
10
 
11
11
  var listSearchTokensTool = exports.listSearchTokensTool = {
12
12
  name: 'ads_search_tokens',
13
- description: "Searches Atlassian Design System **design tokens** from bundled metadata. Returns compact JSON objects with **name** and **exampleValue** for each match by default (search also considers description, usage guidelines, and CSS property hints in metadata). Set **includeMetadata** to include usage guidelines in each result.\n\nWHEN TO USE:\n**Styling or theming in code**\u2014you need the right `token('\u2026')` names for colors, space, typography, etc. Use during layout and visual work when tokens must match ADS. Prefer `ads_plan` when you also need icons and components in the same step.\n\nExample:\n```tsx\nimport { token } from '@atlaskit/tokens';\nconst styles = css({ color: token('color.text'), padding: token('space.100') });\n```",
13
+ description: "Searches Atlassian Design System **design tokens** from bundled metadata. Returns compact JSON objects with **name** and **exampleValue** for each match by default (search also considers description, usage guidelines, and CSS property hints in metadata). Set **includeMetadata** to include the canonical token description from the tokens package and shared usage guidelines in each result.\n\nWHEN TO USE:\n**Styling or theming in code**\u2014you need the right `token('\u2026')` names for colors, space, typography, etc. Use during layout and visual work when tokens must match ADS. Prefer `ads_plan` when you also need icons and components in the same step.\n\nExample:\n```tsx\nimport { token } from '@atlaskit/tokens';\nconst styles = css({ color: token('color.text'), padding: token('space.100') });\n```",
14
14
  annotations: {
15
15
  title: 'Search ADS tokens',
16
16
  readOnlyHint: true,
@@ -10,5 +10,5 @@ var _zod = require("zod");
10
10
  var searchTokensInputSchema = exports.searchTokensInputSchema = _zod.z.object({
11
11
  terms: _zod.z.array(_zod.z.string()).describe('Required: one or more terms; fuzzy match on token **name**, **description**, **exampleValue**, **usageGuidelines.usage**, and **usageGuidelines.cssProperties**. Example: `["spacing", "color.text", "background"]`.'),
12
12
  limit: _zod.z.number().default(2).describe('Max matches **per term** (default 2).').optional(),
13
- includeMetadata: _zod.z.boolean().default(false).describe('Include usage guidelines in each result (default false).').optional()
13
+ includeMetadata: _zod.z.boolean().default(false).describe('Include the token description and usage guidelines in each result (default false).').optional()
14
14
  });
@@ -76,6 +76,7 @@ var searchTokensTool = exports.searchTokensTool = /*#__PURE__*/function () {
76
76
  name: item.name,
77
77
  exampleValue: item.exampleValue
78
78
  }, includeMetadata ? {
79
+ description: item.description,
79
80
  usageGuidelines: item.usageGuidelines
80
81
  } : {});
81
82
  });
@@ -6,6 +6,7 @@ export const getAllTokensTool = async () => ({
6
6
  type: 'text',
7
7
  text: JSON.stringify({
8
8
  name: token.name,
9
+ description: token.description,
9
10
  exampleValue: token.exampleValue,
10
11
  usageGuidelines: token.usageGuidelines
11
12
  }, null, 2)
@@ -5,7 +5,7 @@ import { zodToJsonSchema } from '../../helpers/zod-to-json-schema';
5
5
  const inputSchema = z.object({});
6
6
  export const listGetAllTokensTool = {
7
7
  name: 'ads_get_all_tokens',
8
- description: `Returns **every** ADS design token from bundled metadata (name, example value, usage guidelines)—one JSON object per token, **very large** output.
8
+ description: `Returns **every** ADS design token from bundled metadata (name, canonical token description, example value, shared usage guidelines)—one JSON object per token, **very large** output.
9
9
 
10
10
  WHEN TO USE:
11
11
  Last resort when \`ads_plan\` / \`ads_search_tokens\` cannot answer the question and you need the full list (e.g. exhaustive audit). Prefer targeted search for normal development.
@@ -4,7 +4,7 @@ import { zodToJsonSchema } from '../../helpers/zod-to-json-schema';
4
4
  import { searchTokensInputSchema } from './search-tokens-input-schema';
5
5
  export const listSearchTokensTool = {
6
6
  name: 'ads_search_tokens',
7
- description: `Searches Atlassian Design System **design tokens** from bundled metadata. Returns compact JSON objects with **name** and **exampleValue** for each match by default (search also considers description, usage guidelines, and CSS property hints in metadata). Set **includeMetadata** to include usage guidelines in each result.
7
+ description: `Searches Atlassian Design System **design tokens** from bundled metadata. Returns compact JSON objects with **name** and **exampleValue** for each match by default (search also considers description, usage guidelines, and CSS property hints in metadata). Set **includeMetadata** to include the canonical token description from the tokens package and shared usage guidelines in each result.
8
8
 
9
9
  WHEN TO USE:
10
10
  **Styling or theming in code**—you need the right \`token('…')\` names for colors, space, typography, etc. Use during layout and visual work when tokens must match ADS. Prefer \`ads_plan\` when you also need icons and components in the same step.
@@ -4,5 +4,5 @@ import { z } from 'zod';
4
4
  export const searchTokensInputSchema = z.object({
5
5
  terms: z.array(z.string()).describe('Required: one or more terms; fuzzy match on token **name**, **description**, **exampleValue**, **usageGuidelines.usage**, and **usageGuidelines.cssProperties**. Example: `["spacing", "color.text", "background"]`.'),
6
6
  limit: z.number().default(2).describe('Max matches **per term** (default 2).').optional(),
7
- includeMetadata: z.boolean().default(false).describe('Include usage guidelines in each result (default false).').optional()
7
+ includeMetadata: z.boolean().default(false).describe('Include the token description and usage guidelines in each result (default false).').optional()
8
8
  });
@@ -57,6 +57,7 @@ export const searchTokensTool = async ({
57
57
  name: item.name,
58
58
  exampleValue: item.exampleValue,
59
59
  ...(includeMetadata ? {
60
+ description: item.description,
60
61
  usageGuidelines: item.usageGuidelines
61
62
  } : {})
62
63
  }));
@@ -14,6 +14,7 @@ export var getAllTokensTool = /*#__PURE__*/function () {
14
14
  type: 'text',
15
15
  text: JSON.stringify({
16
16
  name: token.name,
17
+ description: token.description,
17
18
  exampleValue: token.exampleValue,
18
19
  usageGuidelines: token.usageGuidelines
19
20
  }, null, 2)
@@ -5,7 +5,7 @@ import { zodToJsonSchema } from '../../helpers/zod-to-json-schema';
5
5
  var inputSchema = z.object({});
6
6
  export var listGetAllTokensTool = {
7
7
  name: 'ads_get_all_tokens',
8
- description: "Returns **every** ADS design token from bundled metadata (name, example value, usage guidelines)\u2014one JSON object per token, **very large** output.\n\nWHEN TO USE:\nLast resort when `ads_plan` / `ads_search_tokens` cannot answer the question and you need the full list (e.g. exhaustive audit). Prefer targeted search for normal development.\n\nNo parameters.",
8
+ description: "Returns **every** ADS design token from bundled metadata (name, canonical token description, example value, shared usage guidelines)\u2014one JSON object per token, **very large** output.\n\nWHEN TO USE:\nLast resort when `ads_plan` / `ads_search_tokens` cannot answer the question and you need the full list (e.g. exhaustive audit). Prefer targeted search for normal development.\n\nNo parameters.",
9
9
  annotations: {
10
10
  title: 'Get all ADS tokens',
11
11
  readOnlyHint: true,
@@ -4,7 +4,7 @@ import { zodToJsonSchema } from '../../helpers/zod-to-json-schema';
4
4
  import { searchTokensInputSchema } from './search-tokens-input-schema';
5
5
  export var listSearchTokensTool = {
6
6
  name: 'ads_search_tokens',
7
- description: "Searches Atlassian Design System **design tokens** from bundled metadata. Returns compact JSON objects with **name** and **exampleValue** for each match by default (search also considers description, usage guidelines, and CSS property hints in metadata). Set **includeMetadata** to include usage guidelines in each result.\n\nWHEN TO USE:\n**Styling or theming in code**\u2014you need the right `token('\u2026')` names for colors, space, typography, etc. Use during layout and visual work when tokens must match ADS. Prefer `ads_plan` when you also need icons and components in the same step.\n\nExample:\n```tsx\nimport { token } from '@atlaskit/tokens';\nconst styles = css({ color: token('color.text'), padding: token('space.100') });\n```",
7
+ description: "Searches Atlassian Design System **design tokens** from bundled metadata. Returns compact JSON objects with **name** and **exampleValue** for each match by default (search also considers description, usage guidelines, and CSS property hints in metadata). Set **includeMetadata** to include the canonical token description from the tokens package and shared usage guidelines in each result.\n\nWHEN TO USE:\n**Styling or theming in code**\u2014you need the right `token('\u2026')` names for colors, space, typography, etc. Use during layout and visual work when tokens must match ADS. Prefer `ads_plan` when you also need icons and components in the same step.\n\nExample:\n```tsx\nimport { token } from '@atlaskit/tokens';\nconst styles = css({ color: token('color.text'), padding: token('space.100') });\n```",
8
8
  annotations: {
9
9
  title: 'Search ADS tokens',
10
10
  readOnlyHint: true,
@@ -4,5 +4,5 @@ import { z } from 'zod';
4
4
  export var searchTokensInputSchema = z.object({
5
5
  terms: z.array(z.string()).describe('Required: one or more terms; fuzzy match on token **name**, **description**, **exampleValue**, **usageGuidelines.usage**, and **usageGuidelines.cssProperties**. Example: `["spacing", "color.text", "background"]`.'),
6
6
  limit: z.number().default(2).describe('Max matches **per term** (default 2).').optional(),
7
- includeMetadata: z.boolean().default(false).describe('Include usage guidelines in each result (default false).').optional()
7
+ includeMetadata: z.boolean().default(false).describe('Include the token description and usage guidelines in each result (default false).').optional()
8
8
  });
@@ -71,6 +71,7 @@ export var searchTokensTool = /*#__PURE__*/function () {
71
71
  name: item.name,
72
72
  exampleValue: item.exampleValue
73
73
  }, includeMetadata ? {
74
+ description: item.description,
74
75
  usageGuidelines: item.usageGuidelines
75
76
  } : {});
76
77
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/ads-mcp",
3
- "version": "1.10.12",
3
+ "version": "1.11.0",
4
4
  "description": "The official Atlassian Design System MCP server to develop apps and user interfaces matching the Atlassian style.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",