@ai-sdk/mcp 1.0.0-beta.39 → 1.0.0-beta.40
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 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -452,11 +452,11 @@ interface MCPClient {
|
|
|
452
452
|
listResourceTemplates(options?: {
|
|
453
453
|
options?: RequestOptions;
|
|
454
454
|
}): Promise<ListResourceTemplatesResult>;
|
|
455
|
-
|
|
455
|
+
experimental_listPrompts(options?: {
|
|
456
456
|
params?: PaginatedRequest['params'];
|
|
457
457
|
options?: RequestOptions;
|
|
458
458
|
}): Promise<ListPromptsResult>;
|
|
459
|
-
|
|
459
|
+
experimental_getPrompt(args: {
|
|
460
460
|
name: string;
|
|
461
461
|
arguments?: Record<string, unknown>;
|
|
462
462
|
options?: RequestOptions;
|
|
@@ -465,4 +465,4 @@ interface MCPClient {
|
|
|
465
465
|
close: () => Promise<void>;
|
|
466
466
|
}
|
|
467
467
|
|
|
468
|
-
export { type ElicitResult, ElicitResultSchema, type ElicitationRequest, ElicitationRequestSchema, type JSONRPCError, type JSONRPCMessage, type JSONRPCNotification, type JSONRPCRequest, type JSONRPCResponse, type MCPTransport, type OAuthClientInformation, type OAuthClientMetadata, type OAuthClientProvider, type OAuthTokens, UnauthorizedError, auth, type MCPClient as experimental_MCPClient, type ClientCapabilities as experimental_MCPClientCapabilities, type MCPClientConfig as experimental_MCPClientConfig, createMCPClient as experimental_createMCPClient };
|
|
468
|
+
export { type ElicitResult, ElicitResultSchema, type ElicitationRequest, ElicitationRequestSchema, type JSONRPCError, type JSONRPCMessage, type JSONRPCNotification, type JSONRPCRequest, type JSONRPCResponse, type MCPClient, type ClientCapabilities as MCPClientCapabilities, type MCPClientConfig, type MCPTransport, type OAuthClientInformation, type OAuthClientMetadata, type OAuthClientProvider, type OAuthTokens, UnauthorizedError, auth, createMCPClient, type MCPClient as experimental_MCPClient, type ClientCapabilities as experimental_MCPClientCapabilities, type MCPClientConfig as experimental_MCPClientConfig, createMCPClient as experimental_createMCPClient };
|
package/dist/index.d.ts
CHANGED
|
@@ -452,11 +452,11 @@ interface MCPClient {
|
|
|
452
452
|
listResourceTemplates(options?: {
|
|
453
453
|
options?: RequestOptions;
|
|
454
454
|
}): Promise<ListResourceTemplatesResult>;
|
|
455
|
-
|
|
455
|
+
experimental_listPrompts(options?: {
|
|
456
456
|
params?: PaginatedRequest['params'];
|
|
457
457
|
options?: RequestOptions;
|
|
458
458
|
}): Promise<ListPromptsResult>;
|
|
459
|
-
|
|
459
|
+
experimental_getPrompt(args: {
|
|
460
460
|
name: string;
|
|
461
461
|
arguments?: Record<string, unknown>;
|
|
462
462
|
options?: RequestOptions;
|
|
@@ -465,4 +465,4 @@ interface MCPClient {
|
|
|
465
465
|
close: () => Promise<void>;
|
|
466
466
|
}
|
|
467
467
|
|
|
468
|
-
export { type ElicitResult, ElicitResultSchema, type ElicitationRequest, ElicitationRequestSchema, type JSONRPCError, type JSONRPCMessage, type JSONRPCNotification, type JSONRPCRequest, type JSONRPCResponse, type MCPTransport, type OAuthClientInformation, type OAuthClientMetadata, type OAuthClientProvider, type OAuthTokens, UnauthorizedError, auth, type MCPClient as experimental_MCPClient, type ClientCapabilities as experimental_MCPClientCapabilities, type MCPClientConfig as experimental_MCPClientConfig, createMCPClient as experimental_createMCPClient };
|
|
468
|
+
export { type ElicitResult, ElicitResultSchema, type ElicitationRequest, ElicitationRequestSchema, type JSONRPCError, type JSONRPCMessage, type JSONRPCNotification, type JSONRPCRequest, type JSONRPCResponse, type MCPClient, type ClientCapabilities as MCPClientCapabilities, type MCPClientConfig, type MCPTransport, type OAuthClientInformation, type OAuthClientMetadata, type OAuthClientProvider, type OAuthTokens, UnauthorizedError, auth, createMCPClient, type MCPClient as experimental_MCPClient, type ClientCapabilities as experimental_MCPClientCapabilities, type MCPClientConfig as experimental_MCPClientConfig, createMCPClient as experimental_createMCPClient };
|
package/dist/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __export(src_exports, {
|
|
|
34
34
|
ElicitationRequestSchema: () => ElicitationRequestSchema,
|
|
35
35
|
UnauthorizedError: () => UnauthorizedError,
|
|
36
36
|
auth: () => auth,
|
|
37
|
+
createMCPClient: () => createMCPClient,
|
|
37
38
|
experimental_createMCPClient: () => createMCPClient
|
|
38
39
|
});
|
|
39
40
|
module.exports = __toCommonJS(src_exports);
|
|
@@ -1921,13 +1922,13 @@ var DefaultMCPClient = class {
|
|
|
1921
1922
|
} = {}) {
|
|
1922
1923
|
return this.listResourceTemplatesInternal({ options });
|
|
1923
1924
|
}
|
|
1924
|
-
|
|
1925
|
+
experimental_listPrompts({
|
|
1925
1926
|
params,
|
|
1926
1927
|
options
|
|
1927
1928
|
} = {}) {
|
|
1928
1929
|
return this.listPromptsInternal({ params, options });
|
|
1929
1930
|
}
|
|
1930
|
-
|
|
1931
|
+
experimental_getPrompt({
|
|
1931
1932
|
name: name3,
|
|
1932
1933
|
arguments: args,
|
|
1933
1934
|
options
|
|
@@ -2048,6 +2049,7 @@ var DefaultMCPClient = class {
|
|
|
2048
2049
|
ElicitationRequestSchema,
|
|
2049
2050
|
UnauthorizedError,
|
|
2050
2051
|
auth,
|
|
2052
|
+
createMCPClient,
|
|
2051
2053
|
experimental_createMCPClient
|
|
2052
2054
|
});
|
|
2053
2055
|
//# sourceMappingURL=index.js.map
|