@frontmcp/sdk 1.1.1 → 1.1.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/esm/index.mjs
CHANGED
|
@@ -7520,6 +7520,12 @@ function callToolRequestHandler({
|
|
|
7520
7520
|
});
|
|
7521
7521
|
return formatMcpErrorResponse(new InternalMcpError("FlowControl output is not a valid CallToolResult"));
|
|
7522
7522
|
}
|
|
7523
|
+
if (e.type === "fail") {
|
|
7524
|
+
const original = e.originalError;
|
|
7525
|
+
if (original !== void 0) {
|
|
7526
|
+
return formatMcpErrorResponse(original);
|
|
7527
|
+
}
|
|
7528
|
+
}
|
|
7523
7529
|
logger.warn(`FlowControl ended with type: ${e.type}`, { tool: toolName, type: e.type, output: e.output });
|
|
7524
7530
|
return formatMcpErrorResponse(new InternalMcpError(`Flow ended with: ${e.type}`));
|
|
7525
7531
|
}
|
package/index.js
CHANGED
|
@@ -7469,6 +7469,12 @@ function callToolRequestHandler({
|
|
|
7469
7469
|
});
|
|
7470
7470
|
return formatMcpErrorResponse(new InternalMcpError("FlowControl output is not a valid CallToolResult"));
|
|
7471
7471
|
}
|
|
7472
|
+
if (e.type === "fail") {
|
|
7473
|
+
const original = e.originalError;
|
|
7474
|
+
if (original !== void 0) {
|
|
7475
|
+
return formatMcpErrorResponse(original);
|
|
7476
|
+
}
|
|
7477
|
+
}
|
|
7472
7478
|
logger.warn(`FlowControl ended with type: ${e.type}`, { tool: toolName, type: e.type, output: e.output });
|
|
7473
7479
|
return formatMcpErrorResponse(new InternalMcpError(`Flow ended with: ${e.type}`));
|
|
7474
7480
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "FrontMCP SDK",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"homepage": "https://docs.agentfront.dev",
|
|
@@ -73,10 +73,10 @@
|
|
|
73
73
|
"raw-body": "^3.0.0",
|
|
74
74
|
"content-type": "^1.0.5",
|
|
75
75
|
"@vercel/kv": "^3.0.0",
|
|
76
|
-
"@frontmcp/storage-sqlite": "1.1.
|
|
76
|
+
"@frontmcp/storage-sqlite": "1.1.2",
|
|
77
77
|
"openai": "^4.0.0 || ^5.0.0 || ^6.0.0",
|
|
78
78
|
"@anthropic-ai/sdk": "^0.30.0 || ^0.78.0",
|
|
79
|
-
"@frontmcp/observability": "1.1.
|
|
79
|
+
"@frontmcp/observability": "1.1.2",
|
|
80
80
|
"@enclave-vm/core": "^2.13.0",
|
|
81
81
|
"vectoriadb": "^2.2.0",
|
|
82
82
|
"@opentelemetry/api": "^1.9.0",
|
|
@@ -113,13 +113,13 @@
|
|
|
113
113
|
},
|
|
114
114
|
"dependencies": {
|
|
115
115
|
"@types/cors": "^2.8.17",
|
|
116
|
-
"@frontmcp/utils": "1.1.
|
|
117
|
-
"@frontmcp/guard": "1.1.
|
|
118
|
-
"@frontmcp/di": "1.1.
|
|
119
|
-
"@frontmcp/lazy-zod": "1.1.
|
|
120
|
-
"@frontmcp/uipack": "1.1.
|
|
121
|
-
"@frontmcp/auth": "1.1.
|
|
122
|
-
"@frontmcp/protocol": "1.1.
|
|
116
|
+
"@frontmcp/utils": "1.1.2",
|
|
117
|
+
"@frontmcp/guard": "1.1.2",
|
|
118
|
+
"@frontmcp/di": "1.1.2",
|
|
119
|
+
"@frontmcp/lazy-zod": "1.1.2",
|
|
120
|
+
"@frontmcp/uipack": "1.1.2",
|
|
121
|
+
"@frontmcp/auth": "1.1.2",
|
|
122
|
+
"@frontmcp/protocol": "1.1.2",
|
|
123
123
|
"ioredis": "^5.8.0",
|
|
124
124
|
"js-yaml": "^4.1.1",
|
|
125
125
|
"jose": "^6.1.3",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call-tool-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/call-tool-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,oBAAoB,CAAC;AAU5B,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE/E,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,KAAK,GACN,EAAE,iBAAiB,GAAG,UAAU,CAAC,eAAe,EAAE,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"call-tool-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/call-tool-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,oBAAoB,CAAC;AAU5B,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE/E,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,KAAK,GACN,EAAE,iBAAiB,GAAG,UAAU,CAAC,eAAe,EAAE,cAAc,CAAC,CA6DjE"}
|