@isomorph.ai/app-sdk 1.38.0 → 1.38.1
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/index.d.ts +2 -10
- package/dist/mcp-tools.d.ts +10 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { McpCallRequest, McpCallResult, McpToolsOptions } from './mcp-tools.js';
|
|
2
|
-
export type { McpCallRequest, McpCallResult, McpToolDescriptor, McpSelectedTool, McpToolsOptions } from './mcp-tools.js';
|
|
2
|
+
export type { McpCallRequest, McpCallResult, McpToolDescriptor, McpSelectedTool, McpToolsOptions, McpAgentTool } from './mcp-tools.js';
|
|
3
3
|
import { type IsomorphUserRole } from './user-role.js';
|
|
4
4
|
export type { IsomorphUserRole } from './user-role.js';
|
|
5
5
|
export type IsomorphErrorCategory = 'AUTH_REQUIRED' | 'FORBIDDEN' | 'NOT_FOUND' | 'CONFLICT' | 'VALIDATION_FAILED' | 'RATE_LIMITED' | 'UNAVAILABLE' | 'INTERNAL';
|
|
@@ -2059,15 +2059,7 @@ export declare function createClient(options?: ClientOptions): {
|
|
|
2059
2059
|
page: (path?: string) => Promise<void>;
|
|
2060
2060
|
};
|
|
2061
2061
|
integrations: {
|
|
2062
|
-
tools: (connection: string, options: McpToolsOptions) => Promise<Record<string, import("
|
|
2063
|
-
content?: Array<Record<string, unknown>>;
|
|
2064
|
-
structuredContent?: Record<string, unknown>;
|
|
2065
|
-
isError?: boolean;
|
|
2066
|
-
replay?: {
|
|
2067
|
-
complete: boolean;
|
|
2068
|
-
summary?: string;
|
|
2069
|
-
};
|
|
2070
|
-
}>>>;
|
|
2062
|
+
tools: (connection: string, options: McpToolsOptions) => Promise<Record<string, import("./mcp-tools.js").McpAgentTool>>;
|
|
2071
2063
|
execute: <R extends IntegrationRequest>(connection: string, request: R) => Promise<IntegrationResult<R>>;
|
|
2072
2064
|
connect: (connection: string) => Promise<IntegrationConnectResult>;
|
|
2073
2065
|
disconnect: (connection: string) => Promise<IntegrationDisconnectResult>;
|
package/dist/mcp-tools.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Tool } from 'ai';
|
|
2
1
|
export interface McpToolDescriptor {
|
|
3
2
|
name: string;
|
|
4
3
|
description?: string;
|
|
@@ -40,6 +39,15 @@ export interface McpToolsOptions {
|
|
|
40
39
|
tools: readonly string[];
|
|
41
40
|
runId: string;
|
|
42
41
|
}
|
|
42
|
+
/** The schema object belongs to the optional AI SDK and carries its private brand.
|
|
43
|
+
* Keep that implementation type out of ordinary clients' declaration graph. */
|
|
44
|
+
export interface McpAgentTool {
|
|
45
|
+
description?: string;
|
|
46
|
+
inputSchema: any;
|
|
47
|
+
execute(input: Record<string, unknown>, context: {
|
|
48
|
+
toolCallId: string;
|
|
49
|
+
}): Promise<McpCallResult['mcp']>;
|
|
50
|
+
}
|
|
43
51
|
type Execute = (request: McpCallRequest) => Promise<McpCallResult>;
|
|
44
|
-
export declare function createMcpTools(connection: string, options: McpToolsOptions, execute: Execute): Promise<Record<string,
|
|
52
|
+
export declare function createMcpTools(connection: string, options: McpToolsOptions, execute: Execute): Promise<Record<string, McpAgentTool>>;
|
|
45
53
|
export {};
|