@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
@@ -2,7 +2,6 @@ import { type Tool } from '@modelcontextprotocol/sdk/types.js';
2
2
  import type { z } from 'zod';
3
3
  export declare const getToolRegistry: () => Record<string, {
4
4
  handler: (params: any) => Promise<any>;
5
- inputSchema: z.ZodSchema | null;
5
+ inputSchema: z.AnyZodObject | null;
6
6
  tool: Tool;
7
7
  }>;
8
- export type { TokenSchema, ContentSchema } from './structured-content/types';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ *
4
+ * Structured content for icons generated from icon-metadata.
5
+ *
6
+ * @codegen <<SignedSource::8e0ae17013bff5b1edf9ddc66f016d9b>>
7
+ * @codegenCommand yarn build structured-docs
8
+ */
9
+ export interface IconStructuredContent {
10
+ content: string;
11
+ [key: string]: any;
12
+ }
13
+ export declare const iconStructuredContent: IconStructuredContent[];
@@ -0,0 +1,35 @@
1
+ import type { CallToolResult } from '@modelcontextprotocol/sdk/types';
2
+ import { z } from 'zod';
3
+ export declare const getIconsInputSchema: z.ZodObject<{
4
+ terms: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ exactName: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ terms?: string[] | undefined;
9
+ limit?: number | undefined;
10
+ exactName?: boolean | undefined;
11
+ }, {
12
+ terms?: string[] | undefined;
13
+ limit?: number | undefined;
14
+ exactName?: boolean | undefined;
15
+ }>;
16
+ export declare const listGetIconsTool: {
17
+ name: string;
18
+ description: string;
19
+ annotations: {
20
+ title: string;
21
+ readOnlyHint: boolean;
22
+ destructiveHint: boolean;
23
+ idempotentHint: boolean;
24
+ openWorldHint: boolean;
25
+ };
26
+ inputSchema: {
27
+ [x: string]: unknown;
28
+ type: "object";
29
+ properties?: {
30
+ [x: string]: unknown;
31
+ } | undefined;
32
+ required?: string[] | undefined;
33
+ };
34
+ };
35
+ export declare const getIconsTool: (params: z.infer<typeof getIconsInputSchema>) => Promise<CallToolResult>;
@@ -23,11 +23,13 @@ export declare const listGetTokensTool: {
23
23
  idempotentHint: boolean;
24
24
  openWorldHint: boolean;
25
25
  };
26
- inputSchema: import("zod-to-json-schema").JsonSchema7Type & {
27
- $schema?: string | undefined;
28
- definitions?: {
29
- [key: string]: import("zod-to-json-schema").JsonSchema7Type;
26
+ inputSchema: {
27
+ [x: string]: unknown;
28
+ type: "object";
29
+ properties?: {
30
+ [x: string]: unknown;
30
31
  } | undefined;
32
+ required?: string[] | undefined;
31
33
  };
32
34
  };
33
35
  export declare const getTokensTool: (params: z.infer<typeof getTokensInputSchema>) => Promise<CallToolResult>;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ *
4
+ * Structured content for tokens generated from token-metadata.
5
+ *
6
+ * @codegen <<SignedSource::41dd1fd7431557df57b792c2eb5e5f70>>
7
+ * @codegenCommand yarn build structured-docs
8
+ */
9
+ export interface TokenStructuredContent {
10
+ content: string;
11
+ [key: string]: any;
12
+ }
13
+ export declare const tokenStructuredContent: TokenStructuredContent[];
@@ -2,7 +2,6 @@ import { type Tool } from '@modelcontextprotocol/sdk/types.js';
2
2
  import type { z } from 'zod';
3
3
  export declare const getToolRegistry: () => Record<string, {
4
4
  handler: (params: any) => Promise<any>;
5
- inputSchema: z.ZodSchema | null;
5
+ inputSchema: z.AnyZodObject | null;
6
6
  tool: Tool;
7
7
  }>;
8
- export type { TokenSchema, ContentSchema } from './structured-content/types';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ *
4
+ * Structured content for icons generated from icon-metadata.
5
+ *
6
+ * @codegen <<SignedSource::8e0ae17013bff5b1edf9ddc66f016d9b>>
7
+ * @codegenCommand yarn build structured-docs
8
+ */
9
+ export interface IconStructuredContent {
10
+ content: string;
11
+ [key: string]: any;
12
+ }
13
+ export declare const iconStructuredContent: IconStructuredContent[];
@@ -0,0 +1,35 @@
1
+ import type { CallToolResult } from '@modelcontextprotocol/sdk/types';
2
+ import { z } from 'zod';
3
+ export declare const getIconsInputSchema: z.ZodObject<{
4
+ terms: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ exactName: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ terms?: string[] | undefined;
9
+ limit?: number | undefined;
10
+ exactName?: boolean | undefined;
11
+ }, {
12
+ terms?: string[] | undefined;
13
+ limit?: number | undefined;
14
+ exactName?: boolean | undefined;
15
+ }>;
16
+ export declare const listGetIconsTool: {
17
+ name: string;
18
+ description: string;
19
+ annotations: {
20
+ title: string;
21
+ readOnlyHint: boolean;
22
+ destructiveHint: boolean;
23
+ idempotentHint: boolean;
24
+ openWorldHint: boolean;
25
+ };
26
+ inputSchema: {
27
+ [x: string]: unknown;
28
+ type: "object";
29
+ properties?: {
30
+ [x: string]: unknown;
31
+ } | undefined;
32
+ required?: string[] | undefined;
33
+ };
34
+ };
35
+ export declare const getIconsTool: (params: z.infer<typeof getIconsInputSchema>) => Promise<CallToolResult>;
@@ -23,11 +23,13 @@ export declare const listGetTokensTool: {
23
23
  idempotentHint: boolean;
24
24
  openWorldHint: boolean;
25
25
  };
26
- inputSchema: import("zod-to-json-schema").JsonSchema7Type & {
27
- $schema?: string | undefined;
28
- definitions?: {
29
- [key: string]: import("zod-to-json-schema").JsonSchema7Type;
26
+ inputSchema: {
27
+ [x: string]: unknown;
28
+ type: "object";
29
+ properties?: {
30
+ [x: string]: unknown;
30
31
  } | undefined;
32
+ required?: string[] | undefined;
31
33
  };
32
34
  };
33
35
  export declare const getTokensTool: (params: z.infer<typeof getTokensInputSchema>) => Promise<CallToolResult>;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ *
4
+ * Structured content for tokens generated from token-metadata.
5
+ *
6
+ * @codegen <<SignedSource::41dd1fd7431557df57b792c2eb5e5f70>>
7
+ * @codegenCommand yarn build structured-docs
8
+ */
9
+ export interface TokenStructuredContent {
10
+ content: string;
11
+ [key: string]: any;
12
+ }
13
+ export declare const tokenStructuredContent: TokenStructuredContent[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/ads-mcp",
3
- "version": "0.9.0",
3
+ "version": "0.10.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",
@@ -12,6 +12,10 @@
12
12
  "team": "Design System Team"
13
13
  },
14
14
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
15
+ "scripts": {
16
+ "ak-postbuild": "yarn workspace @atlassian/structured-docs build",
17
+ "prepare": "yarn ak-postbuild"
18
+ },
15
19
  "bin": "index.js",
16
20
  "main": "dist/cjs/index.js",
17
21
  "types": "dist/types/index.d.ts",
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.tokenToMarkdown = tokenToMarkdown;
7
- function tokenToMarkdown(token) {
8
- return "# ".concat(token.name, "\n\n").concat(token.description, "\n\nExample Value: `").concat(token.exampleValue, "`\n");
9
- }
10
-
11
- // When it comes time to generate HTML content, we can add `tokenToHtml` here.
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,10 +0,0 @@
1
- export function tokenToMarkdown(token) {
2
- return `# ${token.name}
3
-
4
- ${token.description}
5
-
6
- Example Value: \`${token.exampleValue}\`
7
- `;
8
- }
9
-
10
- // When it comes time to generate HTML content, we can add `tokenToHtml` here.
File without changes
@@ -1,5 +0,0 @@
1
- export function tokenToMarkdown(token) {
2
- return "# ".concat(token.name, "\n\n").concat(token.description, "\n\nExample Value: `").concat(token.exampleValue, "`\n");
3
- }
4
-
5
- // When it comes time to generate HTML content, we can add `tokenToHtml` here.
File without changes
@@ -1,2 +0,0 @@
1
- import { type TokenSchema } from '../types';
2
- export declare function tokenToMarkdown(token: TokenSchema): string;
@@ -1,20 +0,0 @@
1
- export type TokenSchema = {
2
- contentType: 'token';
3
- /**
4
- * The name of the token, e.g. `color.text`
5
- */
6
- name: string;
7
- /**
8
- * The constituent parts of the tokens' name, e.g. `['color', 'text', '[default]' ]
9
- */
10
- path: string[];
11
- /**
12
- * A brief explanation of where and how to use the token
13
- */
14
- description: string;
15
- /**
16
- * CSS value to use as an example of what this token might look like
17
- */
18
- exampleValue: string;
19
- };
20
- export type ContentSchema = TokenSchema;
@@ -1,2 +0,0 @@
1
- import { type TokenSchema } from '../types';
2
- export declare function tokenToMarkdown(token: TokenSchema): string;
@@ -1,20 +0,0 @@
1
- export type TokenSchema = {
2
- contentType: 'token';
3
- /**
4
- * The name of the token, e.g. `color.text`
5
- */
6
- name: string;
7
- /**
8
- * The constituent parts of the tokens' name, e.g. `['color', 'text', '[default]' ]
9
- */
10
- path: string[];
11
- /**
12
- * A brief explanation of where and how to use the token
13
- */
14
- description: string;
15
- /**
16
- * CSS value to use as an example of what this token might look like
17
- */
18
- exampleValue: string;
19
- };
20
- export type ContentSchema = TokenSchema;