@atlaskit/ads-mcp 0.1.6 → 0.1.8

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.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#172151](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172151)
8
+ [`63b44a0ddaa2f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/63b44a0ddaa2f) -
9
+ Rejoin the dev and main entrypoints together for a better local development experience.
10
+
11
+ ## 0.1.7
12
+
13
+ ### Patch Changes
14
+
15
+ - [#171542](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/171542)
16
+ [`3dd57e3f43529`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3dd57e3f43529) -
17
+ Fix ADS MCP when installing via npx by completely decoupling the tsconfig-related devloop
18
+ - Updated dependencies
19
+
3
20
  ## 0.1.6
4
21
 
5
22
  ### Patch Changes
package/README.md CHANGED
@@ -24,12 +24,18 @@ 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 your MCP config, replacing `@atlaskit/ads-mcp` with a local path, for example:
28
-
29
- ```diff
30
- -"args": ["-y", "@atlaskit/ads-mcp"]
31
- +"args": [
32
- + "-y",
33
- + "~/git/atlassian/atlassian-frontend-monorepo/platform/packages/design-system/ads-mcp",
34
- +]
27
+ You may automatically be served the local version of `@atlaskit/ads-mcp` depending on where you're running it from, but you should force it like so:
28
+
29
+ ```json
30
+ {
31
+ "mcpServers": {
32
+ "ads": {
33
+ "command": "npx",
34
+ "args": [
35
+ "-y",
36
+ "~/git/atlassian/atlassian-frontend-monorepo/platform/packages/design-system/ads-mcp"
37
+ ]
38
+ }
39
+ }
40
+ }
35
41
  ```
package/index.js CHANGED
@@ -3,11 +3,12 @@
3
3
  const fs = require('fs');
4
4
  const path = require('path');
5
5
  const project = path.join(__dirname, 'tsconfig.json');
6
- const dev = fs.existsSync(project);
6
+ const srcEntrypoint = path.join(__dirname, 'src', 'index.tsx');
7
+ const inPackage = __dirname.includes('node_modules');
7
8
 
8
9
  let entrypoint = path.join(__dirname, 'dist', 'cjs', 'index.js');
9
- if (dev) {
10
- entrypoint = path.join(__dirname, 'src', 'index');
10
+ if (!inPackage && fs.existsSync(srcEntrypoint)) {
11
+ entrypoint = srcEntrypoint;
11
12
  if (!require.extensions['.ts']) {
12
13
  require('ts-node').register({ project });
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/ads-mcp",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
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,14 +31,14 @@
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
- "ts-node": "^10.9.1",
38
37
  "zod": "^3.23.8",
39
38
  "zod-to-json-schema": "^3.24.5"
40
39
  },
41
40
  "devDependencies": {
41
+ "ts-node": "^10.9.1",
42
42
  "typescript": "~5.4.2"
43
43
  }
44
44
  }