mcp-zenskar 1.1.13 → 1.1.14

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": "mcp-zenskar",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "Model Context Protocol (MCP) server for Zenskar API - customer management, invoicing, and billing operations",
5
5
  "main": "src/server.js",
6
6
  "bin": {
package/src/server.js CHANGED
@@ -713,6 +713,10 @@ function convertArgsToZodSchema(args) {
713
713
  // Add approval support for human-in-the-loop workflow
714
714
  approval: z.object({
715
715
  approved: z.boolean(),
716
+ // Single-use token issued by server in the approval_required response.
717
+ // Without this in the schema, Zod strips it from __userContext.approval
718
+ // and consumeApprovalToken() always sees undefined → infinite re-approval loop.
719
+ token: z.string().optional(),
716
720
  modifiedArguments: z.record(z.any()).optional(),
717
721
  originalArguments: z.record(z.any()).optional(),
718
722
  toolName: z.string().optional()
@@ -0,0 +1,12 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>app</title>
7
+ </head>
8
+ <body>
9
+ <div id="root"></div>
10
+ <script type="module" src="./app.tsx"></script>
11
+ </body>
12
+ </html>