@atlaskit/ads-mcp 0.1.5 → 0.1.7

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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/ads-mcp
2
2
 
3
+ ## 0.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#171542](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/171542)
8
+ [`3dd57e3f43529`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3dd57e3f43529) -
9
+ Fix ADS MCP when installing via npx by completely decoupling the tsconfig-related devloop
10
+ - Updated dependencies
11
+
12
+ ## 0.1.6
13
+
14
+ ### Patch Changes
15
+
16
+ - [#170901](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/170901)
17
+ [`b3b427396eeea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b3b427396eeea) -
18
+ Fix npx execution by moving ts-node to dependencies
19
+
3
20
  ## 0.1.5
4
21
 
5
22
  ### Patch Changes
package/README.md CHANGED
@@ -24,9 +24,17 @@ Add an entry to your `mcp.json` (eg. `~/.cursor/mcp.json` or wherever your MCP c
24
24
 
25
25
  ## Development
26
26
 
27
- Modify the json above replacing `@atlaskit/ads-mcp` with a local path, eg.:
27
+ Use a different MCP config with a local path to the `dev.js` file, eg.:
28
28
 
29
- ```diff
30
- -"@atlaskit/ads-mcp"
31
- +"~/git/atlassian/atlassian-frontend-monorepo/platform/packages/design-system/ads-mcp"
29
+ ```json
30
+ {
31
+ "mcpServers": {
32
+ "ads": {
33
+ "command": "node",
34
+ "args": [
35
+ "~/git/atlassian/atlassian-frontend-monorepo/platform/packages/design-system/ads-mcp/dev.js"
36
+ ]
37
+ }
38
+ }
39
+ }
32
40
  ```
package/dev.js ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+ /* eslint-disable */
3
+ const path = require('path');
4
+ const project = path.join(__dirname, 'tsconfig.json');
5
+
6
+ const entrypoint = path.join(__dirname, 'src', 'index');
7
+ if (!require.extensions['.ts']) {
8
+ require('ts-node').register({ project });
9
+ }
10
+
11
+ require(entrypoint);
package/index.js CHANGED
@@ -2,15 +2,12 @@
2
2
  /* eslint-disable */
3
3
  const fs = require('fs');
4
4
  const path = require('path');
5
- const project = path.join(__dirname, 'tsconfig.json');
6
- const dev = fs.existsSync(project);
7
5
 
8
6
  let entrypoint = path.join(__dirname, 'dist', 'cjs', 'index.js');
9
- if (dev) {
10
- entrypoint = path.join(__dirname, 'src', 'index');
11
- if (!require.extensions['.ts']) {
12
- require('ts-node').register({ project });
13
- }
7
+ if (!fs.existsSync(entrypoint)) {
8
+ throw new Error(
9
+ '@atlaskit/ads-mcp is not distributed; if you are trying to run this locally, please run `yarn build @atlaskit/ads-mcp` first.',
10
+ );
14
11
  }
15
12
 
16
13
  require(entrypoint);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/ads-mcp",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
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",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@atlaskit/icon": "^26.4.0",
34
- "@atlaskit/tokens": "^5.1.0",
34
+ "@atlaskit/tokens": "^5.2.0",
35
35
  "@babel/runtime": "^7.0.0",
36
36
  "@modelcontextprotocol/sdk": "^1.8.0",
37
37
  "zod": "^3.23.8",