@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.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/index.js +14 -9
- package/dist/cjs/tools/get-icons/icon-structured-content.codegen.js +2585 -0
- package/dist/cjs/tools/get-icons/index.js +133 -0
- package/dist/cjs/tools/get-tokens/index.js +15 -22
- package/dist/cjs/tools/get-tokens/token-structured-content.codegen.js +2261 -0
- package/dist/es2019/index.js +13 -9
- package/dist/es2019/tools/get-icons/icon-structured-content.codegen.js +2579 -0
- package/dist/es2019/tools/get-icons/index.js +108 -0
- package/dist/es2019/tools/get-tokens/index.js +7 -22
- package/dist/es2019/tools/get-tokens/token-structured-content.codegen.js +2255 -0
- package/dist/esm/index.js +14 -9
- package/dist/esm/tools/get-icons/icon-structured-content.codegen.js +2579 -0
- package/dist/esm/tools/get-icons/index.js +126 -0
- package/dist/esm/tools/get-tokens/index.js +15 -22
- package/dist/esm/tools/get-tokens/token-structured-content.codegen.js +2255 -0
- package/dist/types/index.d.ts +1 -2
- package/dist/types/tools/get-icons/icon-structured-content.codegen.d.ts +13 -0
- package/dist/types/tools/get-icons/index.d.ts +35 -0
- package/dist/types/tools/get-tokens/index.d.ts +6 -4
- package/dist/types/tools/get-tokens/token-structured-content.codegen.d.ts +13 -0
- package/dist/types-ts4.5/index.d.ts +1 -2
- package/dist/types-ts4.5/tools/get-icons/icon-structured-content.codegen.d.ts +13 -0
- package/dist/types-ts4.5/tools/get-icons/index.d.ts +35 -0
- package/dist/types-ts4.5/tools/get-tokens/index.d.ts +6 -4
- package/dist/types-ts4.5/tools/get-tokens/token-structured-content.codegen.d.ts +13 -0
- package/package.json +5 -1
- package/dist/cjs/structured-content/formatters/token.js +0 -11
- package/dist/cjs/structured-content/types.js +0 -1
- package/dist/es2019/structured-content/formatters/token.js +0 -10
- package/dist/es2019/structured-content/types.js +0 -0
- package/dist/esm/structured-content/formatters/token.js +0 -5
- package/dist/esm/structured-content/types.js +0 -0
- package/dist/types/structured-content/formatters/token.d.ts +0 -2
- package/dist/types/structured-content/types.d.ts +0 -20
- package/dist/types-ts4.5/structured-content/formatters/token.d.ts +0 -2
- package/dist/types-ts4.5/structured-content/types.d.ts +0 -20
package/dist/types/index.d.ts
CHANGED
|
@@ -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.
|
|
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:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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.
|
|
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:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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.
|
|
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";
|
|
File without changes
|
|
File without changes
|
|
@@ -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,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;
|