fastmcp 4.14.1 → 4.14.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/dist/FastMCP.cjs +2 -2
- package/dist/FastMCP.js +1 -1
- package/dist/{chunk-B5WJ5VRV.cjs → chunk-D7MJO6C6.cjs} +6 -6
- package/dist/{chunk-B5WJ5VRV.cjs.map → chunk-D7MJO6C6.cjs.map} +1 -1
- package/dist/{chunk-SGCRCQNU.js → chunk-YAU737SP.js} +6 -6
- package/dist/chunk-YAU737SP.js.map +1 -0
- package/dist/examples/custom-routes.cjs +2 -2
- package/dist/examples/custom-routes.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-SGCRCQNU.js.map +0 -1
package/dist/FastMCP.cjs
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkD7MJO6C6cjs = require('./chunk-D7MJO6C6.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -49,5 +49,5 @@ var _chunk5FVNY65Mcjs = require('./chunk-5FVNY65M.cjs');
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
exports.AuthProvider = _chunk5FVNY65Mcjs.AuthProvider; exports.AzureProvider = _chunk5FVNY65Mcjs.AzureProvider; exports.DiscoveryDocumentCache =
|
|
52
|
+
exports.AuthProvider = _chunk5FVNY65Mcjs.AuthProvider; exports.AzureProvider = _chunk5FVNY65Mcjs.AzureProvider; exports.DiscoveryDocumentCache = _chunkD7MJO6C6cjs.DiscoveryDocumentCache; exports.FastMCP = _chunkD7MJO6C6cjs.FastMCP; exports.FastMCPError = _chunkD7MJO6C6cjs.FastMCPError; exports.FastMCPSession = _chunkD7MJO6C6cjs.FastMCPSession; exports.GitHubProvider = _chunk5FVNY65Mcjs.GitHubProvider; exports.GoogleProvider = _chunk5FVNY65Mcjs.GoogleProvider; exports.MEDIA_FETCH_TIMEOUT_MS = _chunkD7MJO6C6cjs.MEDIA_FETCH_TIMEOUT_MS; exports.OAuthProvider = _chunk5FVNY65Mcjs.OAuthProvider; exports.ServerState = _chunkD7MJO6C6cjs.ServerState; exports.SessionError = _chunkD7MJO6C6cjs.SessionError; exports.UnexpectedStateError = _chunkD7MJO6C6cjs.UnexpectedStateError; exports.UserError = _chunkD7MJO6C6cjs.UserError; exports.audioContent = _chunkD7MJO6C6cjs.audioContent; exports.getAuthSession = _chunk5FVNY65Mcjs.getAuthSession; exports.imageContent = _chunkD7MJO6C6cjs.imageContent; exports.jsonSchemaAdapter = _chunkD7MJO6C6cjs.jsonSchemaAdapter; exports.requireAll = _chunk5FVNY65Mcjs.requireAll; exports.requireAny = _chunk5FVNY65Mcjs.requireAny; exports.requireAuth = _chunk5FVNY65Mcjs.requireAuth; exports.requireRole = _chunk5FVNY65Mcjs.requireRole; exports.requireScopes = _chunk5FVNY65Mcjs.requireScopes;
|
|
53
53
|
//# sourceMappingURL=FastMCP.cjs.map
|
package/dist/FastMCP.js
CHANGED
|
@@ -1439,11 +1439,7 @@ ${error instanceof Error ? error.stack : JSON.stringify(error)}`
|
|
|
1439
1439
|
result = ContentResultZodSchema.parse({
|
|
1440
1440
|
content: [{ text: maybeStringResult, type: "text" }]
|
|
1441
1441
|
});
|
|
1442
|
-
} else if ("
|
|
1443
|
-
result = ContentResultZodSchema.parse({
|
|
1444
|
-
content: [maybeStringResult]
|
|
1445
|
-
});
|
|
1446
|
-
} else if ("content" in maybeStringResult) {
|
|
1442
|
+
} else if ("content" in maybeStringResult && Array.isArray(maybeStringResult.content) && (!tool.outputSchema || ContentResultZodSchema.safeParse(maybeStringResult).success)) {
|
|
1447
1443
|
result = ContentResultZodSchema.parse(maybeStringResult);
|
|
1448
1444
|
if (result.structuredContent !== void 0 && tool.outputSchema) {
|
|
1449
1445
|
result.structuredContent = await this.#validateStructuredContent(
|
|
@@ -1467,6 +1463,10 @@ ${error instanceof Error ? error.stack : JSON.stringify(error)}`
|
|
|
1467
1463
|
],
|
|
1468
1464
|
structuredContent
|
|
1469
1465
|
});
|
|
1466
|
+
} else if ("type" in maybeStringResult) {
|
|
1467
|
+
result = ContentResultZodSchema.parse({
|
|
1468
|
+
content: [maybeStringResult]
|
|
1469
|
+
});
|
|
1470
1470
|
} else {
|
|
1471
1471
|
result = ContentResultZodSchema.parse(maybeStringResult);
|
|
1472
1472
|
}
|
|
@@ -2747,4 +2747,4 @@ var FastMCP = class extends FastMCPEventEmitter {
|
|
|
2747
2747
|
|
|
2748
2748
|
|
|
2749
2749
|
exports.DiscoveryDocumentCache = DiscoveryDocumentCache; exports.jsonSchemaAdapter = jsonSchemaAdapter; exports.MEDIA_FETCH_TIMEOUT_MS = MEDIA_FETCH_TIMEOUT_MS; exports.imageContent = imageContent; exports.audioContent = audioContent; exports.FastMCPError = FastMCPError; exports.SessionError = SessionError; exports.UnexpectedStateError = UnexpectedStateError; exports.UserError = UserError; exports.ServerState = ServerState; exports.FastMCPSession = FastMCPSession; exports.FastMCP = FastMCP;
|
|
2750
|
-
//# sourceMappingURL=chunk-
|
|
2750
|
+
//# sourceMappingURL=chunk-D7MJO6C6.cjs.map
|