@atlaskit/ads-mcp 0.1.1 → 0.1.2
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 +8 -0
- package/README.md +8 -4
- package/index.js +7 -5
- package/package.json +2 -2
- package/tsconfig.app.json +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/ads-mcp
|
|
2
2
|
|
|
3
|
+
## 0.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#169451](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/169451)
|
|
8
|
+
[`9476858e0b6f5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9476858e0b6f5) -
|
|
9
|
+
Fixes @atlaskit/ads-mcp to work properly as the distribution doesn't work in node verbatim.
|
|
10
|
+
|
|
3
11
|
## 0.1.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -2,18 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Current state: Early Access
|
|
4
4
|
|
|
5
|
-
The official Model Context Protocol (MCP) server for the Atlassian Design System. This server
|
|
5
|
+
The official Model Context Protocol (MCP) server for the Atlassian Design System. This server
|
|
6
|
+
provides tools to access design tokens, icons, and components/primitives programmatically.
|
|
6
7
|
|
|
7
8
|
This may expand to add accessibility, usage, and other guidance over time.
|
|
8
9
|
|
|
9
10
|
## Usage
|
|
10
11
|
|
|
11
12
|
Add an entry to your `mcp.json` (eg. `~/.cursor/mcp.json` or wherever your MCP config lives):
|
|
13
|
+
|
|
12
14
|
```json
|
|
13
15
|
{
|
|
14
|
-
|
|
16
|
+
"mcpServers": {
|
|
15
17
|
"ads": {
|
|
16
|
-
"command": "npx",
|
|
18
|
+
"command": "npx",
|
|
19
|
+
"args": ["-y", "@atlaskit/ads-mcp"]
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
}
|
|
@@ -22,7 +25,8 @@ Add an entry to your `mcp.json` (eg. `~/.cursor/mcp.json` or wherever your MCP c
|
|
|
22
25
|
## Development
|
|
23
26
|
|
|
24
27
|
Modify the json above replacing `@atlaskit/ads-mcp` with a local path, eg.:
|
|
28
|
+
|
|
25
29
|
```diff
|
|
26
30
|
-"@atlaskit/ads-mcp"
|
|
27
31
|
+"~/git/atlassian/atlassian-frontend-monorepo/platform/packages/design-system/ads-mcp"
|
|
28
|
-
```
|
|
32
|
+
```
|
package/index.js
CHANGED
|
@@ -5,13 +5,15 @@ const path = require('path');
|
|
|
5
5
|
const project = path.join(__dirname, 'tsconfig.json');
|
|
6
6
|
const dev = fs.existsSync(project);
|
|
7
7
|
|
|
8
|
-
let entrypoint = path.join(__dirname, 'dist', 'cjs', 'index');
|
|
8
|
+
let entrypoint = path.join(__dirname, 'dist', 'cjs', 'index.js');
|
|
9
9
|
if (dev) {
|
|
10
10
|
entrypoint = path.join(__dirname, 'src', 'index');
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Even when distributed, `node dist/cjs/index.js` will not work due to
|
|
14
|
+
// not having `@atlaskit/tokens` packaged for a pure node environment
|
|
15
|
+
if (!require.extensions['.ts']) {
|
|
16
|
+
require('ts-node').register({ project });
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
require(entrypoint);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/ads-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
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,11 +34,11 @@
|
|
|
34
34
|
"@atlaskit/tokens": "^5.1.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
36
36
|
"@modelcontextprotocol/sdk": "^1.8.0",
|
|
37
|
+
"ts-node": "^10.9.1",
|
|
37
38
|
"zod": "^3.23.8",
|
|
38
39
|
"zod-to-json-schema": "^3.24.5"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
|
-
"ts-node": "^10.9.1",
|
|
42
42
|
"typescript": "~5.4.2"
|
|
43
43
|
}
|
|
44
44
|
}
|