@atlaskit/ads-mcp 0.15.0 → 0.15.1
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 +6 -0
- package/dist/cjs/helpers/index.js +2 -0
- package/dist/cjs/helpers/validation.js +2 -0
- package/dist/cjs/tools/analyze-a11y/index.js +1 -1
- package/dist/cjs/tools/get-a11y-guidelines/index.js +1 -1
- package/dist/cjs/tools/get-all-icons/index.js +2 -0
- package/dist/cjs/tools/get-all-tokens/index.js +2 -0
- package/dist/cjs/tools/get-components/index.js +2 -0
- package/dist/cjs/tools/get-icons/index.js +2 -0
- package/dist/cjs/tools/get-lint-rules/index.js +2 -0
- package/dist/cjs/tools/get-tokens/index.js +2 -0
- package/dist/cjs/tools/i18n-conversion/index.js +2 -0
- package/dist/cjs/tools/migration-guides/index.js +2 -0
- package/dist/cjs/tools/plan/index.js +1 -1
- package/dist/cjs/tools/search-components/index.js +2 -0
- package/dist/cjs/tools/search-icons/index.js +2 -0
- package/dist/cjs/tools/search-tokens/index.js +2 -0
- package/dist/cjs/tools/suggest-a11y-fixes/index.js +1 -1
- package/dist/es2019/helpers/index.js +2 -0
- package/dist/es2019/helpers/validation.js +2 -0
- package/dist/es2019/tools/analyze-a11y/index.js +2 -0
- package/dist/es2019/tools/get-a11y-guidelines/index.js +2 -0
- package/dist/es2019/tools/get-all-icons/index.js +2 -0
- package/dist/es2019/tools/get-all-tokens/index.js +2 -0
- package/dist/es2019/tools/get-components/index.js +2 -0
- package/dist/es2019/tools/get-icons/index.js +2 -0
- package/dist/es2019/tools/get-lint-rules/index.js +2 -0
- package/dist/es2019/tools/get-tokens/index.js +2 -0
- package/dist/es2019/tools/i18n-conversion/index.js +2 -0
- package/dist/es2019/tools/migration-guides/index.js +2 -0
- package/dist/es2019/tools/plan/index.js +2 -0
- package/dist/es2019/tools/search-components/index.js +2 -0
- package/dist/es2019/tools/search-icons/index.js +2 -0
- package/dist/es2019/tools/search-tokens/index.js +2 -0
- package/dist/es2019/tools/suggest-a11y-fixes/index.js +2 -0
- package/dist/esm/helpers/index.js +2 -0
- package/dist/esm/helpers/validation.js +2 -0
- package/dist/esm/tools/analyze-a11y/index.js +2 -0
- package/dist/esm/tools/get-a11y-guidelines/index.js +2 -0
- package/dist/esm/tools/get-all-icons/index.js +2 -0
- package/dist/esm/tools/get-all-tokens/index.js +2 -0
- package/dist/esm/tools/get-components/index.js +2 -0
- package/dist/esm/tools/get-icons/index.js +2 -0
- package/dist/esm/tools/get-lint-rules/index.js +2 -0
- package/dist/esm/tools/get-tokens/index.js +2 -0
- package/dist/esm/tools/i18n-conversion/index.js +2 -0
- package/dist/esm/tools/migration-guides/index.js +2 -0
- package/dist/esm/tools/plan/index.js +2 -0
- package/dist/esm/tools/search-components/index.js +2 -0
- package/dist/esm/tools/search-icons/index.js +2 -0
- package/dist/esm/tools/search-tokens/index.js +2 -0
- package/dist/esm/tools/suggest-a11y-fixes/index.js +2 -0
- package/dist/types/helpers/index.d.ts +1 -1
- package/dist/types/helpers/validation.d.ts +1 -1
- package/dist/types/tools/analyze-a11y/index.d.ts +3 -3
- package/dist/types/tools/get-a11y-guidelines/index.d.ts +2 -2
- package/dist/types/tools/get-all-icons/index.d.ts +1 -1
- package/dist/types/tools/get-all-tokens/index.d.ts +1 -1
- package/dist/types/tools/get-components/index.d.ts +1 -1
- package/dist/types/tools/get-icons/index.d.ts +4 -4
- package/dist/types/tools/get-lint-rules/index.d.ts +1 -1
- package/dist/types/tools/get-tokens/index.d.ts +4 -4
- package/dist/types/tools/i18n-conversion/index.d.ts +5 -7
- package/dist/types/tools/migration-guides/index.d.ts +2 -2
- package/dist/types/tools/plan/index.d.ts +5 -5
- package/dist/types/tools/search-components/index.d.ts +3 -3
- package/dist/types/tools/search-icons/index.d.ts +3 -3
- package/dist/types/tools/search-tokens/index.d.ts +3 -3
- package/dist/types/tools/suggest-a11y-fixes/index.d.ts +2 -2
- package/dist/types-ts4.5/helpers/index.d.ts +1 -1
- package/dist/types-ts4.5/helpers/validation.d.ts +1 -1
- package/dist/types-ts4.5/tools/analyze-a11y/index.d.ts +3 -3
- package/dist/types-ts4.5/tools/get-a11y-guidelines/index.d.ts +2 -2
- package/dist/types-ts4.5/tools/get-all-icons/index.d.ts +1 -1
- package/dist/types-ts4.5/tools/get-all-tokens/index.d.ts +1 -1
- package/dist/types-ts4.5/tools/get-components/index.d.ts +1 -1
- package/dist/types-ts4.5/tools/get-icons/index.d.ts +4 -4
- package/dist/types-ts4.5/tools/get-lint-rules/index.d.ts +1 -1
- package/dist/types-ts4.5/tools/get-tokens/index.d.ts +4 -4
- package/dist/types-ts4.5/tools/i18n-conversion/index.d.ts +5 -5
- package/dist/types-ts4.5/tools/migration-guides/index.d.ts +2 -2
- package/dist/types-ts4.5/tools/plan/index.d.ts +5 -5
- package/dist/types-ts4.5/tools/search-components/index.d.ts +3 -3
- package/dist/types-ts4.5/tools/search-icons/index.d.ts +3 -3
- package/dist/types-ts4.5/tools/search-tokens/index.d.ts +3 -3
- package/dist/types-ts4.5/tools/suggest-a11y-fixes/index.d.ts +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.zodToJsonSchema = exports.cleanQuery = void 0;
|
|
7
7
|
var _zodToJsonSchema = require("zod-to-json-schema");
|
|
8
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
9
|
+
|
|
8
10
|
var cleanQuery = exports.cleanQuery = function cleanQuery(query) {
|
|
9
11
|
return query.trim().toLowerCase().replace(/\s+/g, '');
|
|
10
12
|
};
|
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.validateToolArguments = validateToolArguments;
|
|
7
7
|
var _index = require("./index");
|
|
8
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
9
|
+
|
|
8
10
|
/**
|
|
9
11
|
* Validates arguments against a Zod schema and returns a discriminated union result.
|
|
10
12
|
*
|
|
@@ -15,7 +15,7 @@ var _puppeteer2 = _interopRequireDefault(require("puppeteer"));
|
|
|
15
15
|
var _zod = require("zod");
|
|
16
16
|
var _helpers = require("../../helpers");
|
|
17
17
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
19
19
|
var analyzeA11yInputSchema = exports.analyzeA11yInputSchema = _zod.z.object({
|
|
20
20
|
code: _zod.z.string().describe('React component code to analyze for accessibility'),
|
|
21
21
|
componentName: _zod.z.string().describe('Name of the component being analyzed').optional(),
|
|
@@ -12,7 +12,7 @@ var _zod = require("zod");
|
|
|
12
12
|
var _helpers = require("../../helpers");
|
|
13
13
|
var _guidelines = require("./guidelines");
|
|
14
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
16
16
|
var topics = Object.keys(_guidelines.accessibilityGuidelines);
|
|
17
17
|
var getA11yGuidelinesInputSchema = exports.getA11yGuidelinesInputSchema = _zod.z.object({
|
|
18
18
|
topic: _zod.z.string().optional().describe('Select the topic to get the accessibility guidelines for: ' + topics.join(', '))
|
|
@@ -11,6 +11,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
11
11
|
var _zod = require("zod");
|
|
12
12
|
var _metadata = require("@atlaskit/icon/metadata");
|
|
13
13
|
var _helpers = require("../../helpers");
|
|
14
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
15
|
+
|
|
14
16
|
var icons = Object.entries(_metadata.coreIconMetadata).map(function (_ref) {
|
|
15
17
|
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
|
|
16
18
|
_key = _ref2[0],
|
|
@@ -10,6 +10,8 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
10
10
|
var _zod = require("zod");
|
|
11
11
|
var _tokenMetadata = require("@atlaskit/tokens/token-metadata");
|
|
12
12
|
var _helpers = require("../../helpers");
|
|
13
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
14
|
+
|
|
13
15
|
var inputSchema = _zod.z.object({});
|
|
14
16
|
var listGetAllTokensTool = exports.listGetAllTokensTool = {
|
|
15
17
|
name: 'ads_get_all_tokens',
|
|
@@ -10,6 +10,8 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
10
10
|
var _zod = require("zod");
|
|
11
11
|
var _helpers = require("../../helpers");
|
|
12
12
|
var _components = require("./components");
|
|
13
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
14
|
+
|
|
13
15
|
var listGetComponentsTool = exports.listGetComponentsTool = {
|
|
14
16
|
name: 'ads_get_components',
|
|
15
17
|
description: "Fetch all Atlassian Design System components. Only use when `ads_search_components` does not return what you're looking for.",
|
|
@@ -11,6 +11,8 @@ var _fuse = _interopRequireDefault(require("fuse.js"));
|
|
|
11
11
|
var _zod = require("zod");
|
|
12
12
|
var _helpers = require("../../helpers");
|
|
13
13
|
var _iconStructuredContent = require("./icon-structured-content.codegen");
|
|
14
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
15
|
+
|
|
14
16
|
var getIconsInputSchema = exports.getIconsInputSchema = _zod.z.object({
|
|
15
17
|
terms: _zod.z.array(_zod.z.string()).default([]).describe('An array of search terms to find icons by name, keywords, or categorization, eg. `["search", "folder", "user"]`. If empty or not provided, returns all icons.').optional(),
|
|
16
18
|
limit: _zod.z.number().default(1).describe('Maximum number of results per search term in the array (default: 1)').optional(),
|
|
@@ -11,6 +11,8 @@ var _fuse = _interopRequireDefault(require("fuse.js"));
|
|
|
11
11
|
var _zod = require("zod");
|
|
12
12
|
var _helpers = require("../../helpers");
|
|
13
13
|
var _lintRulesStructuredContent = require("./lint-rules-structured-content.codegen");
|
|
14
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
15
|
+
|
|
14
16
|
var getLintRulesInputSchema = exports.getLintRulesInputSchema = _zod.z.object({
|
|
15
17
|
terms: _zod.z.array(_zod.z.string()).default([]).describe('An array of search terms to find lint rules by name or description, eg. `["icon-label", "xcss", "design token"]`. If empty or not provided, returns all lint rules.').optional(),
|
|
16
18
|
limit: _zod.z.number().default(1).describe('Maximum number of results per search term in the array (default: 1)').optional(),
|
|
@@ -11,6 +11,8 @@ var _fuse = _interopRequireDefault(require("fuse.js"));
|
|
|
11
11
|
var _zod = require("zod");
|
|
12
12
|
var _helpers = require("../../helpers");
|
|
13
13
|
var _tokenStructuredContent = require("./token-structured-content.codegen");
|
|
14
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
15
|
+
|
|
14
16
|
var getTokensInputSchema = exports.getTokensInputSchema = _zod.z.object({
|
|
15
17
|
terms: _zod.z.array(_zod.z.string()).default([]).describe('An array of search terms to find tokens by name or description, eg. `["spacing", "inverted text", "background primary"]`. If empty or not provided, returns all tokens.').optional(),
|
|
16
18
|
limit: _zod.z.number().default(1).describe('Maximum number of results per search term in the array (default: 1)').optional(),
|
|
@@ -10,6 +10,8 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
10
10
|
var _zod = require("zod");
|
|
11
11
|
var _helpers = require("../../helpers");
|
|
12
12
|
var _guide = require("./guide");
|
|
13
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
14
|
+
|
|
13
15
|
var i18nConversionInputSchema = exports.i18nConversionInputSchema = _zod.z.object({
|
|
14
16
|
guide: _zod.z.enum(['hardcoded-string-to-formatmessage']).describe('The i18n conversion guide to retrieve.')
|
|
15
17
|
});
|
|
@@ -10,6 +10,8 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
10
10
|
var _zod = require("zod");
|
|
11
11
|
var _helpers = require("../../helpers");
|
|
12
12
|
var _registry = require("./registry");
|
|
13
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
14
|
+
|
|
13
15
|
// Build the enum dynamically from the registry
|
|
14
16
|
var migrationIds = (0, _registry.getAvailableMigrationIds)();
|
|
15
17
|
var migrationDescriptions = (0, _registry.getAvailableMigrationsDescription)();
|
|
@@ -14,7 +14,7 @@ var _searchComponents = require("../search-components");
|
|
|
14
14
|
var _searchIcons = require("../search-icons");
|
|
15
15
|
var _searchTokens = require("../search-tokens");
|
|
16
16
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
18
18
|
var planInputSchema = exports.planInputSchema = _zod.z.object({
|
|
19
19
|
tokens: _zod.z.array(_zod.z.string()).describe('Array of terms to search for tokens, eg. `["spacing", "inverted text", "background primary"]`. Provide a minimum of 2 terms when known.'),
|
|
20
20
|
icons: _zod.z.array(_zod.z.string()).describe('Array of terms to search for icons, eg. `["search", "folder", "user"]`. Provide a minimum of 2 terms when known.'),
|
|
@@ -11,6 +11,8 @@ var _fuse = _interopRequireDefault(require("fuse.js"));
|
|
|
11
11
|
var _zod = require("zod");
|
|
12
12
|
var _helpers = require("../../helpers");
|
|
13
13
|
var _components = require("../get-components/components");
|
|
14
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
15
|
+
|
|
14
16
|
var searchComponentsInputSchema = exports.searchComponentsInputSchema = _zod.z.object({
|
|
15
17
|
terms: _zod.z.array(_zod.z.string()).describe('An array of search terms to find components by name, package name, description, or example, eg. `["button", "input", "select"]`'),
|
|
16
18
|
limit: _zod.z.number().default(1).describe('Maximum number of results per search term in the array (default: 1)').optional(),
|
|
@@ -12,6 +12,8 @@ var _fuse = _interopRequireDefault(require("fuse.js"));
|
|
|
12
12
|
var _zod = require("zod");
|
|
13
13
|
var _metadata = require("@atlaskit/icon/metadata");
|
|
14
14
|
var _helpers = require("../../helpers");
|
|
15
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
16
|
+
|
|
15
17
|
var searchIconsInputSchema = exports.searchIconsInputSchema = _zod.z.object({
|
|
16
18
|
terms: _zod.z.array(_zod.z.string()).describe('An array of search terms to find icons by name, keywords, or categorization, eg. `["search", "folder", "user"]`'),
|
|
17
19
|
limit: _zod.z.number().default(1).describe('Maximum number of results per search term in the array (default: 1)').optional(),
|
|
@@ -11,6 +11,8 @@ var _fuse = _interopRequireDefault(require("fuse.js"));
|
|
|
11
11
|
var _zod = require("zod");
|
|
12
12
|
var _tokenMetadata = require("@atlaskit/tokens/token-metadata");
|
|
13
13
|
var _helpers = require("../../helpers");
|
|
14
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
15
|
+
|
|
14
16
|
var searchTokensInputSchema = exports.searchTokensInputSchema = _zod.z.object({
|
|
15
17
|
terms: _zod.z.array(_zod.z.string()).describe('An array of search terms to find tokens by name or description, eg. `["spacing", "inverted text", "background primary"]`'),
|
|
16
18
|
limit: _zod.z.number().default(1).describe('Maximum number of results per search term in the array (default: 1)').optional(),
|
|
@@ -17,7 +17,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
17
17
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
18
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
19
19
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
20
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
20
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } /* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
21
21
|
var suggestA11yFixesInputSchema = exports.suggestA11yFixesInputSchema = _zod.z.object({
|
|
22
22
|
violation: _zod.z.string().describe('Description of the accessibility violation'),
|
|
23
23
|
code: _zod.z.string().describe('The problematic code that needs fixing'),
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
2
|
+
|
|
1
3
|
import { zodToJsonSchema as zodToJsonSchemaHelper } from 'zod-to-json-schema';
|
|
2
4
|
export const cleanQuery = query => query.trim().toLowerCase().replace(/\s+/g, '');
|
|
3
5
|
export const zodToJsonSchema = (schema, options) => {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
2
|
+
|
|
1
3
|
import { z } from 'zod';
|
|
2
4
|
import { zodToJsonSchema } from '../../helpers';
|
|
3
5
|
import { getAvailableMigrationIds, getAvailableMigrationsDescription, migrationRegistry } from './registry';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
2
|
+
|
|
1
3
|
import { zodToJsonSchema as zodToJsonSchemaHelper } from 'zod-to-json-schema';
|
|
2
4
|
export var cleanQuery = function cleanQuery(query) {
|
|
3
5
|
return query.trim().toLowerCase().replace(/\s+/g, '');
|
|
@@ -5,6 +5,8 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
5
5
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
import { AxePuppeteer } from '@axe-core/puppeteer';
|
|
8
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
9
|
+
|
|
8
10
|
import axe from 'axe-core';
|
|
9
11
|
import puppeteer from 'puppeteer';
|
|
10
12
|
import { z } from 'zod';
|
|
@@ -3,6 +3,8 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
7
|
+
|
|
6
8
|
import { z } from 'zod';
|
|
7
9
|
import { zodToJsonSchema } from '../../helpers';
|
|
8
10
|
import { accessibilityGuidelines } from './guidelines';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
5
|
+
|
|
4
6
|
import { z } from 'zod';
|
|
5
7
|
import { coreIconMetadata } from '@atlaskit/icon/metadata';
|
|
6
8
|
import { zodToJsonSchema } from '../../helpers';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
4
|
+
|
|
3
5
|
import { z } from 'zod';
|
|
4
6
|
import { tokens } from '@atlaskit/tokens/token-metadata';
|
|
5
7
|
import { zodToJsonSchema } from '../../helpers';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
4
|
+
|
|
3
5
|
import { z } from 'zod';
|
|
4
6
|
import { zodToJsonSchema } from '../../helpers';
|
|
5
7
|
import { components } from './components';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
4
|
+
|
|
3
5
|
import Fuse from 'fuse.js';
|
|
4
6
|
import { z } from 'zod';
|
|
5
7
|
import { cleanQuery, zodToJsonSchema } from '../../helpers';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
4
|
+
|
|
3
5
|
import Fuse from 'fuse.js';
|
|
4
6
|
import { z } from 'zod';
|
|
5
7
|
import { cleanQuery, zodToJsonSchema } from '../../helpers';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
4
|
+
|
|
3
5
|
import Fuse from 'fuse.js';
|
|
4
6
|
import { z } from 'zod';
|
|
5
7
|
import { cleanQuery, zodToJsonSchema } from '../../helpers';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
4
|
+
|
|
3
5
|
import { z } from 'zod';
|
|
4
6
|
import { zodToJsonSchema } from '../../helpers';
|
|
5
7
|
import { i18nConversionGuide } from './guide';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
4
|
+
|
|
3
5
|
import { z } from 'zod';
|
|
4
6
|
import { zodToJsonSchema } from '../../helpers';
|
|
5
7
|
import { getAvailableMigrationIds, getAvailableMigrationsDescription, migrationRegistry } from './registry';
|
|
@@ -3,6 +3,8 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
7
|
+
|
|
6
8
|
import { z } from 'zod';
|
|
7
9
|
import { zodToJsonSchema } from '../../helpers';
|
|
8
10
|
import { searchComponentsTool } from '../search-components';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
4
|
+
|
|
3
5
|
import Fuse from 'fuse.js';
|
|
4
6
|
import { z } from 'zod';
|
|
5
7
|
import { cleanQuery, zodToJsonSchema } from '../../helpers';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
5
|
+
|
|
4
6
|
import Fuse from 'fuse.js';
|
|
5
7
|
import { z } from 'zod';
|
|
6
8
|
import { coreIconMetadata } from '@atlaskit/icon/metadata';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
4
|
+
|
|
3
5
|
import Fuse from 'fuse.js';
|
|
4
6
|
import { z } from 'zod';
|
|
5
7
|
import { tokens } from '@atlaskit/tokens/token-metadata';
|
|
@@ -7,6 +7,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
8
8
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
9
9
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
10
|
+
/* eslint-disable-next-line import/extensions -- MCP SDK requires .js extensions for ESM imports */
|
|
11
|
+
|
|
10
12
|
import { z } from 'zod';
|
|
11
13
|
import { zodToJsonSchema } from '../../helpers';
|
|
12
14
|
import { accessibilityFixes } from './fixes';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { zodToJsonSchema as zodToJsonSchemaHelper } from 'zod-to-json-schema';
|
|
3
3
|
export declare const cleanQuery: (query: string) => string;
|
|
4
4
|
export declare const zodToJsonSchema: <T = Tool["inputSchema"]>(schema: Parameters<typeof zodToJsonSchemaHelper>[0], options?: Parameters<typeof zodToJsonSchemaHelper>[1]) => T;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const analyzeA11yInputSchema: z.ZodObject<{
|
|
4
4
|
code: z.ZodString;
|
|
5
5
|
componentName: z.ZodOptional<z.ZodString>;
|
|
6
6
|
context: z.ZodOptional<z.ZodString>;
|
|
7
7
|
includePatternAnalysis: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
8
|
-
},
|
|
8
|
+
}, 'strip', z.ZodTypeAny, {
|
|
9
9
|
code: string;
|
|
10
10
|
componentName?: string | undefined;
|
|
11
11
|
context?: string | undefined;
|
|
@@ -22,7 +22,7 @@ export declare const analyzeA11yLocalhostInputSchema: z.ZodObject<{
|
|
|
22
22
|
componentName: z.ZodOptional<z.ZodString>;
|
|
23
23
|
context: z.ZodOptional<z.ZodString>;
|
|
24
24
|
selector: z.ZodOptional<z.ZodString>;
|
|
25
|
-
},
|
|
25
|
+
}, 'strip', z.ZodTypeAny, {
|
|
26
26
|
url: string;
|
|
27
27
|
componentName?: string | undefined;
|
|
28
28
|
context?: string | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const getA11yGuidelinesInputSchema: z.ZodObject<{
|
|
4
4
|
topic: z.ZodOptional<z.ZodString>;
|
|
5
|
-
},
|
|
5
|
+
}, 'strip', z.ZodTypeAny, {
|
|
6
6
|
topic?: string | undefined;
|
|
7
7
|
}, {
|
|
8
8
|
topic?: string | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { CallToolResult } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const getIconsInputSchema: z.ZodObject<{
|
|
4
|
-
terms: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString,
|
|
4
|
+
terms: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, 'many'>>>;
|
|
5
5
|
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
6
|
exactName: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
|
-
},
|
|
7
|
+
}, 'strip', z.ZodTypeAny, {
|
|
8
8
|
terms?: string[] | undefined;
|
|
9
9
|
limit?: number | undefined;
|
|
10
10
|
exactName?: boolean | undefined;
|
|
@@ -25,7 +25,7 @@ export declare const listGetIconsTool: {
|
|
|
25
25
|
};
|
|
26
26
|
inputSchema: {
|
|
27
27
|
[x: string]: unknown;
|
|
28
|
-
type:
|
|
28
|
+
type: 'object';
|
|
29
29
|
properties?: {
|
|
30
30
|
[x: string]: unknown;
|
|
31
31
|
} | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CallToolResult } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const getLintRulesInputSchema: z.ZodObject<{
|
|
4
4
|
terms: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, 'many'>>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { CallToolResult } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const getTokensInputSchema: z.ZodObject<{
|
|
4
|
-
terms: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString,
|
|
4
|
+
terms: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, 'many'>>>;
|
|
5
5
|
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
6
|
exactName: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
|
-
},
|
|
7
|
+
}, 'strip', z.ZodTypeAny, {
|
|
8
8
|
terms?: string[] | undefined;
|
|
9
9
|
limit?: number | undefined;
|
|
10
10
|
exactName?: boolean | undefined;
|
|
@@ -25,7 +25,7 @@ export declare const listGetTokensTool: {
|
|
|
25
25
|
};
|
|
26
26
|
inputSchema: {
|
|
27
27
|
[x: string]: unknown;
|
|
28
|
-
type:
|
|
28
|
+
type: 'object';
|
|
29
29
|
properties?: {
|
|
30
30
|
[x: string]: unknown;
|
|
31
31
|
} | undefined;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import type { Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const i18nConversionInputSchema: z.ZodObject<{
|
|
4
|
-
guide: z.ZodEnum<[
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
guide: "hardcoded-string-to-formatmessage";
|
|
4
|
+
guide: z.ZodEnum<['hardcoded-string-to-formatmessage']>;
|
|
5
|
+
}, 'strip', z.ZodTypeAny, {
|
|
6
|
+
guide: 'hardcoded-string-to-formatmessage';
|
|
9
7
|
}, {
|
|
10
|
-
guide:
|
|
8
|
+
guide: 'hardcoded-string-to-formatmessage';
|
|
11
9
|
}>;
|
|
12
10
|
export declare const listI18nConversionTool: Tool;
|
|
13
11
|
export declare const i18nConversionTool: (_params: z.infer<typeof i18nConversionInputSchema>) => Promise<{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const migrationGuidesInputSchema: z.ZodObject<{
|
|
4
4
|
migration: z.ZodEnum<[string]>;
|
|
5
5
|
description: z.ZodEnum<[string]>;
|
|
6
|
-
},
|
|
6
|
+
}, 'strip', z.ZodTypeAny, {
|
|
7
7
|
migration: string;
|
|
8
8
|
description: string;
|
|
9
9
|
}, {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const planInputSchema: z.ZodObject<{
|
|
4
|
-
tokens: z.ZodArray<z.ZodString,
|
|
5
|
-
icons: z.ZodArray<z.ZodString,
|
|
6
|
-
components: z.ZodArray<z.ZodString,
|
|
4
|
+
tokens: z.ZodArray<z.ZodString, 'many'>;
|
|
5
|
+
icons: z.ZodArray<z.ZodString, 'many'>;
|
|
6
|
+
components: z.ZodArray<z.ZodString, 'many'>;
|
|
7
7
|
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
8
8
|
exactName: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
9
|
-
},
|
|
9
|
+
}, 'strip', z.ZodTypeAny, {
|
|
10
10
|
tokens: string[];
|
|
11
11
|
icons: string[];
|
|
12
12
|
components: string[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { CallToolResult, Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { CallToolResult, Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const searchComponentsInputSchema: z.ZodObject<{
|
|
4
|
-
terms: z.ZodArray<z.ZodString,
|
|
4
|
+
terms: z.ZodArray<z.ZodString, 'many'>;
|
|
5
5
|
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
6
|
exactName: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
|
-
},
|
|
7
|
+
}, 'strip', z.ZodTypeAny, {
|
|
8
8
|
terms: string[];
|
|
9
9
|
limit?: number | undefined;
|
|
10
10
|
exactName?: boolean | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { CallToolResult, Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { CallToolResult, Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const searchIconsInputSchema: z.ZodObject<{
|
|
4
|
-
terms: z.ZodArray<z.ZodString,
|
|
4
|
+
terms: z.ZodArray<z.ZodString, 'many'>;
|
|
5
5
|
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
6
|
exactName: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
|
-
},
|
|
7
|
+
}, 'strip', z.ZodTypeAny, {
|
|
8
8
|
terms: string[];
|
|
9
9
|
limit?: number | undefined;
|
|
10
10
|
exactName?: boolean | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { CallToolResult, Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { CallToolResult, Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const searchTokensInputSchema: z.ZodObject<{
|
|
4
|
-
terms: z.ZodArray<z.ZodString,
|
|
4
|
+
terms: z.ZodArray<z.ZodString, 'many'>;
|
|
5
5
|
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
6
|
exactName: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
|
-
},
|
|
7
|
+
}, 'strip', z.ZodTypeAny, {
|
|
8
8
|
terms: string[];
|
|
9
9
|
limit?: number | undefined;
|
|
10
10
|
exactName?: boolean | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const suggestA11yFixesInputSchema: z.ZodObject<{
|
|
4
4
|
violation: z.ZodString;
|
|
5
5
|
code: z.ZodString;
|
|
6
6
|
component: z.ZodOptional<z.ZodString>;
|
|
7
7
|
context: z.ZodOptional<z.ZodString>;
|
|
8
|
-
},
|
|
8
|
+
}, 'strip', z.ZodTypeAny, {
|
|
9
9
|
code: string;
|
|
10
10
|
violation: string;
|
|
11
11
|
context?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { zodToJsonSchema as zodToJsonSchemaHelper } from 'zod-to-json-schema';
|
|
3
3
|
export declare const cleanQuery: (query: string) => string;
|
|
4
4
|
export declare const zodToJsonSchema: <T = Tool["inputSchema"]>(schema: Parameters<typeof zodToJsonSchemaHelper>[0], options?: Parameters<typeof zodToJsonSchemaHelper>[1]) => T;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const analyzeA11yInputSchema: z.ZodObject<{
|
|
4
4
|
code: z.ZodString;
|
|
5
5
|
componentName: z.ZodOptional<z.ZodString>;
|
|
6
6
|
context: z.ZodOptional<z.ZodString>;
|
|
7
7
|
includePatternAnalysis: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
8
|
-
},
|
|
8
|
+
}, 'strip', z.ZodTypeAny, {
|
|
9
9
|
code: string;
|
|
10
10
|
componentName?: string | undefined;
|
|
11
11
|
context?: string | undefined;
|
|
@@ -22,7 +22,7 @@ export declare const analyzeA11yLocalhostInputSchema: z.ZodObject<{
|
|
|
22
22
|
componentName: z.ZodOptional<z.ZodString>;
|
|
23
23
|
context: z.ZodOptional<z.ZodString>;
|
|
24
24
|
selector: z.ZodOptional<z.ZodString>;
|
|
25
|
-
},
|
|
25
|
+
}, 'strip', z.ZodTypeAny, {
|
|
26
26
|
url: string;
|
|
27
27
|
componentName?: string | undefined;
|
|
28
28
|
context?: string | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const getA11yGuidelinesInputSchema: z.ZodObject<{
|
|
4
4
|
topic: z.ZodOptional<z.ZodString>;
|
|
5
|
-
},
|
|
5
|
+
}, 'strip', z.ZodTypeAny, {
|
|
6
6
|
topic?: string | undefined;
|
|
7
7
|
}, {
|
|
8
8
|
topic?: string | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { CallToolResult } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const getIconsInputSchema: z.ZodObject<{
|
|
4
|
-
terms: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString,
|
|
4
|
+
terms: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, 'many'>>>;
|
|
5
5
|
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
6
|
exactName: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
|
-
},
|
|
7
|
+
}, 'strip', z.ZodTypeAny, {
|
|
8
8
|
terms?: string[] | undefined;
|
|
9
9
|
limit?: number | undefined;
|
|
10
10
|
exactName?: boolean | undefined;
|
|
@@ -25,7 +25,7 @@ export declare const listGetIconsTool: {
|
|
|
25
25
|
};
|
|
26
26
|
inputSchema: {
|
|
27
27
|
[x: string]: unknown;
|
|
28
|
-
type:
|
|
28
|
+
type: 'object';
|
|
29
29
|
properties?: {
|
|
30
30
|
[x: string]: unknown;
|
|
31
31
|
} | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CallToolResult } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const getLintRulesInputSchema: z.ZodObject<{
|
|
4
4
|
terms: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, 'many'>>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { CallToolResult } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const getTokensInputSchema: z.ZodObject<{
|
|
4
|
-
terms: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString,
|
|
4
|
+
terms: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, 'many'>>>;
|
|
5
5
|
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
6
|
exactName: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
|
-
},
|
|
7
|
+
}, 'strip', z.ZodTypeAny, {
|
|
8
8
|
terms?: string[] | undefined;
|
|
9
9
|
limit?: number | undefined;
|
|
10
10
|
exactName?: boolean | undefined;
|
|
@@ -25,7 +25,7 @@ export declare const listGetTokensTool: {
|
|
|
25
25
|
};
|
|
26
26
|
inputSchema: {
|
|
27
27
|
[x: string]: unknown;
|
|
28
|
-
type:
|
|
28
|
+
type: 'object';
|
|
29
29
|
properties?: {
|
|
30
30
|
[x: string]: unknown;
|
|
31
31
|
} | undefined;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const i18nConversionInputSchema: z.ZodObject<{
|
|
4
4
|
guide: z.ZodEnum<[
|
|
5
|
-
|
|
5
|
+
'hardcoded-string-to-formatmessage'
|
|
6
6
|
]>;
|
|
7
|
-
},
|
|
8
|
-
guide:
|
|
7
|
+
}, 'strip', z.ZodTypeAny, {
|
|
8
|
+
guide: 'hardcoded-string-to-formatmessage';
|
|
9
9
|
}, {
|
|
10
|
-
guide:
|
|
10
|
+
guide: 'hardcoded-string-to-formatmessage';
|
|
11
11
|
}>;
|
|
12
12
|
export declare const listI18nConversionTool: Tool;
|
|
13
13
|
export declare const i18nConversionTool: (_params: z.infer<typeof i18nConversionInputSchema>) => Promise<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const migrationGuidesInputSchema: z.ZodObject<{
|
|
4
4
|
migration: z.ZodEnum<[
|
|
@@ -7,7 +7,7 @@ export declare const migrationGuidesInputSchema: z.ZodObject<{
|
|
|
7
7
|
description: z.ZodEnum<[
|
|
8
8
|
string
|
|
9
9
|
]>;
|
|
10
|
-
},
|
|
10
|
+
}, 'strip', z.ZodTypeAny, {
|
|
11
11
|
migration: string;
|
|
12
12
|
description: string;
|
|
13
13
|
}, {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const planInputSchema: z.ZodObject<{
|
|
4
|
-
tokens: z.ZodArray<z.ZodString,
|
|
5
|
-
icons: z.ZodArray<z.ZodString,
|
|
6
|
-
components: z.ZodArray<z.ZodString,
|
|
4
|
+
tokens: z.ZodArray<z.ZodString, 'many'>;
|
|
5
|
+
icons: z.ZodArray<z.ZodString, 'many'>;
|
|
6
|
+
components: z.ZodArray<z.ZodString, 'many'>;
|
|
7
7
|
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
8
8
|
exactName: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
9
|
-
},
|
|
9
|
+
}, 'strip', z.ZodTypeAny, {
|
|
10
10
|
tokens: string[];
|
|
11
11
|
icons: string[];
|
|
12
12
|
components: string[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { CallToolResult, Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { CallToolResult, Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const searchComponentsInputSchema: z.ZodObject<{
|
|
4
|
-
terms: z.ZodArray<z.ZodString,
|
|
4
|
+
terms: z.ZodArray<z.ZodString, 'many'>;
|
|
5
5
|
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
6
|
exactName: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
|
-
},
|
|
7
|
+
}, 'strip', z.ZodTypeAny, {
|
|
8
8
|
terms: string[];
|
|
9
9
|
limit?: number | undefined;
|
|
10
10
|
exactName?: boolean | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { CallToolResult, Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { CallToolResult, Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const searchIconsInputSchema: z.ZodObject<{
|
|
4
|
-
terms: z.ZodArray<z.ZodString,
|
|
4
|
+
terms: z.ZodArray<z.ZodString, 'many'>;
|
|
5
5
|
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
6
|
exactName: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
|
-
},
|
|
7
|
+
}, 'strip', z.ZodTypeAny, {
|
|
8
8
|
terms: string[];
|
|
9
9
|
limit?: number | undefined;
|
|
10
10
|
exactName?: boolean | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { CallToolResult, Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { CallToolResult, Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const searchTokensInputSchema: z.ZodObject<{
|
|
4
|
-
terms: z.ZodArray<z.ZodString,
|
|
4
|
+
terms: z.ZodArray<z.ZodString, 'many'>;
|
|
5
5
|
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
6
|
exactName: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
|
-
},
|
|
7
|
+
}, 'strip', z.ZodTypeAny, {
|
|
8
8
|
terms: string[];
|
|
9
9
|
limit?: number | undefined;
|
|
10
10
|
exactName?: boolean | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { Tool } from '@modelcontextprotocol/sdk/types';
|
|
1
|
+
import type { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const suggestA11yFixesInputSchema: z.ZodObject<{
|
|
4
4
|
violation: z.ZodString;
|
|
5
5
|
code: z.ZodString;
|
|
6
6
|
component: z.ZodOptional<z.ZodString>;
|
|
7
7
|
context: z.ZodOptional<z.ZodString>;
|
|
8
|
-
},
|
|
8
|
+
}, 'strip', z.ZodTypeAny, {
|
|
9
9
|
code: string;
|
|
10
10
|
violation: string;
|
|
11
11
|
context?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/ads-mcp",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1",
|
|
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",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@atlaskit/icon": "^
|
|
37
|
+
"@atlaskit/icon": "^31.0.0",
|
|
38
38
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
39
39
|
"@atlaskit/tokens": "^11.0.0",
|
|
40
40
|
"@axe-core/playwright": "^4.8.0",
|