fastmcp 4.20.10 → 4.20.11
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/README.md +4 -3
- package/dist/FastMCP.cjs +2 -2
- package/dist/FastMCP.d.cts +2 -3
- package/dist/FastMCP.d.ts +2 -3
- package/dist/FastMCP.js +1 -1
- package/dist/{chunk-A5IEOE6F.js → chunk-JCT6AJPZ.js} +3 -3
- package/dist/chunk-JCT6AJPZ.js.map +1 -0
- package/dist/{chunk-27HK2PAJ.cjs → chunk-MA2QZQFN.cjs} +3 -3
- package/dist/chunk-MA2QZQFN.cjs.map +1 -0
- package/dist/examples/custom-routes.cjs +2 -2
- package/dist/examples/custom-routes.js +1 -1
- package/dist/openapi/index.cjs +5 -5
- package/dist/openapi/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-27HK2PAJ.cjs.map +0 -1
- package/dist/chunk-A5IEOE6F.js.map +0 -1
package/README.md
CHANGED
|
@@ -631,9 +631,10 @@ server.addTool({
|
|
|
631
631
|
});
|
|
632
632
|
```
|
|
633
633
|
|
|
634
|
-
Works for `outputSchema` too. Note that FastMCP advertises
|
|
635
|
-
|
|
636
|
-
|
|
634
|
+
Works for `outputSchema` too. Note that FastMCP advertises input schemas with
|
|
635
|
+
`additionalProperties: false`, whatever your schema said — the same treatment
|
|
636
|
+
Zod and Valibot schemas get. Output schemas keep whatever additional-properties
|
|
637
|
+
rule your schema declared.
|
|
637
638
|
|
|
638
639
|
Unlike the schema libraries above, a plain JSON Schema carries no TypeScript
|
|
639
640
|
types, so `execute` receives `unknown` arguments. Cast or narrow them yourself.
|
package/dist/FastMCP.cjs
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkMA2QZQFNcjs = require('./chunk-MA2QZQFN.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -49,5 +49,5 @@ var _chunkBTXI2HQScjs = require('./chunk-BTXI2HQS.cjs');
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
exports.AuthProvider = _chunkBTXI2HQScjs.AuthProvider; exports.AzureProvider = _chunkBTXI2HQScjs.AzureProvider; exports.DiscoveryDocumentCache =
|
|
52
|
+
exports.AuthProvider = _chunkBTXI2HQScjs.AuthProvider; exports.AzureProvider = _chunkBTXI2HQScjs.AzureProvider; exports.DiscoveryDocumentCache = _chunkMA2QZQFNcjs.DiscoveryDocumentCache; exports.FastMCP = _chunkMA2QZQFNcjs.FastMCP; exports.FastMCPError = _chunkMA2QZQFNcjs.FastMCPError; exports.FastMCPSession = _chunkMA2QZQFNcjs.FastMCPSession; exports.GitHubProvider = _chunkBTXI2HQScjs.GitHubProvider; exports.GoogleProvider = _chunkBTXI2HQScjs.GoogleProvider; exports.MEDIA_FETCH_TIMEOUT_MS = _chunkMA2QZQFNcjs.MEDIA_FETCH_TIMEOUT_MS; exports.OAuthProvider = _chunkBTXI2HQScjs.OAuthProvider; exports.ServerState = _chunkMA2QZQFNcjs.ServerState; exports.SessionError = _chunkMA2QZQFNcjs.SessionError; exports.UnexpectedStateError = _chunkMA2QZQFNcjs.UnexpectedStateError; exports.UserError = _chunkMA2QZQFNcjs.UserError; exports.audioContent = _chunkMA2QZQFNcjs.audioContent; exports.getAuthSession = _chunkBTXI2HQScjs.getAuthSession; exports.imageContent = _chunkMA2QZQFNcjs.imageContent; exports.jsonSchemaAdapter = _chunkMA2QZQFNcjs.jsonSchemaAdapter; exports.requireAll = _chunkBTXI2HQScjs.requireAll; exports.requireAny = _chunkBTXI2HQScjs.requireAny; exports.requireAuth = _chunkBTXI2HQScjs.requireAuth; exports.requireRole = _chunkBTXI2HQScjs.requireRole; exports.requireScopes = _chunkBTXI2HQScjs.requireScopes;
|
|
53
53
|
//# sourceMappingURL=FastMCP.cjs.map
|
package/dist/FastMCP.d.cts
CHANGED
|
@@ -85,9 +85,8 @@ interface JsonSchemaStandardSchema extends StandardSchemaV1 {
|
|
|
85
85
|
* (and `ajv-formats` if you use `format` keywords) to use this. It is imported
|
|
86
86
|
* on first validation, so servers that never call this pay nothing for it.
|
|
87
87
|
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* said.
|
|
88
|
+
* FastMCP advertises tool input objects with `additionalProperties: false`.
|
|
89
|
+
* Output schemas preserve the declared rules for additional properties.
|
|
91
90
|
*
|
|
92
91
|
* @example
|
|
93
92
|
* ```ts
|
package/dist/FastMCP.d.ts
CHANGED
|
@@ -85,9 +85,8 @@ interface JsonSchemaStandardSchema extends StandardSchemaV1 {
|
|
|
85
85
|
* (and `ajv-formats` if you use `format` keywords) to use this. It is imported
|
|
86
86
|
* on first validation, so servers that never call this pay nothing for it.
|
|
87
87
|
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* said.
|
|
88
|
+
* FastMCP advertises tool input objects with `additionalProperties: false`.
|
|
89
|
+
* Output schemas preserve the declared rules for additional properties.
|
|
91
90
|
*
|
|
92
91
|
* @example
|
|
93
92
|
* ```ts
|
package/dist/FastMCP.js
CHANGED
|
@@ -1385,8 +1385,8 @@ ${error instanceof Error ? error.stack : JSON.stringify(error)}`
|
|
|
1385
1385
|
},
|
|
1386
1386
|
name: tool.name,
|
|
1387
1387
|
...tool.outputSchema && {
|
|
1388
|
-
outputSchema:
|
|
1389
|
-
|
|
1388
|
+
outputSchema: await toJsonSchema(
|
|
1389
|
+
tool.outputSchema
|
|
1390
1390
|
)
|
|
1391
1391
|
},
|
|
1392
1392
|
// Pass through _meta for MCP ext-apps UI support (issue #229)
|
|
@@ -2927,4 +2927,4 @@ export {
|
|
|
2927
2927
|
FastMCPSession,
|
|
2928
2928
|
FastMCP
|
|
2929
2929
|
};
|
|
2930
|
-
//# sourceMappingURL=chunk-
|
|
2930
|
+
//# sourceMappingURL=chunk-JCT6AJPZ.js.map
|