@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.
- package/CHANGELOG.md +22 -0
- package/dist/cjs/tools/get-all-tokens/get-all-tokens-tool.js +1 -0
- package/dist/cjs/tools/get-all-tokens/list-get-all-tokens-tool.js +1 -1
- package/dist/cjs/tools/get-atlaskit-components/atlaskit-components.codegen.js +2 -2
- package/dist/cjs/tools/search-tokens/list-search-tokens-tool.js +1 -1
- package/dist/cjs/tools/search-tokens/search-tokens-input-schema.js +1 -1
- package/dist/cjs/tools/search-tokens/search-tokens-tool.js +1 -0
- package/dist/es2019/tools/get-all-tokens/get-all-tokens-tool.js +1 -0
- package/dist/es2019/tools/get-all-tokens/list-get-all-tokens-tool.js +1 -1
- package/dist/es2019/tools/get-atlaskit-components/atlaskit-components.codegen.js +2 -2
- package/dist/es2019/tools/search-tokens/list-search-tokens-tool.js +1 -1
- package/dist/es2019/tools/search-tokens/search-tokens-input-schema.js +1 -1
- package/dist/es2019/tools/search-tokens/search-tokens-tool.js +1 -0
- package/dist/esm/tools/get-all-tokens/get-all-tokens-tool.js +1 -0
- package/dist/esm/tools/get-all-tokens/list-get-all-tokens-tool.js +1 -1
- package/dist/esm/tools/get-atlaskit-components/atlaskit-components.codegen.js +2 -2
- package/dist/esm/tools/search-tokens/list-search-tokens-tool.js +1 -1
- package/dist/esm/tools/search-tokens/search-tokens-input-schema.js +1 -1
- package/dist/esm/tools/search-tokens/search-tokens-tool.js +1 -0
- package/dist/types/tools/get-atlaskit-components/atlaskit-components.codegen.d.ts +1 -1
- package/package.json +3 -3
|
@@ -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
|
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Structured content components from *.docs.tsx files outside of design-system
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::0e042569161f64ca963faec2ca7cc689>>
|
|
7
7
|
* @codegenCommand afm workspace @af/ads-ai-tooling codegen
|
|
8
8
|
*/
|
|
9
9
|
import type { ComponentMcpPayload } from '../get-all-components/types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/ads-mcp",
|
|
3
|
-
"version": "1.
|
|
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",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
15
15
|
"scripts": {
|
|
16
16
|
"ak-postbuild": "afm workspace @atlassian/structured-docs build",
|
|
17
|
-
"prepare": "
|
|
17
|
+
"prepare": "afm run ak-postbuild"
|
|
18
18
|
},
|
|
19
19
|
"bin": "index.js",
|
|
20
20
|
"main": "dist/cjs/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@atlaskit/icon": "^38.0.0",
|
|
25
25
|
"@atlaskit/icon-lab": "^7.11.0",
|
|
26
26
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
27
|
-
"@atlaskit/tokens": "^20.
|
|
27
|
+
"@atlaskit/tokens": "^20.4.0",
|
|
28
28
|
"@axe-core/playwright": "^4.11.1",
|
|
29
29
|
"@axe-core/puppeteer": "^4.11.1",
|
|
30
30
|
"@babel/runtime": "^7.0.0",
|