@ai-sdk/mcp 1.0.92 → 1.0.93
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/CHANGELOG.md +6 -0
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/mcp-stdio/index.js.map +1 -1
- package/dist/mcp-stdio/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/tool/mcp-client.ts +1 -1
- package/src/tool/types.ts +12 -5
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
import { FetchFunction, FlexibleSchema, Tool } from '@ai-sdk/provider-utils';
|
|
2
|
+
import { FetchFunction, FlexibleSchema, Tool, ToolExecutionOptions } from '@ai-sdk/provider-utils';
|
|
3
3
|
import { JSONObject } from '@ai-sdk/provider';
|
|
4
4
|
|
|
5
5
|
declare const JSONRPCRequestSchema: z.ZodObject<{
|
|
@@ -354,7 +354,8 @@ type ToolSchemas = Record<string, {
|
|
|
354
354
|
outputSchema?: FlexibleSchema<JSONObject | unknown>;
|
|
355
355
|
}> | 'automatic' | undefined;
|
|
356
356
|
/** Base MCP tool type with execute and _meta */
|
|
357
|
-
type McpToolBase<INPUT = unknown, OUTPUT = CallToolResult> = Tool<INPUT, OUTPUT> &
|
|
357
|
+
type McpToolBase<INPUT = unknown, OUTPUT = CallToolResult> = Tool<INPUT, OUTPUT> & {
|
|
358
|
+
execute: (input: INPUT, options?: ToolExecutionOptions) => ReturnType<NonNullable<Tool<INPUT, OUTPUT>['execute']>>;
|
|
358
359
|
_meta?: ToolMeta;
|
|
359
360
|
};
|
|
360
361
|
type McpToolSet<TOOL_SCHEMAS extends ToolSchemas = 'automatic'> = TOOL_SCHEMAS extends Record<string, {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
import { FetchFunction, FlexibleSchema, Tool } from '@ai-sdk/provider-utils';
|
|
2
|
+
import { FetchFunction, FlexibleSchema, Tool, ToolExecutionOptions } from '@ai-sdk/provider-utils';
|
|
3
3
|
import { JSONObject } from '@ai-sdk/provider';
|
|
4
4
|
|
|
5
5
|
declare const JSONRPCRequestSchema: z.ZodObject<{
|
|
@@ -354,7 +354,8 @@ type ToolSchemas = Record<string, {
|
|
|
354
354
|
outputSchema?: FlexibleSchema<JSONObject | unknown>;
|
|
355
355
|
}> | 'automatic' | undefined;
|
|
356
356
|
/** Base MCP tool type with execute and _meta */
|
|
357
|
-
type McpToolBase<INPUT = unknown, OUTPUT = CallToolResult> = Tool<INPUT, OUTPUT> &
|
|
357
|
+
type McpToolBase<INPUT = unknown, OUTPUT = CallToolResult> = Tool<INPUT, OUTPUT> & {
|
|
358
|
+
execute: (input: INPUT, options?: ToolExecutionOptions) => ReturnType<NonNullable<Tool<INPUT, OUTPUT>['execute']>>;
|
|
358
359
|
_meta?: ToolMeta;
|
|
359
360
|
};
|
|
360
361
|
type McpToolSet<TOOL_SCHEMAS extends ToolSchemas = 'automatic'> = TOOL_SCHEMAS extends Record<string, {
|