@mandujs/mcp 0.18.8 → 0.18.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mandujs/mcp",
3
- "version": "0.18.8",
3
+ "version": "0.18.9",
4
4
  "description": "Mandu MCP Server - Agent-native interface for Mandu framework operations",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -32,7 +32,7 @@
32
32
  "access": "public"
33
33
  },
34
34
  "dependencies": {
35
- "@mandujs/core": "^0.18.22",
35
+ "@mandujs/core": "^0.19.0",
36
36
  "@mandujs/ate": "^0.17.2",
37
37
  "@modelcontextprotocol/sdk": "^1.25.3"
38
38
  },
package/src/tools/slot.ts CHANGED
@@ -16,6 +16,10 @@ export const slotToolDefinitions: Tool[] = [
16
16
  "In Mandu, a 'slot' is the server-side data loader for a route: " +
17
17
  "it runs on every request before rendering and returns a typed object " +
18
18
  "that is injected into the page component as props (for pages) or as handler context (for API routes). " +
19
+ "The loader receives a ManduContext (ctx) with access to ctx.cookies for reading/setting cookies — " +
20
+ "cookies set in the loader are automatically applied to the SSR Response via Set-Cookie headers. " +
21
+ "Advanced: ctx.cookies.getSigned(name, secret) for HMAC-SHA256 signed cookies, " +
22
+ "ctx.cookies.getParsed(name, zodSchema) for Zod-validated JSON cookies. " +
19
23
  "Slot files live at spec/slots/{routeId}.slot.ts and are auto-linked by generateManifest(). " +
20
24
  "Returns the raw source, line count, and any structural validation issues.",
21
25
  inputSchema: {