@frontmcp/plugin-codecall 0.12.1 → 1.0.0-beta.1

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/esm/index.mjs CHANGED
@@ -1361,13 +1361,13 @@ INPUT:
1361
1361
  OUTPUT: Flat deduplicated tool list. relevanceScore: 0.5+=good, 0.7+=strong match.
1362
1362
 
1363
1363
  FLOW: search \u2192 describe \u2192 execute/invoke`;
1364
- var searchToolInputSchema = z2.object({
1364
+ var searchToolInputSchema = {
1365
1365
  queries: z2.array(z2.string().min(2).max(256)).min(1).max(10).describe("Atomic action queries. Split complex requests into simple actions."),
1366
1366
  appIds: z2.array(z2.string()).max(10).optional().describe("Filter by app IDs"),
1367
1367
  excludeToolNames: z2.array(z2.string()).max(50).optional().describe("Skip already-known tool names"),
1368
1368
  topK: z2.number().int().positive().max(50).optional().default(10).describe("Results per query (default 10)"),
1369
1369
  minRelevanceScore: z2.number().min(0).max(1).optional().default(0.1).describe("Minimum relevance threshold (default 0.1)")
1370
- });
1370
+ };
1371
1371
  var searchToolOutputSchema = z2.object({
1372
1372
  tools: z2.array(
1373
1373
  z2.object({
@@ -1485,7 +1485,7 @@ import { z as z4, ZodType } from "zod";
1485
1485
 
1486
1486
  // plugins/plugin-codecall/src/tools/describe.schema.ts
1487
1487
  import { z as z3 } from "zod";
1488
- import { ToolAnnotationsSchema } from "@modelcontextprotocol/sdk/types.js";
1488
+ import { ToolAnnotationsSchema } from "@frontmcp/protocol";
1489
1489
  var describeToolDescription = `Get input/output schemas for tools from search results.
1490
1490
 
1491
1491
  INPUT: toolNames: string[] - tool names from search
@@ -1493,7 +1493,7 @@ OUTPUT per tool: inputSchema (JSON Schema), outputSchema (JSON Schema), usageExa
1493
1493
 
1494
1494
  IMPORTANT: If notFound array is non-empty \u2192 re-search with corrected queries.
1495
1495
  FLOW: search \u2192 describe \u2192 execute/invoke`;
1496
- var describeToolInputSchema = z3.object({
1496
+ var describeToolInputSchema = {
1497
1497
  toolNames: z3.array(z3.string()).min(1).superRefine((toolNames, ctx) => {
1498
1498
  const seen = /* @__PURE__ */ new Set();
1499
1499
  const duplicates = /* @__PURE__ */ new Set();
@@ -1512,7 +1512,7 @@ var describeToolInputSchema = z3.object({
1512
1512
  }).describe(
1513
1513
  'Array of unique tool names (from codecall:search results) to fetch their detailed schemas and usage examples. Example: ["users:list", "billing:getInvoice"]'
1514
1514
  )
1515
- });
1515
+ };
1516
1516
  var describeToolOutputSchema = z3.object({
1517
1517
  tools: z3.array(
1518
1518
  z3.object({
@@ -2096,14 +2096,14 @@ BLOCKED: while, do-while, function decl, eval, require, fetch, setTimeout, proce
2096
2096
  ERRORS: NOT_FOUND | VALIDATION | EXECUTION | TIMEOUT | ACCESS_DENIED
2097
2097
  STATUS: ok | syntax_error | illegal_access | runtime_error | tool_error | timeout
2098
2098
  LIMITS: 10K iter/loop, 30s timeout, 100 calls max`;
2099
- var executeToolInputSchema = z5.object({
2099
+ var executeToolInputSchema = {
2100
2100
  script: z5.string().min(MIN_EXECUTE_SCRIPT_LENGTH).max(100 * 1024).describe(
2101
2101
  "JavaScript code to execute in the sandbox. Must return a value (implicitly or via explicit return). Use callTool(name, input) to invoke tools."
2102
2102
  ),
2103
2103
  allowedTools: z5.array(z5.string()).optional().describe(
2104
2104
  'Optional whitelist of tool names that can be called from this script. If not provided, all indexed tools are available. Example: ["users:list", "billing:getInvoice"]'
2105
2105
  )
2106
- });
2106
+ };
2107
2107
  var syntaxErrorPayloadSchema = z5.object({
2108
2108
  message: z5.string(),
2109
2109
  location: z5.object({
@@ -2457,7 +2457,7 @@ import { Tool as Tool4, ToolContext as ToolContext4 } from "@frontmcp/sdk";
2457
2457
 
2458
2458
  // plugins/plugin-codecall/src/tools/invoke.schema.ts
2459
2459
  import { z as z6 } from "zod";
2460
- import { CallToolResultSchema } from "@modelcontextprotocol/sdk/types.js";
2460
+ import { CallToolResultSchema } from "@frontmcp/protocol";
2461
2461
  var invokeToolDescription = `Call ONE tool directly. Returns standard MCP CallToolResult.
2462
2462
 
2463
2463
  USE invoke: single tool, no transformation
@@ -2468,14 +2468,14 @@ OUTPUT: MCP CallToolResult (same as standard tool call)
2468
2468
  ERRORS: tool_not_found (\u2192 re-search) | validation_error | execution_error | permission_denied
2469
2469
 
2470
2470
  FLOW: search \u2192 describe \u2192 invoke`;
2471
- var invokeToolInputSchema = z6.object({
2471
+ var invokeToolInputSchema = {
2472
2472
  tool: z6.string().describe(
2473
2473
  'The name of the tool to invoke (e.g., "users:getById", "billing:getInvoice"). Must be a tool you discovered via codecall:search.'
2474
2474
  ),
2475
2475
  input: z6.record(z6.string(), z6.unknown()).describe(
2476
2476
  "The input parameters for the tool. Structure must match the tool's input schema (check codecall:describe for schema details)."
2477
2477
  )
2478
- });
2478
+ };
2479
2479
  var invokeToolOutputSchema = CallToolResultSchema;
2480
2480
 
2481
2481
  // plugins/plugin-codecall/src/tools/invoke.tool.ts
package/esm/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontmcp/plugin-codecall",
3
- "version": "0.12.1",
3
+ "version": "1.0.0-beta.1",
4
4
  "description": "CodeCall plugin for FrontMCP - AgentScript-based meta-tools for orchestrating MCP tools",
5
5
  "author": "AgentFront <info@agentfront.dev>",
6
6
  "license": "Apache-2.0",
@@ -47,11 +47,12 @@
47
47
  "dependencies": {
48
48
  "@enclave-vm/core": "^2.11.1",
49
49
  "vectoriadb": "^2.1.3",
50
- "@frontmcp/sdk": "0.12.1",
50
+ "@frontmcp/protocol": "1.0.0-beta.1",
51
+ "@frontmcp/sdk": "1.0.0-beta.1",
51
52
  "zod": "^4.0.0"
52
53
  },
53
54
  "peerDependencies": {
54
- "@frontmcp/plugin-cache": "0.12.1"
55
+ "@frontmcp/plugin-cache": "1.0.0-beta.1"
55
56
  },
56
57
  "devDependencies": {
57
58
  "reflect-metadata": "^0.2.2"
package/index.js CHANGED
@@ -1398,13 +1398,13 @@ INPUT:
1398
1398
  OUTPUT: Flat deduplicated tool list. relevanceScore: 0.5+=good, 0.7+=strong match.
1399
1399
 
1400
1400
  FLOW: search \u2192 describe \u2192 execute/invoke`;
1401
- var searchToolInputSchema = import_zod2.z.object({
1401
+ var searchToolInputSchema = {
1402
1402
  queries: import_zod2.z.array(import_zod2.z.string().min(2).max(256)).min(1).max(10).describe("Atomic action queries. Split complex requests into simple actions."),
1403
1403
  appIds: import_zod2.z.array(import_zod2.z.string()).max(10).optional().describe("Filter by app IDs"),
1404
1404
  excludeToolNames: import_zod2.z.array(import_zod2.z.string()).max(50).optional().describe("Skip already-known tool names"),
1405
1405
  topK: import_zod2.z.number().int().positive().max(50).optional().default(10).describe("Results per query (default 10)"),
1406
1406
  minRelevanceScore: import_zod2.z.number().min(0).max(1).optional().default(0.1).describe("Minimum relevance threshold (default 0.1)")
1407
- });
1407
+ };
1408
1408
  var searchToolOutputSchema = import_zod2.z.object({
1409
1409
  tools: import_zod2.z.array(
1410
1410
  import_zod2.z.object({
@@ -1522,7 +1522,7 @@ var import_zod4 = require("zod");
1522
1522
 
1523
1523
  // plugins/plugin-codecall/src/tools/describe.schema.ts
1524
1524
  var import_zod3 = require("zod");
1525
- var import_types = require("@modelcontextprotocol/sdk/types.js");
1525
+ var import_protocol = require("@frontmcp/protocol");
1526
1526
  var describeToolDescription = `Get input/output schemas for tools from search results.
1527
1527
 
1528
1528
  INPUT: toolNames: string[] - tool names from search
@@ -1530,7 +1530,7 @@ OUTPUT per tool: inputSchema (JSON Schema), outputSchema (JSON Schema), usageExa
1530
1530
 
1531
1531
  IMPORTANT: If notFound array is non-empty \u2192 re-search with corrected queries.
1532
1532
  FLOW: search \u2192 describe \u2192 execute/invoke`;
1533
- var describeToolInputSchema = import_zod3.z.object({
1533
+ var describeToolInputSchema = {
1534
1534
  toolNames: import_zod3.z.array(import_zod3.z.string()).min(1).superRefine((toolNames, ctx) => {
1535
1535
  const seen = /* @__PURE__ */ new Set();
1536
1536
  const duplicates = /* @__PURE__ */ new Set();
@@ -1549,7 +1549,7 @@ var describeToolInputSchema = import_zod3.z.object({
1549
1549
  }).describe(
1550
1550
  'Array of unique tool names (from codecall:search results) to fetch their detailed schemas and usage examples. Example: ["users:list", "billing:getInvoice"]'
1551
1551
  )
1552
- });
1552
+ };
1553
1553
  var describeToolOutputSchema = import_zod3.z.object({
1554
1554
  tools: import_zod3.z.array(
1555
1555
  import_zod3.z.object({
@@ -1558,7 +1558,7 @@ var describeToolOutputSchema = import_zod3.z.object({
1558
1558
  description: import_zod3.z.string().describe("Detailed description of what this tool does"),
1559
1559
  inputSchema: import_zod3.z.record(import_zod3.z.string(), import_zod3.z.unknown()).nullable().describe("JSON Schema object describing the tool input parameters"),
1560
1560
  outputSchema: import_zod3.z.record(import_zod3.z.string(), import_zod3.z.unknown()).nullable().describe("JSON Schema object describing the tool output structure"),
1561
- annotations: import_types.ToolAnnotationsSchema.optional().describe("MCP tool annotations (metadata)"),
1561
+ annotations: import_protocol.ToolAnnotationsSchema.optional().describe("MCP tool annotations (metadata)"),
1562
1562
  usageExamples: import_zod3.z.array(
1563
1563
  import_zod3.z.object({
1564
1564
  description: import_zod3.z.string().describe("Description of what this example demonstrates"),
@@ -2133,14 +2133,14 @@ BLOCKED: while, do-while, function decl, eval, require, fetch, setTimeout, proce
2133
2133
  ERRORS: NOT_FOUND | VALIDATION | EXECUTION | TIMEOUT | ACCESS_DENIED
2134
2134
  STATUS: ok | syntax_error | illegal_access | runtime_error | tool_error | timeout
2135
2135
  LIMITS: 10K iter/loop, 30s timeout, 100 calls max`;
2136
- var executeToolInputSchema = import_zod5.z.object({
2136
+ var executeToolInputSchema = {
2137
2137
  script: import_zod5.z.string().min(MIN_EXECUTE_SCRIPT_LENGTH).max(100 * 1024).describe(
2138
2138
  "JavaScript code to execute in the sandbox. Must return a value (implicitly or via explicit return). Use callTool(name, input) to invoke tools."
2139
2139
  ),
2140
2140
  allowedTools: import_zod5.z.array(import_zod5.z.string()).optional().describe(
2141
2141
  'Optional whitelist of tool names that can be called from this script. If not provided, all indexed tools are available. Example: ["users:list", "billing:getInvoice"]'
2142
2142
  )
2143
- });
2143
+ };
2144
2144
  var syntaxErrorPayloadSchema = import_zod5.z.object({
2145
2145
  message: import_zod5.z.string(),
2146
2146
  location: import_zod5.z.object({
@@ -2494,7 +2494,7 @@ var import_sdk6 = require("@frontmcp/sdk");
2494
2494
 
2495
2495
  // plugins/plugin-codecall/src/tools/invoke.schema.ts
2496
2496
  var import_zod6 = require("zod");
2497
- var import_types2 = require("@modelcontextprotocol/sdk/types.js");
2497
+ var import_protocol2 = require("@frontmcp/protocol");
2498
2498
  var invokeToolDescription = `Call ONE tool directly. Returns standard MCP CallToolResult.
2499
2499
 
2500
2500
  USE invoke: single tool, no transformation
@@ -2505,15 +2505,15 @@ OUTPUT: MCP CallToolResult (same as standard tool call)
2505
2505
  ERRORS: tool_not_found (\u2192 re-search) | validation_error | execution_error | permission_denied
2506
2506
 
2507
2507
  FLOW: search \u2192 describe \u2192 invoke`;
2508
- var invokeToolInputSchema = import_zod6.z.object({
2508
+ var invokeToolInputSchema = {
2509
2509
  tool: import_zod6.z.string().describe(
2510
2510
  'The name of the tool to invoke (e.g., "users:getById", "billing:getInvoice"). Must be a tool you discovered via codecall:search.'
2511
2511
  ),
2512
2512
  input: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.unknown()).describe(
2513
2513
  "The input parameters for the tool. Structure must match the tool's input schema (check codecall:describe for schema details)."
2514
2514
  )
2515
- });
2516
- var invokeToolOutputSchema = import_types2.CallToolResultSchema;
2515
+ };
2516
+ var invokeToolOutputSchema = import_protocol2.CallToolResultSchema;
2517
2517
 
2518
2518
  // plugins/plugin-codecall/src/tools/invoke.tool.ts
2519
2519
  function buildErrorResult(message) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontmcp/plugin-codecall",
3
- "version": "0.12.1",
3
+ "version": "1.0.0-beta.1",
4
4
  "description": "CodeCall plugin for FrontMCP - AgentScript-based meta-tools for orchestrating MCP tools",
5
5
  "author": "AgentFront <info@agentfront.dev>",
6
6
  "license": "Apache-2.0",
@@ -47,11 +47,12 @@
47
47
  "dependencies": {
48
48
  "@enclave-vm/core": "^2.11.1",
49
49
  "vectoriadb": "^2.1.3",
50
- "@frontmcp/sdk": "0.12.1",
50
+ "@frontmcp/protocol": "1.0.0-beta.1",
51
+ "@frontmcp/sdk": "1.0.0-beta.1",
51
52
  "zod": "^4.0.0"
52
53
  },
53
54
  "peerDependencies": {
54
- "@frontmcp/plugin-cache": "0.12.1"
55
+ "@frontmcp/plugin-cache": "1.0.0-beta.1"
55
56
  },
56
57
  "devDependencies": {
57
58
  "reflect-metadata": "^0.2.2"
@@ -1,4 +1,4 @@
1
- import type { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js';
1
+ import type { AuthInfo } from '@frontmcp/protocol';
2
2
  /**
3
3
  * Tool access control modes:
4
4
  * - whitelist: Only explicitly allowed tools can be called (most secure)
@@ -1 +1 @@
1
- {"version":3,"file":"tool-access-control.service.d.ts","sourceRoot":"","sources":["../../src/security/tool-access-control.service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAE/E;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,IAAI,EAAE,cAAc,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE;QACT,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;KACjB,CAAC;IAEF;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;CACzE;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAeD;;;;;;;;;;;GAWG;AACH,qBAIa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;IAC1C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAc;IAC3C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAc;IAC3C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAW;IACzC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAW;gBAE5B,MAAM,CAAC,EAAE,gBAAgB;IAWrC;;;;;;OAMG;IACG,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC;YAsCxF,kBAAkB;YAqBlB,kBAAkB;YAelB,gBAAgB;IAS9B;;OAEG;IACH,OAAO,CAAC,OAAO;IAmBf;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAenB;;OAEG;IACH,SAAS,IAAI,QAAQ,CAAC,gBAAgB,CAAC;CAGxC;AAED,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"tool-access-control.service.d.ts","sourceRoot":"","sources":["../../src/security/tool-access-control.service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,WAAW,GAAG,SAA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kB;YAelB,gBAAgB;IAS9B;;OAEG;IACH,OAAO,CAAC,OAAO;IAmBf;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAenB;;OAEG;IACH,SAAS,IAAI,QAAQ,CAAC,gBAAgB,CAAC;CAGxC;AAED,eAAe,wBAAwB,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
2
  export declare const describeToolDescription = "Get input/output schemas for tools from search results.\n\nINPUT: toolNames: string[] - tool names from search\nOUTPUT per tool: inputSchema (JSON Schema), outputSchema (JSON Schema), usageExamples (up to 5 callTool examples)\n\nIMPORTANT: If notFound array is non-empty \u2192 re-search with corrected queries.\nFLOW: search \u2192 describe \u2192 execute/invoke";
3
- export declare const describeToolInputSchema: z.ZodObject<{
3
+ export declare const describeToolInputSchema: {
4
4
  toolNames: z.ZodArray<z.ZodString>;
5
- }, z.core.$strip>;
6
- export type DescribeToolInput = z.infer<typeof describeToolInputSchema>;
5
+ };
6
+ export type DescribeToolInput = z.infer<z.ZodObject<typeof describeToolInputSchema>>;
7
7
  export declare const describeToolOutputSchema: z.ZodObject<{
8
8
  tools: z.ZodArray<z.ZodObject<{
9
9
  name: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"describe.schema.d.ts","sourceRoot":"","sources":["../../src/tools/describe.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,uBAAuB,gXAMK,CAAC;AAE1C,eAAO,MAAM,uBAAuB;;iBAuBlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;iBAoCnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"describe.schema.d.ts","sourceRoot":"","sources":["../../src/tools/describe.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,uBAAuB,gXAMK,CAAC;AAE1C,eAAO,MAAM,uBAAuB;;CAuBnC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC;AAErF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;iBAoCnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { z } from 'zod';
2
2
  export declare const executeToolDescription = "Execute AgentScript (safe JS subset) for multi-tool orchestration.\n\nAPI: await callTool(name, args, opts?)\n- Default: throws on error\n- Safe mode: { throwOnError: false } \u2192 returns { success, data?, error? }\n\nEXAMPLE:\nconst users = await callTool('users:list', { active: true });\nconst results = [];\nfor (const u of users.items) {\n const orders = await callTool('orders:list', { userId: u.id });\n results.push({ id: u.id, total: orders.items.reduce((s,o) => s + o.amount, 0) });\n}\nreturn results;\n\nALLOWED: for, for-of, arrow fn, map/filter/reduce/find, Math.*, JSON.*, if/else, destructuring, spread, template literals\nBLOCKED: while, do-while, function decl, eval, require, fetch, setTimeout, process, globalThis\n\nERRORS: NOT_FOUND | VALIDATION | EXECUTION | TIMEOUT | ACCESS_DENIED\nSTATUS: ok | syntax_error | illegal_access | runtime_error | tool_error | timeout\nLIMITS: 10K iter/loop, 30s timeout, 100 calls max";
3
- export declare const executeToolInputSchema: z.ZodObject<{
3
+ export declare const executeToolInputSchema: {
4
4
  script: z.ZodString;
5
5
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
- }, z.core.$strip>;
7
- export type ExecuteToolInput = z.infer<typeof executeToolInputSchema>;
6
+ };
7
+ export type ExecuteToolInput = z.infer<z.ZodObject<typeof executeToolInputSchema>>;
8
8
  /**
9
9
  * Result variants
10
10
  */
@@ -1 +1 @@
1
- {"version":3,"file":"execute.schema.d.ts","sourceRoot":"","sources":["../../src/tools/execute.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB,o7BAoBe,CAAC;AAEnD,eAAO,MAAM,sBAAsB;;;iBAcjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AA4CtE;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;iBAG1C,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;iBAG5C,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;iBAG3C,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;iBAGxC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;iBAGtC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAOlC,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,qBAAqB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C,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,MAAM,MAAM,qBAAqB,GAC7B,gBAAgB,GAChB,yBAAyB,GACzB,2BAA2B,GAC3B,0BAA0B,GAC1B,uBAAuB,GACvB,qBAAqB,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { z } from 'zod';
2
2
  export declare const invokeToolDescription = "Call ONE tool directly. Returns standard MCP CallToolResult.\n\nUSE invoke: single tool, no transformation\nUSE execute: multiple tools, loops, filtering, joining\n\nINPUT: tool (string), input (object matching tool schema)\nOUTPUT: MCP CallToolResult (same as standard tool call)\nERRORS: tool_not_found (\u2192 re-search) | validation_error | execution_error | permission_denied\n\nFLOW: search \u2192 describe \u2192 invoke";
3
- export declare const invokeToolInputSchema: z.ZodObject<{
3
+ export declare const invokeToolInputSchema: {
4
4
  tool: z.ZodString;
5
5
  input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6
- }, z.core.$strip>;
7
- export type InvokeToolInput = z.infer<typeof invokeToolInputSchema>;
6
+ };
7
+ export type InvokeToolInput = z.infer<z.ZodObject<typeof invokeToolInputSchema>>;
8
8
  export declare const invokeToolOutputSchema: z.ZodObject<{
9
9
  _meta: z.ZodOptional<z.ZodObject<{
10
10
  progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
@@ -1 +1 @@
1
- {"version":3,"file":"invoke.schema.d.ts","sourceRoot":"","sources":["../../src/tools/invoke.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB,+aASD,CAAC;AAElC,eAAO,MAAM,qBAAqB;;;iBAWhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAGpE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAuB,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
1
+ {"version":3,"file":"invoke.schema.d.ts","sourceRoot":"","sources":["../../src/tools/invoke.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB,+aASD,CAAC;AAElC,eAAO,MAAM,qBAAqB;;;CAWjC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC;AAGjF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAuB,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import { z } from 'zod';
2
2
  export declare const searchToolDescription = "Find tools by splitting user request into atomic actions.\n\nDECOMPOSE: \"delete users and send email\" \u2192 queries: [\"delete user\", \"send email\"]\nDECOMPOSE: \"get order and refund\" \u2192 queries: [\"get order\", \"calculate refund\"]\n\nAVOID RE-SEARCHING: Use excludeToolNames for already-discovered tools.\nRE-SEARCH WHEN: describe fails (typo?) OR execute returns tool_not_found.\n\nINPUT:\n- queries: string[] (required) - atomic action phrases, max 10\n- appIds?: string[] - filter by app\n- excludeToolNames?: string[] - skip known tools\n- topK?: number (default 5) - results per query\n- minRelevanceScore?: number (default 0.3) - minimum match threshold\n\nOUTPUT: Flat deduplicated tool list. relevanceScore: 0.5+=good, 0.7+=strong match.\n\nFLOW: search \u2192 describe \u2192 execute/invoke";
3
- export declare const searchToolInputSchema: z.ZodObject<{
3
+ export declare const searchToolInputSchema: {
4
4
  queries: z.ZodArray<z.ZodString>;
5
5
  appIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
6
  excludeToolNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
7
7
  topK: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
8
8
  minRelevanceScore: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
9
- }, z.core.$strip>;
10
- export type SearchToolInput = z.infer<typeof searchToolInputSchema>;
9
+ };
10
+ export type SearchToolInput = z.infer<z.ZodObject<typeof searchToolInputSchema>>;
11
11
  export declare const searchToolOutputSchema: z.ZodObject<{
12
12
  tools: z.ZodArray<z.ZodObject<{
13
13
  name: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"search.schema.d.ts","sourceRoot":"","sources":["../../src/tools/search.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB,kzBAiBO,CAAC;AAE1C,eAAO,MAAM,qBAAqB;;;;;;iBAgBhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;iBAsBjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
1
+ {"version":3,"file":"search.schema.d.ts","sourceRoot":"","sources":["../../src/tools/search.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB,kzBAiBO,CAAC;AAE1C,eAAO,MAAM,qBAAqB;;;;;;CAgBjC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC;AAEjF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;iBAsBjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
1
+ import type { CallToolResult } from '@frontmcp/protocol';
2
2
  /**
3
3
  * Extract the actual result from a CallToolResult.
4
4
  * MCP returns results wrapped in content array format.
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-result.d.ts","sourceRoot":"","sources":["../../src/utils/mcp-result.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEzE;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,SAAS,EAAE,cAAc,GAAG,OAAO,CA4BlF"}
1
+ {"version":3,"file":"mcp-result.d.ts","sourceRoot":"","sources":["../../src/utils/mcp-result.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,SAAS,EAAE,cAAc,GAAG,OAAO,CA4BlF"}