@atlaskit/ads-mcp 0.1.7 → 0.1.9

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,19 @@
1
1
  # @atlaskit/ads-mcp
2
2
 
3
+ ## 0.1.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.1.8
10
+
11
+ ### Patch Changes
12
+
13
+ - [#172151](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172151)
14
+ [`63b44a0ddaa2f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/63b44a0ddaa2f) -
15
+ Rejoin the dev and main entrypoints together for a better local development experience.
16
+
3
17
  ## 0.1.7
4
18
 
5
19
  ### Patch Changes
package/README.md CHANGED
@@ -24,16 +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
- Use a different MCP config with a local path to the `dev.js` file, eg.:
27
+ You may automatically be served the local version of `@atlaskit/ads-mcp` depending on where you're
28
+ running it from, but you should force it like so:
28
29
 
29
30
  ```json
30
31
  {
31
32
  "mcpServers": {
32
33
  "ads": {
33
- "command": "node",
34
- "args": [
35
- "~/git/atlassian/atlassian-frontend-monorepo/platform/packages/design-system/ads-mcp/dev.js"
36
- ]
34
+ "command": "npx",
35
+ "args": [
36
+ "-y",
37
+ "~/git/atlassian/atlassian-frontend-monorepo/platform/packages/design-system/ads-mcp"
38
+ ]
37
39
  }
38
40
  }
39
41
  }
package/index.js CHANGED
@@ -2,12 +2,16 @@
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 srcEntrypoint = path.join(__dirname, 'src', 'index.tsx');
7
+ const inPackage = __dirname.includes('node_modules');
5
8
 
6
9
  let entrypoint = path.join(__dirname, 'dist', 'cjs', 'index.js');
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
- );
10
+ if (!inPackage && fs.existsSync(srcEntrypoint)) {
11
+ entrypoint = srcEntrypoint;
12
+ if (!require.extensions['.ts']) {
13
+ require('ts-node').register({ project });
14
+ }
11
15
  }
12
16
 
13
17
  require(entrypoint);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/ads-mcp",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
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",
@@ -30,7 +30,7 @@
30
30
  "./package.json": "./package.json"
31
31
  },
32
32
  "dependencies": {
33
- "@atlaskit/icon": "^26.4.0",
33
+ "@atlaskit/icon": "^27.0.0",
34
34
  "@atlaskit/tokens": "^5.2.0",
35
35
  "@babel/runtime": "^7.0.0",
36
36
  "@modelcontextprotocol/sdk": "^1.8.0",
package/dev.js DELETED
@@ -1,11 +0,0 @@
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);