Skip to content

Commit ad3eb03

Browse files
committed
chore: add improvements to MCP based on astryx library [AR-74236]
1 parent bad768f commit ad3eb03

14 files changed

Lines changed: 1532 additions & 26 deletions

File tree

.changeset/mcp-manifest-quality.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@drivenets/design-system-mcp': patch
3+
'@drivenets/design-system': patch
4+
---
5+
6+
Post process MCP data for better quality output.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# MCP documentation from enriched Storybook manifests
2+
3+
Agent docs are the published Storybook `components.json` after a post-build enricher, served through the existing three MCP tools.
4+
We post-process (and optionally overlay `ds-{name}.mcp.ts`) instead of adding tools, a second docs system, or generated consumer files.
5+
Guidelines MDX stays for humans; MCP instructions inline token, spacing, and layout rules and send agents to the component first.

knip.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"./packages/design-system/**/*.figma.batch.ts",
77
"./packages/design-system/types/**/figma.d.ts",
88
"./packages/design-system/src/components/ds-file-upload/stories/adapters/simple-file-upload-adapter.ts",
9+
"./packages/design-system/**/*.mcp.ts",
910
"./packages/eslint-plugin-internal/src/rules/__tests__/fixtures/*.ts"
1011
],
1112
"ignoreExportsUsedInFile": {

packages/design-system/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"!**/__tests__",
3030
"!./src/**/*.d.ts",
3131
"!**/stories",
32-
"!**/*.stories.*"
32+
"!**/*.stories.*",
33+
"!**/*.mcp.ts"
3334
],
3435
"repository": {
3536
"url": "https://github.com/drivenets/design-system",
@@ -54,7 +55,7 @@
5455
"test:storybook-docs": "vitest --project=storybook-docs",
5556
"build": "tsdown",
5657
"build:watch": "pnpm build --watch",
57-
"build:storybook": "storybook build"
58+
"build:storybook": "storybook build && node --experimental-strip-types scripts/enrich-mcp-manifest.ts"
5859
},
5960
"dependencies": {
6061
"@ark-ui/react": "^5.37.2",

0 commit comments

Comments
 (0)