@mandujs/mcp 0.18.0 → 0.18.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mandujs/mcp",
3
- "version": "0.18.0",
3
+ "version": "0.18.2",
4
4
  "description": "Mandu MCP Server - Agent-native interface for Mandu framework operations",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -32,8 +32,8 @@
32
32
  "access": "public"
33
33
  },
34
34
  "dependencies": {
35
- "@mandujs/core": "^0.18.0",
36
- "@mandujs/ate": "0.17.0",
35
+ "@mandujs/core": "^0.18.2",
36
+ "@mandujs/ate": "^0.17.0",
37
37
  "@modelcontextprotocol/sdk": "^1.25.3"
38
38
  },
39
39
  "engines": {
@@ -82,8 +82,8 @@ export const guardToolDefinitions: Tool[] = [
82
82
  properties: {
83
83
  preset: {
84
84
  type: "string",
85
- enum: ["fsd", "clean", "hexagonal", "atomic", "mandu"],
86
- description: "Architecture preset to use (default: from config or 'mandu')",
85
+ enum: ["fsd", "clean", "hexagonal", "atomic", "cqrs", "mandu"],
86
+ description: "Architecture preset to use (default: from config or 'mandu'). Use 'cqrs' for Command/Query separation.",
87
87
  },
88
88
  autoFix: {
89
89
  type: "boolean",
@@ -120,7 +120,7 @@ export const guardToolDefinitions: Tool[] = [
120
120
  },
121
121
  preset: {
122
122
  type: "string",
123
- enum: ["fsd", "clean", "hexagonal", "atomic", "mandu"],
123
+ enum: ["fsd", "clean", "hexagonal", "atomic", "cqrs", "mandu"],
124
124
  description: "Architecture preset for context",
125
125
  },
126
126
  },
@@ -28,6 +28,12 @@ export const hydrationToolDefinitions: Tool[] = [
28
28
  type: "boolean",
29
29
  description: "Generate source maps for debugging",
30
30
  },
31
+ targetRouteIds: {
32
+ type: "array",
33
+ items: { type: "string" },
34
+ description:
35
+ "Only rebuild specific islands by routeId. Skips Runtime/Router/Vendor rebuild for faster incremental updates. Omit to rebuild everything.",
36
+ },
31
37
  },
32
38
  required: [],
33
39
  },
@@ -115,9 +121,10 @@ export function hydrationTools(projectRoot: string) {
115
121
 
116
122
  return {
117
123
  mandu_build: async (args: Record<string, unknown>) => {
118
- const { minify, sourcemap } = args as {
124
+ const { minify, sourcemap, targetRouteIds } = args as {
119
125
  minify?: boolean;
120
126
  sourcemap?: boolean;
127
+ targetRouteIds?: string[];
121
128
  };
122
129
 
123
130
  // Load manifest
@@ -130,6 +137,7 @@ export function hydrationTools(projectRoot: string) {
130
137
  const result = await buildClientBundles(manifestResult.data, projectRoot, {
131
138
  minify,
132
139
  sourcemap,
140
+ targetRouteIds,
133
141
  });
134
142
 
135
143
  return {