fastmcp 4.24.3 → 4.24.5
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/dist/FastMCP.cjs +2 -2
- package/dist/FastMCP.js +1 -1
- package/dist/{chunk-XPGMRMMN.cjs → chunk-P56ABHAK.cjs} +10 -5
- package/dist/chunk-P56ABHAK.cjs.map +1 -0
- package/dist/{chunk-D2CVYAA5.js → chunk-UYV7MFKA.js} +10 -5
- package/dist/chunk-UYV7MFKA.js.map +1 -0
- package/dist/edge/index.cjs +12 -4
- package/dist/edge/index.cjs.map +1 -1
- package/dist/edge/index.js +12 -4
- package/dist/edge/index.js.map +1 -1
- package/dist/examples/custom-routes.cjs +2 -2
- package/dist/examples/custom-routes.js +1 -1
- package/dist/openapi/index.cjs +645 -545
- package/dist/openapi/index.cjs.map +1 -1
- package/dist/openapi/index.js +629 -529
- package/dist/openapi/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-D2CVYAA5.js.map +0 -1
- package/dist/chunk-XPGMRMMN.cjs.map +0 -1
|
@@ -1692,10 +1692,15 @@ ${error instanceof Error ? error.stack : JSON.stringify(error)}`
|
|
|
1692
1692
|
);
|
|
1693
1693
|
if (parsed.issues) {
|
|
1694
1694
|
const friendlyErrors = this.#formatSchemaIssues(parsed.issues);
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1695
|
+
return {
|
|
1696
|
+
content: [
|
|
1697
|
+
{
|
|
1698
|
+
text: `Tool '${request.params.name}' parameter validation failed: ${friendlyErrors}. Please check the parameter types and values according to the tool's schema.`,
|
|
1699
|
+
type: "text"
|
|
1700
|
+
}
|
|
1701
|
+
],
|
|
1702
|
+
isError: true
|
|
1703
|
+
};
|
|
1699
1704
|
}
|
|
1700
1705
|
args = parsed.value;
|
|
1701
1706
|
}
|
|
@@ -3514,4 +3519,4 @@ export {
|
|
|
3514
3519
|
FastMCPSession,
|
|
3515
3520
|
FastMCP
|
|
3516
3521
|
};
|
|
3517
|
-
//# sourceMappingURL=chunk-
|
|
3522
|
+
//# sourceMappingURL=chunk-UYV7MFKA.js.map
|