@agiflowai/style-system 0.0.9 → 0.0.10
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/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/{stdio-DxdE_ClP.cjs → stdio-BgY0loAk.cjs} +36 -5
- package/dist/{stdio-Ct-YYe6g.js → stdio-Db2a8Jns.js} +36 -5
- package/package.json +3 -3
package/dist/cli.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const require_stdio = require('./stdio-
|
|
2
|
+
const require_stdio = require('./stdio-BgY0loAk.cjs');
|
|
3
3
|
let __agiflowai_aicode_utils = require("@agiflowai/aicode-utils");
|
|
4
4
|
__agiflowai_aicode_utils = require_stdio.__toESM(__agiflowai_aicode_utils);
|
|
5
5
|
let commander = require("commander");
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as ListAppComponentsTool, i as ListThemesTool, m as GetCSSClassesTool, n as createServer, o as GetComponentVisualTool, r as ListSharedComponentsTool, t as StdioTransportHandler, u as getBundlerServiceFromConfig } from "./stdio-
|
|
2
|
+
import { a as ListAppComponentsTool, i as ListThemesTool, m as GetCSSClassesTool, n as createServer, o as GetComponentVisualTool, r as ListSharedComponentsTool, t as StdioTransportHandler, u as getBundlerServiceFromConfig } from "./stdio-Db2a8Jns.js";
|
|
3
3
|
import { print } from "@agiflowai/aicode-utils";
|
|
4
4
|
import { Command } from "commander";
|
|
5
5
|
|
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as TailwindCSSClassesService, a as ListAppComponentsTool, c as ThemeService, d as ViteReactBundlerService, f as BaseBundlerService, g as DEFAULT_STYLE_SYSTEM_CONFIG, h as CSSClassesServiceFactory, i as ListThemesTool, l as createDefaultBundlerService, m as GetCSSClassesTool, n as createServer, o as GetComponentVisualTool, p as StoriesIndexService, r as ListSharedComponentsTool, s as ComponentRendererService, t as StdioTransportHandler, u as getBundlerServiceFromConfig, v as BaseCSSClassesService } from "./stdio-
|
|
1
|
+
import { _ as TailwindCSSClassesService, a as ListAppComponentsTool, c as ThemeService, d as ViteReactBundlerService, f as BaseBundlerService, g as DEFAULT_STYLE_SYSTEM_CONFIG, h as CSSClassesServiceFactory, i as ListThemesTool, l as createDefaultBundlerService, m as GetCSSClassesTool, n as createServer, o as GetComponentVisualTool, p as StoriesIndexService, r as ListSharedComponentsTool, s as ComponentRendererService, t as StdioTransportHandler, u as getBundlerServiceFromConfig, v as BaseCSSClassesService } from "./stdio-Db2a8Jns.js";
|
|
2
2
|
|
|
3
3
|
export { BaseBundlerService, BaseCSSClassesService, CSSClassesServiceFactory, ComponentRendererService, DEFAULT_STYLE_SYSTEM_CONFIG, GetCSSClassesTool, GetComponentVisualTool, ListAppComponentsTool, ListSharedComponentsTool, ListThemesTool, StdioTransportHandler, StoriesIndexService, TailwindCSSClassesService, ThemeService, ViteReactBundlerService, createDefaultBundlerService, createServer, getBundlerServiceFromConfig };
|
|
@@ -3064,6 +3064,16 @@ var ListSharedComponentsTool = class ListSharedComponentsTool {
|
|
|
3064
3064
|
|
|
3065
3065
|
//#endregion
|
|
3066
3066
|
//#region src/server/index.ts
|
|
3067
|
+
const TOOL_CAPABILITIES_META_KEY = "agiflowai/capabilities";
|
|
3068
|
+
function withCapabilities(definition, capabilities) {
|
|
3069
|
+
return {
|
|
3070
|
+
...definition,
|
|
3071
|
+
_meta: {
|
|
3072
|
+
...definition._meta,
|
|
3073
|
+
[TOOL_CAPABILITIES_META_KEY]: capabilities
|
|
3074
|
+
}
|
|
3075
|
+
};
|
|
3076
|
+
}
|
|
3067
3077
|
function createServer(themePath = "packages/frontend/web-theme/src/agimon-theme.css") {
|
|
3068
3078
|
const server = new __modelcontextprotocol_sdk_server_index_js.Server({
|
|
3069
3079
|
name: "style-system-mcp",
|
|
@@ -3079,11 +3089,32 @@ function createServer(themePath = "packages/frontend/web-theme/src/agimon-theme.
|
|
|
3079
3089
|
const listAppComponentsTool = new ListAppComponentsTool();
|
|
3080
3090
|
server.setRequestHandler(__modelcontextprotocol_sdk_types_js.ListToolsRequestSchema, async () => {
|
|
3081
3091
|
return { tools: [
|
|
3082
|
-
listThemesTool.getDefinition(),
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3092
|
+
withCapabilities(listThemesTool.getDefinition(), [
|
|
3093
|
+
"themes",
|
|
3094
|
+
"design-system",
|
|
3095
|
+
"styling"
|
|
3096
|
+
]),
|
|
3097
|
+
withCapabilities(getCSSClassesTool.getDefinition(), [
|
|
3098
|
+
"css",
|
|
3099
|
+
"tailwind",
|
|
3100
|
+
"design-system",
|
|
3101
|
+
"styling"
|
|
3102
|
+
]),
|
|
3103
|
+
withCapabilities(getComponentVisualTool.getDefinition(), [
|
|
3104
|
+
"components",
|
|
3105
|
+
"visual-preview",
|
|
3106
|
+
"design-review"
|
|
3107
|
+
]),
|
|
3108
|
+
withCapabilities(listSharedComponentsTool.getDefinition(), [
|
|
3109
|
+
"components",
|
|
3110
|
+
"design-system",
|
|
3111
|
+
"component-discovery"
|
|
3112
|
+
]),
|
|
3113
|
+
withCapabilities(listAppComponentsTool.getDefinition(), [
|
|
3114
|
+
"components",
|
|
3115
|
+
"app-components",
|
|
3116
|
+
"component-discovery"
|
|
3117
|
+
])
|
|
3087
3118
|
] };
|
|
3088
3119
|
});
|
|
3089
3120
|
server.setRequestHandler(__modelcontextprotocol_sdk_types_js.CallToolRequestSchema, async (request) => {
|
|
@@ -3025,6 +3025,16 @@ var ListSharedComponentsTool = class ListSharedComponentsTool {
|
|
|
3025
3025
|
|
|
3026
3026
|
//#endregion
|
|
3027
3027
|
//#region src/server/index.ts
|
|
3028
|
+
const TOOL_CAPABILITIES_META_KEY = "agiflowai/capabilities";
|
|
3029
|
+
function withCapabilities(definition, capabilities) {
|
|
3030
|
+
return {
|
|
3031
|
+
...definition,
|
|
3032
|
+
_meta: {
|
|
3033
|
+
...definition._meta,
|
|
3034
|
+
[TOOL_CAPABILITIES_META_KEY]: capabilities
|
|
3035
|
+
}
|
|
3036
|
+
};
|
|
3037
|
+
}
|
|
3028
3038
|
function createServer(themePath = "packages/frontend/web-theme/src/agimon-theme.css") {
|
|
3029
3039
|
const server = new Server({
|
|
3030
3040
|
name: "style-system-mcp",
|
|
@@ -3040,11 +3050,32 @@ function createServer(themePath = "packages/frontend/web-theme/src/agimon-theme.
|
|
|
3040
3050
|
const listAppComponentsTool = new ListAppComponentsTool();
|
|
3041
3051
|
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
3042
3052
|
return { tools: [
|
|
3043
|
-
listThemesTool.getDefinition(),
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3053
|
+
withCapabilities(listThemesTool.getDefinition(), [
|
|
3054
|
+
"themes",
|
|
3055
|
+
"design-system",
|
|
3056
|
+
"styling"
|
|
3057
|
+
]),
|
|
3058
|
+
withCapabilities(getCSSClassesTool.getDefinition(), [
|
|
3059
|
+
"css",
|
|
3060
|
+
"tailwind",
|
|
3061
|
+
"design-system",
|
|
3062
|
+
"styling"
|
|
3063
|
+
]),
|
|
3064
|
+
withCapabilities(getComponentVisualTool.getDefinition(), [
|
|
3065
|
+
"components",
|
|
3066
|
+
"visual-preview",
|
|
3067
|
+
"design-review"
|
|
3068
|
+
]),
|
|
3069
|
+
withCapabilities(listSharedComponentsTool.getDefinition(), [
|
|
3070
|
+
"components",
|
|
3071
|
+
"design-system",
|
|
3072
|
+
"component-discovery"
|
|
3073
|
+
]),
|
|
3074
|
+
withCapabilities(listAppComponentsTool.getDefinition(), [
|
|
3075
|
+
"components",
|
|
3076
|
+
"app-components",
|
|
3077
|
+
"component-discovery"
|
|
3078
|
+
])
|
|
3048
3079
|
] };
|
|
3049
3080
|
});
|
|
3050
3081
|
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agiflowai/style-system",
|
|
3
3
|
"description": "MCP server for exploring themes, Tailwind CSS classes, and UI components from Storybook with standalone component rendering capabilities",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.10",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"mcp",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"react": "^19.0.0",
|
|
35
35
|
"react-dom": "^19.0.0",
|
|
36
36
|
"sharp": "^0.34.1",
|
|
37
|
-
"storybook": "^8.6.
|
|
37
|
+
"storybook": "^8.6.17",
|
|
38
38
|
"tailwindcss": "^4.1.11",
|
|
39
39
|
"vite": "^7.1.12",
|
|
40
40
|
"vite-plugin-singlefile": "^2.3.0",
|
|
41
|
-
"@agiflowai/aicode-utils": "1.0.
|
|
41
|
+
"@agiflowai/aicode-utils": "1.0.17"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@babel/parser": "^7.28.5",
|