fastmcp 4.20.10 → 4.20.12

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 CHANGED
@@ -631,9 +631,10 @@ server.addTool({
631
631
  });
632
632
  ```
633
633
 
634
- Works for `outputSchema` too. Note that FastMCP advertises every tool schema
635
- with `additionalProperties: false`, whatever your schema said — the same
636
- treatment Zod and Valibot schemas get.
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 _chunk27HK2PAJcjs = require('./chunk-27HK2PAJ.cjs');
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 = _chunk27HK2PAJcjs.DiscoveryDocumentCache; exports.FastMCP = _chunk27HK2PAJcjs.FastMCP; exports.FastMCPError = _chunk27HK2PAJcjs.FastMCPError; exports.FastMCPSession = _chunk27HK2PAJcjs.FastMCPSession; exports.GitHubProvider = _chunkBTXI2HQScjs.GitHubProvider; exports.GoogleProvider = _chunkBTXI2HQScjs.GoogleProvider; exports.MEDIA_FETCH_TIMEOUT_MS = _chunk27HK2PAJcjs.MEDIA_FETCH_TIMEOUT_MS; exports.OAuthProvider = _chunkBTXI2HQScjs.OAuthProvider; exports.ServerState = _chunk27HK2PAJcjs.ServerState; exports.SessionError = _chunk27HK2PAJcjs.SessionError; exports.UnexpectedStateError = _chunk27HK2PAJcjs.UnexpectedStateError; exports.UserError = _chunk27HK2PAJcjs.UserError; exports.audioContent = _chunk27HK2PAJcjs.audioContent; exports.getAuthSession = _chunkBTXI2HQScjs.getAuthSession; exports.imageContent = _chunk27HK2PAJcjs.imageContent; exports.jsonSchemaAdapter = _chunk27HK2PAJcjs.jsonSchemaAdapter; exports.requireAll = _chunkBTXI2HQScjs.requireAll; exports.requireAny = _chunkBTXI2HQScjs.requireAny; exports.requireAuth = _chunkBTXI2HQScjs.requireAuth; exports.requireRole = _chunkBTXI2HQScjs.requireRole; exports.requireScopes = _chunkBTXI2HQScjs.requireScopes;
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
@@ -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
- * Note that FastMCP applies the same strictness to every tool schema: objects
89
- * are advertised with `additionalProperties: false`, whatever the input schema
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
- * Note that FastMCP applies the same strictness to every tool schema: objects
89
- * are advertised with `additionalProperties: false`, whatever the input schema
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
@@ -11,7 +11,7 @@ import {
11
11
  audioContent,
12
12
  imageContent,
13
13
  jsonSchemaAdapter
14
- } from "./chunk-A5IEOE6F.js";
14
+ } from "./chunk-JCT6AJPZ.js";
15
15
  import {
16
16
  AuthProvider,
17
17
  AzureProvider,
@@ -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: strictJsonSchema(
1389
- await toJsonSchema(tool.outputSchema)
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-A5IEOE6F.js.map
2930
+ //# sourceMappingURL=chunk-JCT6AJPZ.js.map