@atlaskit/ads-mcp 1.10.11 → 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.
@@ -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.