From 74095d832137dbdb33112168859b6294dbb89ca7 Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Wed, 23 Oct 2024 16:14:18 +0100 Subject: [PATCH 1/4] Don't commit 'dist' anymore --- .gitignore | 1 + dist/cli.d.ts | 2 - dist/cli.d.ts.map | 1 - dist/cli.js | 114 - dist/cli.js.map | 1 - dist/client/index.d.ts | 27 - dist/client/index.d.ts.map | 1 - dist/client/index.js | 51 - dist/client/index.js.map | 1 - dist/client/sse.d.ts | 22 - dist/client/sse.d.ts.map | 1 - dist/client/sse.js | 91 - dist/client/sse.js.map | 1 - dist/client/stdio.d.ts | 41 - dist/client/stdio.d.ts.map | 1 - dist/client/stdio.js | 99 - dist/client/stdio.js.map | 1 - dist/client/stdio.test.d.ts | 2 - dist/client/stdio.test.d.ts.map | 1 - dist/client/stdio.test.js | 51 - dist/client/stdio.test.js.map | 1 - dist/client/websocket.d.ts | 17 - dist/client/websocket.d.ts.map | 1 - dist/client/websocket.js | 61 - dist/client/websocket.js.map | 1 - dist/server/index.d.ts | 31 - dist/server/index.d.ts.map | 1 - dist/server/index.js | 59 - dist/server/index.js.map | 1 - dist/server/sse.d.ts | 46 - dist/server/sse.d.ts.map | 1 - dist/server/sse.js | 116 - dist/server/sse.js.map | 1 - dist/server/stdio.d.ts | 28 - dist/server/stdio.d.ts.map | 1 - dist/server/stdio.js | 69 - dist/server/stdio.js.map | 1 - dist/server/stdio.test.d.ts | 2 - dist/server/stdio.test.d.ts.map | 1 - dist/server/stdio.test.js | 87 - dist/server/stdio.test.js.map | 1 - dist/shared/protocol.d.ts | 92 - dist/shared/protocol.d.ts.map | 1 - dist/shared/protocol.js | 225 - dist/shared/protocol.js.map | 1 - dist/shared/stdio.d.ts | 13 - dist/shared/stdio.d.ts.map | 1 - dist/shared/stdio.js | 31 - dist/shared/stdio.js.map | 1 - dist/shared/stdio.test.d.ts | 2 - dist/shared/stdio.test.d.ts.map | 1 - dist/shared/stdio.test.js | 27 - dist/shared/stdio.test.js.map | 1 - dist/shared/transport.d.ts | 39 - dist/shared/transport.d.ts.map | 1 - dist/shared/transport.js | 2 - dist/shared/transport.js.map | 1 - dist/types.d.ts | 14886 ------------------------------ dist/types.d.ts.map | 1 - dist/types.js | 842 -- dist/types.js.map | 1 - 61 files changed, 1 insertion(+), 17205 deletions(-) delete mode 100644 dist/cli.d.ts delete mode 100644 dist/cli.d.ts.map delete mode 100644 dist/cli.js delete mode 100644 dist/cli.js.map delete mode 100644 dist/client/index.d.ts delete mode 100644 dist/client/index.d.ts.map delete mode 100644 dist/client/index.js delete mode 100644 dist/client/index.js.map delete mode 100644 dist/client/sse.d.ts delete mode 100644 dist/client/sse.d.ts.map delete mode 100644 dist/client/sse.js delete mode 100644 dist/client/sse.js.map delete mode 100644 dist/client/stdio.d.ts delete mode 100644 dist/client/stdio.d.ts.map delete mode 100644 dist/client/stdio.js delete mode 100644 dist/client/stdio.js.map delete mode 100644 dist/client/stdio.test.d.ts delete mode 100644 dist/client/stdio.test.d.ts.map delete mode 100644 dist/client/stdio.test.js delete mode 100644 dist/client/stdio.test.js.map delete mode 100644 dist/client/websocket.d.ts delete mode 100644 dist/client/websocket.d.ts.map delete mode 100644 dist/client/websocket.js delete mode 100644 dist/client/websocket.js.map delete mode 100644 dist/server/index.d.ts delete mode 100644 dist/server/index.d.ts.map delete mode 100644 dist/server/index.js delete mode 100644 dist/server/index.js.map delete mode 100644 dist/server/sse.d.ts delete mode 100644 dist/server/sse.d.ts.map delete mode 100644 dist/server/sse.js delete mode 100644 dist/server/sse.js.map delete mode 100644 dist/server/stdio.d.ts delete mode 100644 dist/server/stdio.d.ts.map delete mode 100644 dist/server/stdio.js delete mode 100644 dist/server/stdio.js.map delete mode 100644 dist/server/stdio.test.d.ts delete mode 100644 dist/server/stdio.test.d.ts.map delete mode 100644 dist/server/stdio.test.js delete mode 100644 dist/server/stdio.test.js.map delete mode 100644 dist/shared/protocol.d.ts delete mode 100644 dist/shared/protocol.d.ts.map delete mode 100644 dist/shared/protocol.js delete mode 100644 dist/shared/protocol.js.map delete mode 100644 dist/shared/stdio.d.ts delete mode 100644 dist/shared/stdio.d.ts.map delete mode 100644 dist/shared/stdio.js delete mode 100644 dist/shared/stdio.js.map delete mode 100644 dist/shared/stdio.test.d.ts delete mode 100644 dist/shared/stdio.test.d.ts.map delete mode 100644 dist/shared/stdio.test.js delete mode 100644 dist/shared/stdio.test.js.map delete mode 100644 dist/shared/transport.d.ts delete mode 100644 dist/shared/transport.d.ts.map delete mode 100644 dist/shared/transport.js delete mode 100644 dist/shared/transport.js.map delete mode 100644 dist/types.d.ts delete mode 100644 dist/types.d.ts.map delete mode 100644 dist/types.js delete mode 100644 dist/types.js.map diff --git a/.gitignore b/.gitignore index 6e28fb8bd..6c4bf1a6b 100644 --- a/.gitignore +++ b/.gitignore @@ -129,3 +129,4 @@ out .pnp.* .DS_Store +dist/ diff --git a/dist/cli.d.ts b/dist/cli.d.ts deleted file mode 100644 index d9ae1944c..000000000 --- a/dist/cli.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=cli.d.ts.map \ No newline at end of file diff --git a/dist/cli.d.ts.map b/dist/cli.d.ts.map deleted file mode 100644 index f022439b1..000000000 --- a/dist/cli.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/cli.js b/dist/cli.js deleted file mode 100644 index 8e452fdac..000000000 --- a/dist/cli.js +++ /dev/null @@ -1,114 +0,0 @@ -import EventSource from "eventsource"; -import WebSocket from "ws"; -// eslint-disable-next-line @typescript-eslint/no-explicit-any -global.EventSource = EventSource; -// eslint-disable-next-line @typescript-eslint/no-explicit-any -global.WebSocket = WebSocket; -import express from "express"; -import { Client } from "./client/index.js"; -import { SSEClientTransport } from "./client/sse.js"; -import { Server } from "./server/index.js"; -import { SSEServerTransport } from "./server/sse.js"; -import { WebSocketClientTransport } from "./client/websocket.js"; -import { StdioClientTransport } from "./client/stdio.js"; -import { StdioServerTransport } from "./server/stdio.js"; -async function runClient(url_or_command, args) { - const client = new Client({ - name: "mcp-typescript test client", - version: "0.1.0", - }); - let clientTransport; - let url = undefined; - try { - url = new URL(url_or_command); - } - catch (_a) { - // Ignore - } - if ((url === null || url === void 0 ? void 0 : url.protocol) === "http:" || (url === null || url === void 0 ? void 0 : url.protocol) === "https:") { - clientTransport = new SSEClientTransport(new URL(url_or_command)); - } - else if ((url === null || url === void 0 ? void 0 : url.protocol) === "ws:" || (url === null || url === void 0 ? void 0 : url.protocol) === "wss:") { - clientTransport = new WebSocketClientTransport(new URL(url_or_command)); - } - else { - clientTransport = new StdioClientTransport({ - command: url_or_command, - args, - }); - } - console.log("Connected to server."); - await client.connect(clientTransport); - console.log("Initialized."); - await client.close(); - console.log("Closed."); -} -async function runServer(port) { - if (port !== null) { - const app = express(); - let servers = []; - app.get("/sse", async (req, res) => { - console.log("Got new SSE connection"); - const transport = new SSEServerTransport("/message", res); - const server = new Server({ - name: "mcp-typescript test server", - version: "0.1.0", - }); - servers.push(server); - server.onclose = () => { - console.log("SSE connection closed"); - servers = servers.filter((s) => s !== server); - }; - await server.connect(transport); - }); - app.post("/message", async (req, res) => { - console.log("Received message"); - const sessionId = req.query.sessionId; - const transport = servers - .map((s) => s.transport) - .find((t) => t.sessionId === sessionId); - if (!transport) { - res.status(404).send("Session not found"); - return; - } - await transport.handlePostMessage(req, res); - }); - app.listen(port, () => { - console.log(`Server running on http://localhost:${port}/sse`); - }); - } - else { - const server = new Server({ - name: "mcp-typescript test server", - version: "0.1.0", - }); - const transport = new StdioServerTransport(); - await server.connect(transport); - console.log("Server running on stdio"); - } -} -const args = process.argv.slice(2); -const command = args[0]; -switch (command) { - case "client": - if (args.length < 2) { - console.error("Usage: client [args...]"); - process.exit(1); - } - runClient(args[1], args.slice(2)).catch((error) => { - console.error(error); - process.exit(1); - }); - break; - case "server": { - const port = args[1] ? parseInt(args[1]) : null; - runServer(port).catch((error) => { - console.error(error); - process.exit(1); - }); - break; - } - default: - console.error("Unrecognized command:", command); -} -//# sourceMappingURL=cli.js.map \ No newline at end of file diff --git a/dist/cli.js.map b/dist/cli.js.map deleted file mode 100644 index c95009920..000000000 --- a/dist/cli.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,aAAa,CAAC;AACtC,OAAO,SAAS,MAAM,IAAI,CAAC;AAE3B,8DAA8D;AAC7D,MAAc,CAAC,WAAW,GAAG,WAAW,CAAC;AAC1C,8DAA8D;AAC7D,MAAc,CAAC,SAAS,GAAG,SAAS,CAAC;AAEtC,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD,KAAK,UAAU,SAAS,CAAC,cAAsB,EAAE,IAAc;IAC7D,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC;QACxB,IAAI,EAAE,4BAA4B;QAClC,OAAO,EAAE,OAAO;KACjB,CAAC,CAAC;IAEH,IAAI,eAAe,CAAC;IAEpB,IAAI,GAAG,GAAoB,SAAS,CAAC;IACrC,IAAI,CAAC;QACH,GAAG,GAAG,IAAI,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC,CAAC;IAAC,WAAM,CAAC;QACP,SAAS;IACX,CAAC;IAED,IAAI,CAAA,GAAG,a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CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;QAEH,MAAM;IACR,CAAC;IAED;QACE,OAAO,CAAC,KAAK,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;AACpD,CAAC"} \ No newline at end of file diff --git a/dist/client/index.d.ts b/dist/client/index.d.ts deleted file mode 100644 index 18a92f49d..000000000 --- a/dist/client/index.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Protocol } from "../shared/protocol.js"; -import { Transport } from "../shared/transport.js"; -import { ClientNotification, ClientRequest, ClientResult, Implementation, ServerCapabilities } from "../types.js"; -/** - * An MCP client on top of a pluggable transport. - * - * The client will automatically begin the initialization flow with the server when connect() is called. - */ -export declare class Client extends Protocol { - private _clientInfo; - private _serverCapabilities?; - private _serverVersion?; - /** - * Initializes this client with the given name and version information. - */ - constructor(_clientInfo: Implementation); - connect(transport: Transport): Promise; - /** - * After initialization has completed, this will be populated with the server's reported capabilities. - */ - getServerCapabilities(): ServerCapabilities | undefined; - /** - * After initialization has completed, this will be populated with information about the server's name and version. - */ - getServerVersion(): Implementation | undefined; -} -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/client/index.d.ts.map b/dist/client/index.d.ts.map deleted file mode 100644 index a316bdfc9..000000000 --- a/dist/client/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,cAAc,EAGd,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,qBAAa,MAAO,SAAQ,QAAQ,CAClC,aAAa,EACb,kBAAkB,EAClB,YAAY,CACb;IAOa,OAAO,CAAC,WAAW;IAN/B,OAAO,CAAC,mBAAmB,CAAC,CAAqB;IACjD,OAAO,CAAC,cAAc,CAAC,CAAiB;IAExC;;OAEG;gBACiB,WAAW,EAAE,cAAc;IAIhC,OAAO,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAiC3D;;OAEG;IACH,qBAAqB,IAAI,kBAAkB,GAAG,SAAS;IAIvD;;OAEG;IACH,gBAAgB,IAAI,cAAc,GAAG,SAAS;CAG/C"} \ No newline at end of file diff --git a/dist/client/index.js b/dist/client/index.js deleted file mode 100644 index fa99b0e45..000000000 --- a/dist/client/index.js +++ /dev/null @@ -1,51 +0,0 @@ -import { Protocol } from "../shared/protocol.js"; -import { InitializeResultSchema, PROTOCOL_VERSION, } from "../types.js"; -/** - * An MCP client on top of a pluggable transport. - * - * The client will automatically begin the initialization flow with the server when connect() is called. - */ -export class Client extends Protocol { - /** - * Initializes this client with the given name and version information. - */ - constructor(_clientInfo) { - super(); - this._clientInfo = _clientInfo; - } - async connect(transport) { - await super.connect(transport); - const result = await this.request({ - method: "initialize", - params: { - protocolVersion: PROTOCOL_VERSION, - capabilities: {}, - clientInfo: this._clientInfo, - }, - }, InitializeResultSchema); - if (result === undefined) { - throw new Error(`Server sent invalid initialize result: ${result}`); - } - if (result.protocolVersion !== PROTOCOL_VERSION) { - throw new Error(`Server's protocol version is not supported: ${result.protocolVersion}`); - } - this._serverCapabilities = result.capabilities; - this._serverVersion = result.serverInfo; - await this.notification({ - method: "notifications/initialized", - }); - } - /** - * After initialization has completed, this will be populated with the server's reported capabilities. - */ - getServerCapabilities() { - return this._serverCapabilities; - } - /** - * After initialization has completed, this will be populated with information about the server's name and version. - */ - getServerVersion() { - return this._serverVersion; - } -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/client/index.js.map b/dist/client/index.js.map deleted file mode 100644 index 82bcf875c..000000000 --- a/dist/client/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[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dist/client/sse.d.ts b/dist/client/sse.d.ts deleted file mode 100644 index a419b6017..000000000 --- a/dist/client/sse.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Transport } from "../shared/transport.js"; -import { JSONRPCMessage } from "../types.js"; -/** - * Client transport for SSE: this will connect to a server using Server-Sent Events for receiving - * messages and make separate POST requests for sending messages. - * - * This uses the EventSource API in browsers. You can install the `eventsource` package for Node.js. - */ -export declare class SSEClientTransport implements Transport { - private _eventSource?; - private _endpoint?; - private _abortController?; - private _url; - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage) => void; - constructor(url: URL); - start(): Promise; - close(): Promise; - send(message: JSONRPCMessage): Promise; -} -//# sourceMappingURL=sse.d.ts.map \ No newline at end of file diff --git a/dist/client/sse.d.ts.map b/dist/client/sse.d.ts.map deleted file mode 100644 index 9f77c54f0..000000000 --- a/dist/client/sse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sse.d.ts","sourceRoot":"","sources":["../../src/client/sse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAwB,MAAM,aAAa,CAAC;AAEnE;;;;;GAKG;AACH,qBAAa,kBAAmB,YAAW,SAAS;IAClD,OAAO,CAAC,YAAY,CAAC,CAAc;IACnC,OAAO,CAAC,SAAS,CAAC,CAAM;IACxB,OAAO,CAAC,gBAAgB,CAAC,CAAkB;IAC3C,OAAO,CAAC,IAAI,CAAM;IAElB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;gBAElC,GAAG,EAAE,GAAG;IAIpB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAyDhB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAMtB,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CA0BnD"} \ No newline at end of file diff --git a/dist/client/sse.js b/dist/client/sse.js deleted file mode 100644 index 5dac06913..000000000 --- a/dist/client/sse.js +++ /dev/null @@ -1,91 +0,0 @@ -import { JSONRPCMessageSchema } from "../types.js"; -/** - * Client transport for SSE: this will connect to a server using Server-Sent Events for receiving - * messages and make separate POST requests for sending messages. - * - * This uses the EventSource API in browsers. You can install the `eventsource` package for Node.js. - */ -export class SSEClientTransport { - constructor(url) { - this._url = url; - } - start() { - if (this._eventSource) { - throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically."); - } - return new Promise((resolve, reject) => { - this._eventSource = new EventSource(this._url.href); - this._abortController = new AbortController(); - this._eventSource.onerror = (event) => { - var _a; - const error = new Error(`SSE error: ${JSON.stringify(event)}`); - reject(error); - (_a = this.onerror) === null || _a === void 0 ? void 0 : _a.call(this, error); - }; - this._eventSource.onopen = () => { - // The connection is open, but we need to wait for the endpoint to be received. - }; - this._eventSource.addEventListener("endpoint", (event) => { - var _a; - const messageEvent = event; - try { - this._endpoint = new URL(messageEvent.data, this._url); - if (this._endpoint.origin !== this._url.origin) { - throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`); - } - } - catch (error) { - reject(error); - (_a = this.onerror) === null || _a === void 0 ? void 0 : _a.call(this, error); - void this.close(); - return; - } - resolve(); - }); - this._eventSource.onmessage = (event) => { - var _a, _b; - const messageEvent = event; - let message; - try { - message = JSONRPCMessageSchema.parse(JSON.parse(messageEvent.data)); - } - catch (error) { - (_a = this.onerror) === null || _a === void 0 ? void 0 : _a.call(this, error); - return; - } - (_b = this.onmessage) === null || _b === void 0 ? void 0 : _b.call(this, message); - }; - }); - } - async close() { - var _a, _b, _c; - (_a = this._abortController) === null || _a === void 0 ? void 0 : _a.abort(); - (_b = this._eventSource) === null || _b === void 0 ? void 0 : _b.close(); - (_c = this.onclose) === null || _c === void 0 ? void 0 : _c.call(this); - } - async send(message) { - var _a, _b; - if (!this._endpoint) { - throw new Error("Not connected"); - } - try { - const response = await fetch(this._endpoint, { - method: "POST", - headers: { - "Content-Type": "application/json", - }, - body: JSON.stringify(message), - signal: (_a = this._abortController) === null || _a === void 0 ? void 0 : _a.signal, - }); - if (!response.ok) { - const text = await response.text().catch(() => null); - throw new Error(`Error POSTing to endpoint (HTTP ${response.status}): ${text}`); - } - } - catch (error) { - (_b = this.onerror) === null || _b === void 0 ? void 0 : _b.call(this, error); - throw error; - } - } -} -//# sourceMappingURL=sse.js.map \ No newline at end of file diff --git a/dist/client/sse.js.map b/dist/client/sse.js.map deleted file mode 100644 index 706813a40..000000000 --- a/dist/client/sse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sse.js","sourceRoot":"","sources":["../../src/client/sse.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnE;;;;;GAKG;AACH,MAAM,OAAO,kBAAkB;IAU7B,YAAY,GAAQ;QAClB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAClB,CAAC;IAED,KAAK;QACH,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CACb,6GAA6G,CAC9G,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,IAAI,CAAC,YAAY,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACpD,IAAI,CAAC,gBAAgB,GAAG,IAAI,eAAe,EAAE,CAAC;YAE9C,IAAI,CAAC,YAAY,CAAC,OAAO,GAAG,CAAC,KAAK,EAAE,EAAE;;gBACpC,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,cAAc,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;gBAC/D,MAAM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.ts deleted file mode 100644 index 418706e49..000000000 --- a/dist/client/stdio.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { JSONRPCMessage } from "../types.js"; -import { Transport } from "../shared/transport.js"; -export type StdioServerParameters = { - /** - * The executable to run to start the server. - */ - command: string; - /** - * Command line arguments to pass to the executable. - */ - args?: string[]; - /** - * The environment to use when spawning the process. - * - * The environment is NOT inherited from the parent process by default. - */ - env?: object; -}; -/** - * Client transport for stdio: this will connect to a server by spawning a process and communicating with it over stdin/stdout. - * - * This transport is only available in Node.js environments. - */ -export declare class StdioClientTransport implements Transport { - private _process?; - private _abortController; - private _readBuffer; - private _serverParams; - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage) => void; - constructor(server: StdioServerParameters); - /** - * Starts the server process and prepares to communicate with it. - */ - start(): Promise; - private processReadBuffer; - close(): Promise; - send(message: JSONRPCMessage): Promise; -} -//# sourceMappingURL=stdio.d.ts.map \ No newline at end of file diff --git a/dist/client/stdio.d.ts.map b/dist/client/stdio.d.ts.map deleted file mode 100644 index 41dd7abce..000000000 --- a/dist/client/stdio.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../src/client/stdio.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;GAIG;AACH,qBAAa,oBAAqB,YAAW,SAAS;IACpD,OAAO,CAAC,QAAQ,CAAC,CAAe;IAChC,OAAO,CAAC,gBAAgB,CAA0C;IAClE,OAAO,CAAC,WAAW,CAAgC;IACnD,OAAO,CAAC,aAAa,CAAwB;IAE7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;gBAElC,MAAM,EAAE,qBAAqB;IAIzC;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAyD5B,OAAO,CAAC,iBAAiB;IAenB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAM5B,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAc7C"} \ No newline at end of file diff --git a/dist/client/stdio.js b/dist/client/stdio.js deleted file mode 100644 index 3686cb367..000000000 --- a/dist/client/stdio.js +++ /dev/null @@ -1,99 +0,0 @@ -import { spawn } from "node:child_process"; -import { ReadBuffer, serializeMessage } from "../shared/stdio.js"; -/** - * Client transport for stdio: this will connect to a server by spawning a process and communicating with it over stdin/stdout. - * - * This transport is only available in Node.js environments. - */ -export class StdioClientTransport { - constructor(server) { - this._abortController = new AbortController(); - this._readBuffer = new ReadBuffer(); - this._serverParams = server; - } - /** - * Starts the server process and prepares to communicate with it. - */ - async start() { - if (this._process) { - throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically."); - } - return new Promise((resolve, reject) => { - var _a, _b, _c, _d; - this._process = spawn(this._serverParams.command, (_a = this._serverParams.args) !== null && _a !== void 0 ? _a : [], { - // The parent process may have sensitive secrets in its env, so don't inherit it automatically. - env: this._serverParams.env === undefined - ? {} - : { ...this._serverParams.env }, - stdio: ["pipe", "pipe", "inherit"], - signal: this._abortController.signal, - }); - this._process.on("error", (error) => { - var _a, _b; - if (error.name === "AbortError") { - // Expected when close() is called. - (_a = this.onclose) === null || _a === void 0 ? void 0 : _a.call(this); - return; - } - reject(error); - (_b = this.onerror) === null || _b === void 0 ? void 0 : _b.call(this, error); - }); - this._process.on("spawn", () => { - resolve(); - }); - this._process.on("close", (_code) => { - var _a; - this._process = undefined; - (_a = this.onclose) === null || _a === void 0 ? void 0 : _a.call(this); - }); - (_b = this._process.stdin) === null || _b === void 0 ? void 0 : _b.on("error", (error) => { - var _a; - (_a = this.onerror) === null || _a === void 0 ? void 0 : _a.call(this, error); - }); - (_c = this._process.stdout) === null || _c === void 0 ? void 0 : _c.on("data", (chunk) => { - this._readBuffer.append(chunk); - this.processReadBuffer(); - }); - (_d = this._process.stdout) === null || _d === void 0 ? void 0 : _d.on("error", (error) => { - var _a; - (_a = this.onerror) === null || _a === void 0 ? void 0 : _a.call(this, error); - }); - }); - } - processReadBuffer() { - var _a, _b; - while (true) { - try { - const message = this._readBuffer.readMessage(); - if (message === null) { - break; - } - (_a = this.onmessage) === null || _a === void 0 ? void 0 : _a.call(this, message); - } - catch (error) { - (_b = this.onerror) === null || _b === void 0 ? void 0 : _b.call(this, error); - } - } - } - async close() { - this._abortController.abort(); - this._process = undefined; - this._readBuffer.clear(); - } - send(message) { - return new Promise((resolve) => { - var _a; - if (!((_a = this._process) === null || _a === void 0 ? void 0 : _a.stdin)) { - throw new Error("Not connected"); - } - const json = serializeMessage(message); - if (this._process.stdin.write(json)) { - resolve(); - } - else { - this._process.stdin.once("drain", resolve); - } - }); - } -} -//# sourceMappingURL=stdio.js.map \ No newline at end of file diff --git a/dist/client/stdio.js.map b/dist/client/stdio.js.map deleted file mode 100644 index f5b64ba09..000000000 --- a/dist/client/stdio.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.js","sourceRoot":"","sources":["../../src/client/stdio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAuBlE;;;;GAIG;AACH,MAAM,OAAO,oBAAoB;IAU/B,YAAY,MAA6B;QARjC,qBAAg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AI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;QAC9B,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;QAC1B,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;IAC3B,CAAC;IAED,IAAI,CAAC,OAAuB;QAC1B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;;YAC7B,IAAI,CAAC,CAAA,MAAA,IAAI,CAAC,QAAQ,0CAAE,KAAK,CAAA,EAAE,CAAC;gBAC1B,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;YACnC,CAAC;YAED,MAAM,IAAI,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;YACvC,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;gBACpC,OAAO,EAAE,CAAC;YACZ,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAC7C,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file diff --git a/dist/client/stdio.test.d.ts b/dist/client/stdio.test.d.ts deleted file mode 100644 index 08756f1fe..000000000 --- a/dist/client/stdio.test.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=stdio.test.d.ts.map \ No newline at end of file diff --git a/dist/client/stdio.test.d.ts.map b/dist/client/stdio.test.d.ts.map deleted file mode 100644 index 57c12671a..000000000 --- a/dist/client/stdio.test.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.test.d.ts","sourceRoot":"","sources":["../../src/client/stdio.test.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/client/stdio.test.js b/dist/client/stdio.test.js deleted file mode 100644 index 5ddf1c7d2..000000000 --- a/dist/client/stdio.test.js +++ /dev/null @@ -1,51 +0,0 @@ -import { StdioClientTransport } from "./stdio.js"; -const serverParameters = { - command: "/usr/bin/tee", -}; -test("should start then close cleanly", async () => { - const client = new StdioClientTransport(serverParameters); - client.onerror = (error) => { - throw error; - }; - let didClose = false; - client.onclose = () => { - didClose = true; - }; - await client.start(); - expect(didClose).toBeFalsy(); - await client.close(); - expect(didClose).toBeTruthy(); -}); -test("should read messages", async () => { - const client = new StdioClientTransport(serverParameters); - client.onerror = (error) => { - throw error; - }; - const messages = [ - { - jsonrpc: "2.0", - id: 1, - method: "ping", - }, - { - jsonrpc: "2.0", - method: "notifications/initialized", - }, - ]; - const readMessages = []; - const finished = new Promise((resolve) => { - client.onmessage = (message) => { - readMessages.push(message); - if (JSON.stringify(message) === JSON.stringify(messages[1])) { - resolve(); - } - }; - }); - await client.start(); - await client.send(messages[0]); - await client.send(messages[1]); - await finished; - expect(readMessages).toEqual(messages); - await client.close(); -}); -//# sourceMappingURL=stdio.test.js.map \ No newline at end of file diff --git a/dist/client/stdio.test.js.map b/dist/client/stdio.test.js.map deleted file mode 100644 index 1af871c48..000000000 --- a/dist/client/stdio.test.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.test.js","sourceRoot":"","sources":["../../src/client/stdio.test.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAyB,MAAM,YAAY,CAAC;AAEzE,MAAM,gBAAgB,GAA0B;IAC9C,OAAO,EAAE,cAAc;CACxB,CAAC;AAEF,IAAI,CAAC,iCAAiC,EAAE,KAAK,IAAI,EAAE;IACjD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;IAC1D,MAAM,CAAC,OAAO,GAAG,CAAC,KAAK,EAAE,EAAE;QACzB,MAAM,KAAK,CAAC;IACd,CAAC,CAAC;IAEF,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,OAAO,GAAG,GAAG,EAAE;QACpB,QAAQ,GAAG,IAAI,CAAC;IAClB,CAAC,CAAC;IAEF,MA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,MAAM,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAEvC,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;AACvB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/client/websocket.d.ts b/dist/client/websocket.d.ts deleted file mode 100644 index 53945e788..000000000 --- a/dist/client/websocket.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Transport } from "../shared/transport.js"; -import { JSONRPCMessage } from "../types.js"; -/** - * Client transport for WebSocket: this will connect to a server over the WebSocket protocol. - */ -export declare class WebSocketClientTransport implements Transport { - private _socket?; - private _url; - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage) => void; - constructor(url: URL); - start(): Promise; - close(): Promise; - send(message: JSONRPCMessage): Promise; -} -//# sourceMappingURL=websocket.d.ts.map \ No newline at end of file diff --git a/dist/client/websocket.d.ts.map b/dist/client/websocket.d.ts.map deleted file mode 100644 index 95d177c0f..000000000 --- a/dist/client/websocket.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../src/client/websocket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAwB,MAAM,aAAa,CAAC;AAInE;;GAEG;AACH,qBAAa,wBAAyB,YAAW,SAAS;IACxD,OAAO,CAAC,OAAO,CAAC,CAAY;IAC5B,OAAO,CAAC,IAAI,CAAM;IAElB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;gBAElC,GAAG,EAAE,GAAG;IAIpB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAyChB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAW7C"} \ No newline at end of file diff --git a/dist/client/websocket.js b/dist/client/websocket.js deleted file mode 100644 index a424f3b56..000000000 --- a/dist/client/websocket.js +++ /dev/null @@ -1,61 +0,0 @@ -import { JSONRPCMessageSchema } from "../types.js"; -const SUBPROTOCOL = "mcp"; -/** - * Client transport for WebSocket: this will connect to a server over the WebSocket protocol. - */ -export class WebSocketClientTransport { - constructor(url) { - this._url = url; - } - start() { - if (this._socket) { - throw new Error("WebSocketClientTransport already started! If using Client class, note that connect() calls start() automatically."); - } - return new Promise((resolve, reject) => { - this._socket = new WebSocket(this._url, SUBPROTOCOL); - this._socket.onerror = (event) => { - var _a; - const error = "error" in event - ? event.error - : new Error(`WebSocket error: ${JSON.stringify(event)}`); - reject(error); - (_a = this.onerror) === null || _a === void 0 ? void 0 : _a.call(this, error); - }; - this._socket.onopen = () => { - resolve(); - }; - this._socket.onclose = () => { - var _a; - (_a = this.onclose) === null || _a === void 0 ? void 0 : _a.call(this); - }; - this._socket.onmessage = (event) => { - var _a, _b; - let message; - try { - message = JSONRPCMessageSchema.parse(JSON.parse(event.data)); - } - catch (error) { - (_a = this.onerror) === null || _a === void 0 ? void 0 : _a.call(this, error); - return; - } - (_b = this.onmessage) === null || _b === void 0 ? void 0 : _b.call(this, message); - }; - }); - } - async close() { - var _a; - (_a = this._socket) === null || _a === void 0 ? void 0 : _a.close(); - } - send(message) { - return new Promise((resolve, reject) => { - var _a; - if (!this._socket) { - reject(new Error("Not connected")); - return; - } - (_a = this._socket) === null || _a === void 0 ? void 0 : _a.send(JSON.stringify(message)); - resolve(); - }); - } -} -//# sourceMappingURL=websocket.js.map \ No newline at end of file diff --git a/dist/client/websocket.js.map b/dist/client/websocket.js.map deleted file mode 100644 index 8e6268146..000000000 --- a/dist/client/websocket.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"websocket.js","sourceRoot":"","sources":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CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;gBAC/D,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,MAAA,IAAI,CAAC,OAAO,qDAAG,KAAc,CAAC,CAAC;oBAC/B,OAAO;gBACT,CAAC;gBAED,MAAA,IAAI,CAAC,SAAS,qDAAG,OAAO,CAAC,CAAC;YAC5B,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,KAAK;;QACT,MAAA,IAAI,CAAC,OAAO,0CAAE,KAAK,EAAE,CAAC;IACxB,CAAC;IAED,IAAI,CAAC,OAAuB;QAC1B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;;YACrC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;gBAClB,MAAM,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;gBACnC,OAAO;YACT,CAAC;YAED,MAAA,IAAI,CAAC,OAAO,0CAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;YAC5C,OAAO,EAAE,CAAC;QACZ,CAAC,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file diff --git a/dist/server/index.d.ts b/dist/server/index.d.ts deleted file mode 100644 index e4625b63d..000000000 --- a/dist/server/index.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Protocol } from "../shared/protocol.js"; -import { ClientCapabilities, Implementation, ServerNotification, ServerRequest, ServerResult } from "../types.js"; -/** - * An MCP server on top of a pluggable transport. - * - * This server will automatically respond to the initialization flow as initiated from the client. - */ -export declare class Server extends Protocol { - private _serverInfo; - private _clientCapabilities?; - private _clientVersion?; - /** - * Callback for when initialization has fully completed (i.e., the client has sent an `initialized` notification). - */ - oninitialized?: () => void; - /** - * Initializes this server with the given name and version information. - */ - constructor(_serverInfo: Implementation); - private _oninitialize; - /** - * After initialization has completed, this will be populated with the client's reported capabilities. - */ - getClientCapabilities(): ClientCapabilities | undefined; - /** - * After initialization has completed, this will be populated with information about the client's name and version. - */ - getClientVersion(): Implementation | undefined; - private getCapabilities; -} -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/server/index.d.ts.map b/dist/server/index.d.ts.map deleted file mode 100644 index 9cc25dd9f..000000000 --- a/dist/server/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EACL,kBAAkB,EAClB,cAAc,EAMd,kBAAkB,EAClB,aAAa,EACb,YAAY,EAMb,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,qBAAa,MAAO,SAAQ,QAAQ,CAClC,aAAa,EACb,kBAAkB,EAClB,YAAY,CACb;IAYa,OAAO,CAAC,WAAW;IAX/B,OAAO,CAAC,mBAAmB,CAAC,CAAqB;IACjD,OAAO,CAAC,cAAc,CAAC,CAAiB;IAExC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAE3B;;OAEG;gBACiB,WAAW,EAAE,cAAc;YAWjC,aAAa;IAmB3B;;OAEG;IACH,qBAAqB,IAAI,kBAAkB,GAAG,SAAS;IAIvD;;OAEG;IACH,gBAAgB,IAAI,cAAc,GAAG,SAAS;IAI9C,OAAO,CAAC,eAAe;CAwBxB"} \ No newline at end of file diff --git a/dist/server/index.js b/dist/server/index.js deleted file mode 100644 index e52f3772a..000000000 --- a/dist/server/index.js +++ /dev/null @@ -1,59 +0,0 @@ -import { Protocol } from "../shared/protocol.js"; -import { InitializedNotificationSchema, InitializeRequestSchema, PROTOCOL_VERSION, ListResourcesRequestSchema, ListToolsRequestSchema, ListPromptsRequestSchema, SetLevelRequestSchema, } from "../types.js"; -/** - * An MCP server on top of a pluggable transport. - * - * This server will automatically respond to the initialization flow as initiated from the client. - */ -export class Server extends Protocol { - /** - * Initializes this server with the given name and version information. - */ - constructor(_serverInfo) { - super(); - this._serverInfo = _serverInfo; - this.setRequestHandler(InitializeRequestSchema, (request) => this._oninitialize(request)); - this.setNotificationHandler(InitializedNotificationSchema, () => { var _a; return (_a = this.oninitialized) === null || _a === void 0 ? void 0 : _a.call(this); }); - } - async _oninitialize(request) { - if (request.params.protocolVersion !== PROTOCOL_VERSION) { - throw new Error(`Client's protocol version is not supported: ${request.params.protocolVersion}`); - } - this._clientCapabilities = request.params.capabilities; - this._clientVersion = request.params.clientInfo; - return { - protocolVersion: PROTOCOL_VERSION, - capabilities: this.getCapabilities(), - serverInfo: this._serverInfo, - }; - } - /** - * After initialization has completed, this will be populated with the client's reported capabilities. - */ - getClientCapabilities() { - return this._clientCapabilities; - } - /** - * After initialization has completed, this will be populated with information about the client's name and version. - */ - getClientVersion() { - return this._clientVersion; - } - getCapabilities() { - return { - prompts: this._requestHandlers.has(ListPromptsRequestSchema.shape.method.value) - ? {} - : undefined, - resources: this._requestHandlers.has(ListResourcesRequestSchema.shape.method.value) - ? {} - : undefined, - tools: this._requestHandlers.has(ListToolsRequestSchema.shape.method.value) - ? {} - : undefined, - logging: this._requestHandlers.has(SetLevelRequestSchema.shape.method.value) - ? {} - : undefined, - }; - } -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/server/index.js.map b/dist/server/index.js.map deleted file mode 100644 index e7fac8c91..000000000 --- a/dist/server/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAGL,6BAA6B,EAE7B,uBAAuB,EAEvB,gBAAgB,EAKhB,0BAA0B,EAC1B,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,MAAM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C,GAAG,CAClC,0BAA0B,CAAC,KAAK,CAAC,MAAM,CAAC,KAAe,CACxD;gBACC,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,SAAS;YACb,KAAK,EAAE,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAC9B,sBAAsB,CAAC,KAAK,CAAC,MAAM,CAAC,KAAe,CACpD;gBACC,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,SAAS;YACb,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAChC,qBAAqB,CAAC,KAAK,CAAC,MAAM,CAAC,KAAe,CACnD;gBACC,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,SAAS;SACd,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/dist/server/sse.d.ts b/dist/server/sse.d.ts deleted file mode 100644 index 8ab90774e..000000000 --- a/dist/server/sse.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { IncomingMessage, ServerResponse } from "node:http"; -import { Transport } from "../shared/transport.js"; -import { JSONRPCMessage } from "../types.js"; -/** - * Server transport for SSE: this will send messages over an SSE connection and receive messages from HTTP POST requests. - * - * This transport is only available in Node.js environments. - */ -export declare class SSEServerTransport implements Transport { - private _endpoint; - private res; - private _sseResponse?; - private _sessionId; - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage) => void; - /** - * Creates a new SSE server transport, which will direct the client to POST messages to the relative or absolute URL identified by `_endpoint`. - */ - constructor(_endpoint: string, res: ServerResponse); - /** - * Handles the initial SSE connection request. - * - * This should be called when a GET request is made to establish the SSE stream. - */ - start(): Promise; - /** - * Handles incoming POST messages. - * - * This should be called when a POST request is made to send a message to the server. - */ - handlePostMessage(req: IncomingMessage, res: ServerResponse): Promise; - /** - * Handle a client message, regardless of how it arrived. This can be used to inform the server of messages that arrive via a means different than HTTP POST. - */ - handleMessage(message: unknown): Promise; - close(): Promise; - send(message: JSONRPCMessage): Promise; - /** - * Returns the session ID for this transport. - * - * This can be used to route incoming POST requests. - */ - get sessionId(): string; -} -//# sourceMappingURL=sse.d.ts.map \ No newline at end of file diff --git a/dist/server/sse.d.ts.map b/dist/server/sse.d.ts.map deleted file mode 100644 index 222b596cb..000000000 --- a/dist/server/sse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sse.d.ts","sourceRoot":"","sources":["../../src/server/sse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAwB,MAAM,aAAa,CAAC;AAMnE;;;;GAIG;AACH,qBAAa,kBAAmB,YAAW,SAAS;IAYhD,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,GAAG;IAZb,OAAO,CAAC,YAAY,CAAC,CAAiB;IACtC,OAAO,CAAC,UAAU,CAAS;IAE3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAE9C;;OAEG;gBAEO,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,cAAc;IAK7B;;;;OAIG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAyB5B;;;;OAIG;IACG,iBAAiB,CACrB,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,GAClB,OAAO,CAAC,IAAI,CAAC;IAkChB;;OAEG;IACG,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAY9C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAMtB,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAUlD;;;;OAIG;IACH,IAAI,SAAS,IAAI,MAAM,CAEtB;CACF"} \ No newline at end of file diff --git a/dist/server/sse.js b/dist/server/sse.js deleted file mode 100644 index e319fe783..000000000 --- a/dist/server/sse.js +++ /dev/null @@ -1,116 +0,0 @@ -import { randomUUID } from "node:crypto"; -import { JSONRPCMessageSchema } from "../types.js"; -import getRawBody from "raw-body"; -import contentType from "content-type"; -const MAXIMUM_MESSAGE_SIZE = "4mb"; -/** - * Server transport for SSE: this will send messages over an SSE connection and receive messages from HTTP POST requests. - * - * This transport is only available in Node.js environments. - */ -export class SSEServerTransport { - /** - * Creates a new SSE server transport, which will direct the client to POST messages to the relative or absolute URL identified by `_endpoint`. - */ - constructor(_endpoint, res) { - this._endpoint = _endpoint; - this.res = res; - this._sessionId = randomUUID(); - } - /** - * Handles the initial SSE connection request. - * - * This should be called when a GET request is made to establish the SSE stream. - */ - async start() { - if (this._sseResponse) { - throw new Error("SSEServerTransport already started! If using Server class, note that connect() calls start() automatically."); - } - this.res.writeHead(200, { - "Content-Type": "text/event-stream", - "Cache-Control": "no-cache", - Connection: "keep-alive", - }); - // Send the endpoint event - this.res.write(`event: endpoint\ndata: ${encodeURI(this._endpoint)}?sessionId=${this._sessionId}\n\n`); - this._sseResponse = this.res; - this.res.on("close", () => { - var _a; - this._sseResponse = undefined; - (_a = this.onclose) === null || _a === void 0 ? void 0 : _a.call(this); - }); - } - /** - * Handles incoming POST messages. - * - * This should be called when a POST request is made to send a message to the server. - */ - async handlePostMessage(req, res) { - var _a, _b, _c; - if (!this._sseResponse) { - const message = "SSE connection not established"; - res.writeHead(500).end(message); - throw new Error(message); - } - let body; - try { - const ct = contentType.parse((_a = req.headers["content-type"]) !== null && _a !== void 0 ? _a : ""); - if (ct.type !== "application/json") { - throw new Error(`Unsupported content-type: ${ct}`); - } - body = await getRawBody(req, { - limit: MAXIMUM_MESSAGE_SIZE, - encoding: (_b = ct.parameters.charset) !== null && _b !== void 0 ? _b : "utf-8", - }); - } - catch (error) { - res.writeHead(400).end(String(error)); - (_c = this.onerror) === null || _c === void 0 ? void 0 : _c.call(this, error); - return; - } - try { - await this.handleMessage(JSON.parse(body)); - } - catch (_d) { - res.writeHead(400).end(`Invalid message: ${body}`); - return; - } - res.writeHead(202).end("Accepted"); - } - /** - * Handle a client message, regardless of how it arrived. This can be used to inform the server of messages that arrive via a means different than HTTP POST. - */ - async handleMessage(message) { - var _a, _b; - let parsedMessage; - try { - parsedMessage = JSONRPCMessageSchema.parse(message); - } - catch (error) { - (_a = this.onerror) === null || _a === void 0 ? void 0 : _a.call(this, error); - throw error; - } - (_b = this.onmessage) === null || _b === void 0 ? void 0 : _b.call(this, parsedMessage); - } - async close() { - var _a, _b; - (_a = this._sseResponse) === null || _a === void 0 ? void 0 : _a.end(); - this._sseResponse = undefined; - (_b = this.onclose) === null || _b === void 0 ? void 0 : _b.call(this); - } - async send(message) { - if (!this._sseResponse) { - throw new Error("Not connected"); - } - this._sseResponse.write(`event: message\ndata: ${JSON.stringify(message)}\n\n`); - } - /** - * Returns the session ID for this transport. - * - * This can be used to route incoming POST requests. - */ - get sessionId() { - return this._sessionId; - } -} -//# sourceMappingURL=sse.js.map \ No newline at end of file diff --git a/dist/server/sse.js.map b/dist/server/sse.js.map deleted file mode 100644 index dcd12c503..000000000 --- a/dist/server/sse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sse.js","sourceRoot":"","sources":["../../src/server/sse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,EAAkB,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,UAAU,MAAM,UAAU,CAAC;AAClC,OAAO,WAAW,MAAM,cAAc,CAAC;AAEvC,MAAM,oBAAoB,GAAG,KAAK,CAAC;AAEnC;;;;GAIG;AACH,MAAM,OAAO,kBAAkB;IAQ7B;;OAEG;IACH,YACU,SAAiB,EACjB,GAAmB;QADnB,cAAS,GAAT,SAAS,CAAQ;QACjB,QAAG,GAAH,GAAG,CAAgB;QAE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ACzB,IAAI,CAAC,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAA,IAAI,CAAC,OAAO,oDAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,OAAuB;QAChC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;YACvB,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;QACnC,CAAC;QAED,IAAI,CAAC,YAAY,CAAC,KAAK,CACrB,yBAAyB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CACvD,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;CACF"} \ No newline at end of file diff --git a/dist/server/stdio.d.ts b/dist/server/stdio.d.ts deleted file mode 100644 index 92ab19194..000000000 --- a/dist/server/stdio.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { Readable, Writable } from "node:stream"; -import { JSONRPCMessage } from "../types.js"; -import { Transport } from "../shared/transport.js"; -/** - * Server transport for stdio: this communicates with a MCP client by reading from the current process' stdin and writing to stdout. - * - * This transport is only available in Node.js environments. - */ -export declare class StdioServerTransport implements Transport { - private _stdin; - private _stdout; - private _readBuffer; - private _started; - constructor(_stdin?: Readable, _stdout?: Writable); - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage) => void; - _ondata: (chunk: Buffer) => void; - _onerror: (error: Error) => void; - /** - * Starts listening for messages on stdin. - */ - start(): Promise; - private processReadBuffer; - close(): Promise; - send(message: JSONRPCMessage): Promise; -} -//# sourceMappingURL=stdio.d.ts.map \ No newline at end of file diff --git a/dist/server/stdio.d.ts.map b/dist/server/stdio.d.ts.map deleted file mode 100644 index 674ba6adc..000000000 --- a/dist/server/stdio.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../src/server/stdio.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD;;;;GAIG;AACH,qBAAa,oBAAqB,YAAW,SAAS;IAKlD,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,OAAO;IALjB,OAAO,CAAC,WAAW,CAAgC;IACnD,OAAO,CAAC,QAAQ,CAAS;gBAGf,MAAM,GAAE,QAAwB,EAChC,OAAO,GAAE,QAAyB;IAG5C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAG9C,OAAO,UAAW,MAAM,UAGtB;IACF,QAAQ,UAAW,KAAK,UAEtB;IAEF;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAY5B,OAAO,CAAC,iBAAiB;IAenB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAO5B,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAU7C"} \ No newline at end of file diff --git a/dist/server/stdio.js b/dist/server/stdio.js deleted file mode 100644 index 608e28b9b..000000000 --- a/dist/server/stdio.js +++ /dev/null @@ -1,69 +0,0 @@ -import process from "node:process"; -import { ReadBuffer, serializeMessage } from "../shared/stdio.js"; -/** - * Server transport for stdio: this communicates with a MCP client by reading from the current process' stdin and writing to stdout. - * - * This transport is only available in Node.js environments. - */ -export class StdioServerTransport { - constructor(_stdin = process.stdin, _stdout = process.stdout) { - this._stdin = _stdin; - this._stdout = _stdout; - this._readBuffer = new ReadBuffer(); - this._started = false; - // Arrow functions to bind `this` properly, while maintaining function identity. - this._ondata = (chunk) => { - this._readBuffer.append(chunk); - this.processReadBuffer(); - }; - this._onerror = (error) => { - var _a; - (_a = this.onerror) === null || _a === void 0 ? void 0 : _a.call(this, error); - }; - } - /** - * Starts listening for messages on stdin. - */ - async start() { - if (this._started) { - throw new Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically."); - } - this._started = true; - this._stdin.on("data", this._ondata); - this._stdin.on("error", this._onerror); - } - processReadBuffer() { - var _a, _b; - while (true) { - try { - const message = this._readBuffer.readMessage(); - if (message === null) { - break; - } - (_a = this.onmessage) === null || _a === void 0 ? void 0 : _a.call(this, message); - } - catch (error) { - (_b = this.onerror) === null || _b === void 0 ? void 0 : _b.call(this, error); - } - } - } - async close() { - var _a; - this._stdin.off("data", this._ondata); - this._stdin.off("error", this._onerror); - this._readBuffer.clear(); - (_a = this.onclose) === null || _a === void 0 ? void 0 : _a.call(this); - } - send(message) { - return new Promise((resolve) => { - const json = serializeMessage(message); - if (this._stdout.write(json)) { - resolve(); - } - else { - this._stdout.once("drain", resolve); - } - }); - } -} -//# sourceMappingURL=stdio.js.map \ No newline at end of file diff --git a/dist/server/stdio.js.map b/dist/server/stdio.js.map deleted file mode 100644 index 8851537d0..000000000 --- a/dist/server/stdio.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.js","sourceRoot":"","sources":["../../src/server/stdio.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,cAAc,CAAC;AAEnC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAIlE;;;;GAIG;AACH,MAAM,OAAO,oBAAoB;IAI/B,YACU,SAAmB,OAAO,CAAC,KAAK,EAChC,UAAoB,OAAO,CAAC,MAAM;QADlC,WAAM,GAAN,MAAM,CAA0B;QAChC,YAAO,GAAP,OAAO,CAA2B;QALpC,gBAAW,GAAe,IAAI,UAAU,EAAE,CAAC;QAC3C,aAAQ,GAAG,KAAK,CAAC;QAWzB,gFAAgF;QAChF,YAAO,GAAG,CAAC,KAAa,EAAE,EAAE;YAC1B,IA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;QACzB,MAAA,IAAI,CAAC,OAAO,oDAAI,CAAC;IACnB,CAAC;IAED,IAAI,CAAC,OAAuB;QAC1B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC7B,MAAM,IAAI,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;YACvC,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC7B,OAAO,EAAE,CAAC;YACZ,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACtC,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file diff --git a/dist/server/stdio.test.d.ts b/dist/server/stdio.test.d.ts deleted file mode 100644 index 08756f1fe..000000000 --- a/dist/server/stdio.test.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=stdio.test.d.ts.map \ No newline at end of file diff --git a/dist/server/stdio.test.d.ts.map b/dist/server/stdio.test.d.ts.map deleted file mode 100644 index 00b43946b..000000000 --- a/dist/server/stdio.test.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.test.d.ts","sourceRoot":"","sources":["../../src/server/stdio.test.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/server/stdio.test.js b/dist/server/stdio.test.js deleted file mode 100644 index a7183a4b2..000000000 --- a/dist/server/stdio.test.js +++ /dev/null @@ -1,87 +0,0 @@ -import { Readable, Writable } from "node:stream"; -import { ReadBuffer, serializeMessage } from "../shared/stdio.js"; -import { StdioServerTransport } from "./stdio.js"; -let input; -let outputBuffer; -let output; -beforeEach(() => { - input = new Readable({ - // We'll use input.push() instead. - read: () => { }, - }); - outputBuffer = new ReadBuffer(); - output = new Writable({ - write(chunk, encoding, callback) { - outputBuffer.append(chunk); - callback(); - }, - }); -}); -test("should start then close cleanly", async () => { - const server = new StdioServerTransport(input, output); - server.onerror = (error) => { - throw error; - }; - let didClose = false; - server.onclose = () => { - didClose = true; - }; - await server.start(); - expect(didClose).toBeFalsy(); - await server.close(); - expect(didClose).toBeTruthy(); -}); -test("should not read until started", async () => { - const server = new StdioServerTransport(input, output); - server.onerror = (error) => { - throw error; - }; - let didRead = false; - const readMessage = new Promise((resolve) => { - server.onmessage = (message) => { - didRead = true; - resolve(message); - }; - }); - const message = { - jsonrpc: "2.0", - id: 1, - method: "ping", - }; - input.push(serializeMessage(message)); - expect(didRead).toBeFalsy(); - await server.start(); - expect(await readMessage).toEqual(message); -}); -test("should read multiple messages", async () => { - const server = new StdioServerTransport(input, output); - server.onerror = (error) => { - throw error; - }; - const messages = [ - { - jsonrpc: "2.0", - id: 1, - method: "ping", - }, - { - jsonrpc: "2.0", - method: "notifications/initialized", - }, - ]; - const readMessages = []; - const finished = new Promise((resolve) => { - server.onmessage = (message) => { - readMessages.push(message); - if (JSON.stringify(message) === JSON.stringify(messages[1])) { - resolve(); - } - }; - }); - input.push(serializeMessage(messages[0])); - input.push(serializeMessage(messages[1])); - await server.start(); - await finished; - expect(readMessages).toEqual(messages); -}); -//# sourceMappingURL=stdio.test.js.map \ No newline at end of file diff --git a/dist/server/stdio.test.js.map b/dist/server/stdio.test.js.map deleted file mode 100644 index db814ecc8..000000000 --- a/dist/server/stdio.test.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.test.js","sourceRoot":"","sources":["../../src/server/stdio.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAElE,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,IAAI,KAAe,CAAC;AACpB,IAAI,YAAwB,CAAC;AAC7B,IAAI,MAAgB,CAAC;AAErB,UAAU,CAAC,GAAG,EAAE;IACd,KAAK,GA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C,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC5D,OAAO,EAAE,CAAC;YACZ,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1C,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAE1C,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;IACrB,MAAM,QAAQ,CAAC;IACf,MAAM,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AACzC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/shared/protocol.d.ts b/dist/shared/protocol.d.ts deleted file mode 100644 index 9927d4bb4..000000000 --- a/dist/shared/protocol.d.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { AnyZodObject, ZodLiteral, ZodObject, z } from "zod"; -import { JSONRPCRequest, Notification, Progress, Request, Result } from "../types.js"; -import { Transport } from "./transport.js"; -/** - * Callback for progress notifications. - */ -export type ProgressCallback = (progress: Progress) => void; -/** - * Implements MCP protocol framing on top of a pluggable transport, including - * features like request/response linking, notifications, and progress. - */ -export declare class Protocol { - private _transport?; - private _requestMessageId; - protected _requestHandlers: Map Promise>; - private _notificationHandlers; - private _responseHandlers; - private _progressHandlers; - /** - * Callback for when the connection is closed for any reason. - * - * This is invoked when close() is called as well. - */ - onclose?: () => void; - /** - * Callback for when an error occurs. - * - * Note that errors are not necessarily fatal; they are used for reporting any kind of exceptional condition out of band. - */ - onerror?: (error: Error) => void; - /** - * A handler to invoke for any request types that do not have their own handler installed. - */ - fallbackRequestHandler?: (request: Request) => Promise; - /** - * A handler to invoke for any notification types that do not have their own handler installed. - */ - fallbackNotificationHandler?: (notification: Notification) => Promise; - constructor(); - /** - * Attaches to the given transport, starts it, and starts listening for messages. - * - * The Protocol object assumes ownership of the Transport, replacing any callbacks that have already been set, and expects that it is the only user of the Transport instance going forward. - */ - connect(transport: Transport): Promise; - private _onclose; - private _onerror; - private _onnotification; - private _onrequest; - private _onprogress; - private _onresponse; - get transport(): Transport | undefined; - /** - * Closes the connection. - */ - close(): Promise; - /** - * Sends a request and wait for a response, with optional progress notifications in the meantime (if supported by the server). - * - * Do not use this method to emit notifications! Use notification() instead. - */ - request(request: SendRequestT, resultSchema: T, onprogress?: ProgressCallback): Promise>; - /** - * Emits a notification, which is a one-way message that does not expect a response. - */ - notification(notification: SendNotificationT): Promise; - /** - * Registers a handler to invoke when this protocol object receives a request with the given method. - * - * Note that this will replace any previous request handler for the same method. - */ - setRequestHandler; - }>>(requestSchema: T, handler: (request: z.infer) => SendResultT | Promise): void; - /** - * Removes the request handler for the given method. - */ - removeRequestHandler(method: string): void; - /** - * Registers a handler to invoke when this protocol object receives a notification with the given method. - * - * Note that this will replace any previous notification handler for the same method. - */ - setNotificationHandler; - }>>(notificationSchema: T, handler: (notification: z.infer) => void | Promise): void; - /** - * Removes the notification handler for the given method. - */ - removeNotificationHandler(method: string): void; -} -//# sourceMappingURL=protocol.d.ts.map \ No newline at end of file diff --git a/dist/shared/protocol.d.ts.map b/dist/shared/protocol.d.ts.map deleted file mode 100644 index ec660ba65..000000000 --- a/dist/shared/protocol.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../src/shared/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7D,OAAO,EAIL,cAAc,EAGd,YAAY,EAEZ,QAAQ,EAGR,OAAO,EACP,MAAM,EACP,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,QAAQ,EAAE,QA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B,GAC5B,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAuCtB;;OAEG;IACG,YAAY,CAAC,YAAY,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAalE;;;;OAIG;IACH,iBAAiB,CACf,CAAC,SAAS,SAAS,CAAC;QAClB,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;KAC5B,CAAC,EAEF,aAAa,EAAE,CAAC,EAChB,OAAO,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,GACnE,IAAI;IAMP;;OAEG;IACH,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAI1C;;;;OAIG;IACH,sBAAsB,CACpB,CAAC,SAAS,SAAS,CAAC;QAClB,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;KAC5B,CAAC,EAEF,kBAAkB,EAAE,CAAC,EACrB,OAAO,EAAE,CAAC,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAC1D,IAAI;IAQP;;OAEG;IACH,yBAAyB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;CAGhD"} \ No newline at end of file diff --git a/dist/shared/protocol.js b/dist/shared/protocol.js deleted file mode 100644 index f07a39442..000000000 --- a/dist/shared/protocol.js +++ /dev/null @@ -1,225 +0,0 @@ -import { ErrorCode, McpError, PingRequestSchema, ProgressNotificationSchema, } from "../types.js"; -/** - * Implements MCP protocol framing on top of a pluggable transport, including - * features like request/response linking, notifications, and progress. - */ -export class Protocol { - constructor() { - this._requestMessageId = 0; - this._requestHandlers = new Map(); - this._notificationHandlers = new Map(); - this._responseHandlers = new Map(); - this._progressHandlers = new Map(); - this.setNotificationHandler(ProgressNotificationSchema, (notification) => { - this._onprogress(notification); - }); - this.setRequestHandler(PingRequestSchema, - // Automatic pong by default. - (_request) => ({})); - } - /** - * Attaches to the given transport, starts it, and starts listening for messages. - * - * The Protocol object assumes ownership of the Transport, replacing any callbacks that have already been set, and expects that it is the only user of the Transport instance going forward. - */ - async connect(transport) { - this._transport = transport; - this._transport.onclose = () => { - this._onclose(); - }; - this._transport.onerror = (error) => { - this._onerror(error); - }; - this._transport.onmessage = (message) => { - if (!("method" in message)) { - this._onresponse(message); - } - else if ("id" in message) { - this._onrequest(message); - } - else { - this._onnotification(message); - } - }; - await this._transport.start(); - } - _onclose() { - var _a; - const responseHandlers = this._responseHandlers; - this._responseHandlers = new Map(); - this._progressHandlers.clear(); - this._transport = undefined; - (_a = this.onclose) === null || _a === void 0 ? void 0 : _a.call(this); - const error = new McpError(ErrorCode.ConnectionClosed, "Connection closed"); - for (const handler of responseHandlers.values()) { - handler(error); - } - } - _onerror(error) { - var _a; - (_a = this.onerror) === null || _a === void 0 ? void 0 : _a.call(this, error); - } - _onnotification(notification) { - var _a; - const handler = (_a = this._notificationHandlers.get(notification.method)) !== null && _a !== void 0 ? _a : this.fallbackNotificationHandler; - // Ignore notifications not being subscribed to. - if (handler === undefined) { - return; - } - handler(notification).catch((error) => this._onerror(new Error(`Uncaught error in notification handler: ${error}`))); - } - _onrequest(request) { - var _a, _b; - const handler = (_a = this._requestHandlers.get(request.method)) !== null && _a !== void 0 ? _a : this.fallbackRequestHandler; - if (handler === undefined) { - (_b = this._transport) === null || _b === void 0 ? void 0 : _b.send({ - jsonrpc: "2.0", - id: request.id, - error: { - code: ErrorCode.MethodNotFound, - message: "Method not found", - }, - }).catch((error) => this._onerror(new Error(`Failed to send an error response: ${error}`))); - return; - } - handler(request) - .then((result) => { - var _a; - (_a = this._transport) === null || _a === void 0 ? void 0 : _a.send({ - result, - jsonrpc: "2.0", - id: request.id, - }); - }, (error) => { - var _a, _b; - return (_a = this._transport) === null || _a === void 0 ? void 0 : _a.send({ - jsonrpc: "2.0", - id: request.id, - error: { - code: error["code"] - ? Math.floor(Number(error["code"])) - : ErrorCode.InternalError, - message: (_b = error.message) !== null && _b !== void 0 ? _b : "Internal error", - }, - }); - }) - .catch((error) => this._onerror(new Error(`Failed to send response: ${error}`))); - } - _onprogress(notification) { - const { progress, total, progressToken } = notification.params; - const handler = this._progressHandlers.get(Number(progressToken)); - if (handler === undefined) { - this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(notification)}`)); - return; - } - handler({ progress, total }); - } - _onresponse(response) { - const messageId = response.id; - const handler = this._responseHandlers.get(Number(messageId)); - if (handler === undefined) { - this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(response)}`)); - return; - } - this._responseHandlers.delete(Number(messageId)); - this._progressHandlers.delete(Number(messageId)); - if ("result" in response) { - handler(response); - } - else { - const error = new McpError(response.error.code, response.error.message, response.error.data); - handler(error); - } - } - get transport() { - return this._transport; - } - /** - * Closes the connection. - */ - async close() { - var _a; - await ((_a = this._transport) === null || _a === void 0 ? void 0 : _a.close()); - } - /** - * Sends a request and wait for a response, with optional progress notifications in the meantime (if supported by the server). - * - * Do not use this method to emit notifications! Use notification() instead. - */ - request(request, resultSchema, onprogress) { - return new Promise((resolve, reject) => { - if (!this._transport) { - reject(new Error("Not connected")); - return; - } - const messageId = this._requestMessageId++; - const jsonrpcRequest = { - ...request, - jsonrpc: "2.0", - id: messageId, - }; - if (onprogress) { - this._progressHandlers.set(messageId, onprogress); - jsonrpcRequest.params = { - ...request.params, - _meta: { progressToken: messageId }, - }; - } - this._responseHandlers.set(messageId, (response) => { - if (response instanceof Error) { - return reject(response); - } - try { - const result = resultSchema.parse(response.result); - resolve(result); - } - catch (error) { - reject(error); - } - }); - this._transport.send(jsonrpcRequest).catch(reject); - }); - } - /** - * Emits a notification, which is a one-way message that does not expect a response. - */ - async notification(notification) { - if (!this._transport) { - throw new Error("Not connected"); - } - const jsonrpcNotification = { - ...notification, - jsonrpc: "2.0", - }; - await this._transport.send(jsonrpcNotification); - } - /** - * Registers a handler to invoke when this protocol object receives a request with the given method. - * - * Note that this will replace any previous request handler for the same method. - */ - setRequestHandler(requestSchema, handler) { - this._requestHandlers.set(requestSchema.shape.method.value, (request) => Promise.resolve(handler(requestSchema.parse(request)))); - } - /** - * Removes the request handler for the given method. - */ - removeRequestHandler(method) { - this._requestHandlers.delete(method); - } - /** - * Registers a handler to invoke when this protocol object receives a notification with the given method. - * - * Note that this will replace any previous notification handler for the same method. - */ - setNotificationHandler(notificationSchema, handler) { - this._notificationHandlers.set(notificationSchema.shape.method.value, (notification) => Promise.resolve(handler(notificationSchema.parse(notification)))); - } - /** - * Removes the notification handler for the given method. - */ - removeNotificationHandler(method) { - this._notificationHandlers.delete(method); - } -} -//# sourceMappingURL=protocol.js.map \ No newline at end of file diff --git a/dist/shared/protocol.js.map b/dist/shared/protocol.js.map deleted file mode 100644 index eaeecab8b..000000000 --- a/dist/shared/protocol.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../src/shared/protocol.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EAKT,QAAQ,EAER,iBAAiB,EAGjB,0BAA0B,GAG3B,MAAM,aAAa,CAAC;AAQrB;;;GAGG;AACH,MAAM,OAAO,QAAQ;IA6CnB;QAvCQ,sBAAiB,GAAG,CAAC,CAAC;QACpB,qBAAgB,GAGtB,IAAI,GAAG,EAAE,CAAC;QACN,0BAAqB,GAGzB,IAAI,GAAG,EAAE,CAAC;QACN,sBAAiB,GAGrB,IAAI,GAAG,EAAE,CAAC;QACN,sBAAiB,GAAkC,IAAI,GAAG,EAAE,CAAC;QA2BnE,IAAI,CAAC,sBAAsB,CAAC,0BAA0B,EAAE,CAAC,YAAY,EAAE,EAAE;YACvE,IAAI,CAAC,WAAW,CAAC,YAA+C,CAAC,CAAC;QACpE,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,CACpB,iBAAiB;QACjB,6BAA6B;QAC7B,CAAC,QAAQ,EAAE,EAAE,CAA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,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAClD,CAAC;IAED;;;;OAIG;IACH,iBAAiB,CAKf,aAAgB,EAChB,OAAoE;QAEpE,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE,CACtE,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CACvD,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,oBAAoB,CAAC,MAAc;QACjC,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC;IAED;;;;OAIG;IACH,sBAAsB,CAKpB,kBAAqB,EACrB,OAA2D;QAE3D,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAC5B,kBAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EACrC,CAAC,YAAY,EAAE,EAAE,CACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CACnE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,yBAAyB,CAAC,MAAc;QACtC,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;CACF"} \ No newline at end of file diff --git a/dist/shared/stdio.d.ts b/dist/shared/stdio.d.ts deleted file mode 100644 index c99759473..000000000 --- a/dist/shared/stdio.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { JSONRPCMessage } from "../types.js"; -/** - * Buffers a continuous stdio stream into discrete JSON-RPC messages. - */ -export declare class ReadBuffer { - private _buffer?; - append(chunk: Buffer): void; - readMessage(): JSONRPCMessage | null; - clear(): void; -} -export declare function deserializeMessage(line: string): JSONRPCMessage; -export declare function serializeMessage(message: JSONRPCMessage): string; -//# sourceMappingURL=stdio.d.ts.map \ No newline at end of file diff --git a/dist/shared/stdio.d.ts.map b/dist/shared/stdio.d.ts.map deleted file mode 100644 index c7da7764b..000000000 --- a/dist/shared/stdio.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../src/shared/stdio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAwB,MAAM,aAAa,CAAC;AAEnE;;GAEG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,OAAO,CAAC,CAAS;IAEzB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI3B,WAAW,IAAI,cAAc,GAAG,IAAI;IAepC,KAAK,IAAI,IAAI;CAGd;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAE/D;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAEhE"} \ No newline at end of file diff --git a/dist/shared/stdio.js b/dist/shared/stdio.js deleted file mode 100644 index d0dde0588..000000000 --- a/dist/shared/stdio.js +++ /dev/null @@ -1,31 +0,0 @@ -import { JSONRPCMessageSchema } from "../types.js"; -/** - * Buffers a continuous stdio stream into discrete JSON-RPC messages. - */ -export class ReadBuffer { - append(chunk) { - this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk; - } - readMessage() { - if (!this._buffer) { - return null; - } - const index = this._buffer.indexOf("\n"); - if (index === -1) { - return null; - } - const line = this._buffer.toString("utf8", 0, index); - this._buffer = this._buffer.subarray(index + 1); - return deserializeMessage(line); - } - clear() { - this._buffer = undefined; - } -} -export function deserializeMessage(line) { - return JSONRPCMessageSchema.parse(JSON.parse(line)); -} -export function serializeMessage(message) { - return JSON.stringify(message) + "\n"; -} -//# sourceMappingURL=stdio.js.map \ No newline at end of file diff --git a/dist/shared/stdio.js.map b/dist/shared/stdio.js.map deleted file mode 100644 index 77ca55aa5..000000000 --- a/dist/shared/stdio.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.js","sourceRoot":"","sources":["../../src/shared/stdio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnE;;GAEG;AACH,MAAM,OAAO,UAAU;IAGrB,MAAM,CAAC,KAAa;QAClB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC7E,CAAC;IAED,WAAW;QACT,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAClB,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC;YACjB,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QAChD,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IAED,KAAK;QACH,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;IAC3B,CAAC;CACF;AAED,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,OAAO,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAuB;IACtD,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;AACxC,CAAC"} \ No newline at end of file diff --git a/dist/shared/stdio.test.d.ts b/dist/shared/stdio.test.d.ts deleted file mode 100644 index 08756f1fe..000000000 --- a/dist/shared/stdio.test.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=stdio.test.d.ts.map \ No newline at end of file diff --git a/dist/shared/stdio.test.d.ts.map b/dist/shared/stdio.test.d.ts.map deleted file mode 100644 index 74d313b13..000000000 --- a/dist/shared/stdio.test.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.test.d.ts","sourceRoot":"","sources":["../../src/shared/stdio.test.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/shared/stdio.test.js b/dist/shared/stdio.test.js deleted file mode 100644 index 35b669b48..000000000 --- a/dist/shared/stdio.test.js +++ /dev/null @@ -1,27 +0,0 @@ -import { ReadBuffer } from "./stdio.js"; -const testMessage = { - jsonrpc: "2.0", - method: "foobar", -}; -test("should have no messages after initialization", () => { - const readBuffer = new ReadBuffer(); - expect(readBuffer.readMessage()).toBeNull(); -}); -test("should only yield a message after a newline", () => { - const readBuffer = new ReadBuffer(); - readBuffer.append(Buffer.from(JSON.stringify(testMessage))); - expect(readBuffer.readMessage()).toBeNull(); - readBuffer.append(Buffer.from("\n")); - expect(readBuffer.readMessage()).toEqual(testMessage); - expect(readBuffer.readMessage()).toBeNull(); -}); -test("should be reusable after clearing", () => { - const readBuffer = new ReadBuffer(); - readBuffer.append(Buffer.from("foobar")); - readBuffer.clear(); - expect(readBuffer.readMessage()).toBeNull(); - readBuffer.append(Buffer.from(JSON.stringify(testMessage))); - readBuffer.append(Buffer.from("\n")); - expect(readBuffer.readMessage()).toEqual(testMessage); -}); -//# sourceMappingURL=stdio.test.js.map \ No newline at end of file diff --git a/dist/shared/stdio.test.js.map b/dist/shared/stdio.test.js.map deleted file mode 100644 index 283f9943a..000000000 --- a/dist/shared/stdio.test.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.test.js","sourceRoot":"","sources":["../../src/shared/stdio.test.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SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAC5D,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACrC,MAAM,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;AACxD,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/shared/transport.d.ts b/dist/shared/transport.d.ts deleted file mode 100644 index faae12820..000000000 --- a/dist/shared/transport.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { JSONRPCMessage } from "../types.js"; -/** - * Describes the minimal contract for a MCP transport that a client or server can communicate over. - */ -export interface Transport { - /** - * Starts processing messages on the transport, including any connection steps that might need to be taken. - * - * This method should only be called after callbacks are installed, or else messages may be lost. - * - * NOTE: This method should not be called explicitly when using Client, Server, or Protocol classes, as they will implicitly call start(). - */ - start(): Promise; - /** - * Sends a JSON-RPC message (request or response). - */ - send(message: JSONRPCMessage): Promise; - /** - * Closes the connection. - */ - close(): Promise; - /** - * Callback for when the connection is closed for any reason. - * - * This should be invoked when close() is called as well. - */ - onclose?: () => void; - /** - * Callback for when an error occurs. - * - * Note that errors are not necessarily fatal; they are used for reporting any kind of exceptional condition out of band. - */ - onerror?: (error: Error) => void; - /** - * Callback for when a message (request or response) is received over the connection. - */ - onmessage?: (message: JSONRPCMessage) => void; -} -//# sourceMappingURL=transport.d.ts.map \ No newline at end of file diff --git a/dist/shared/transport.d.ts.map b/dist/shared/transport.d.ts.map deleted file mode 100644 index 8db9ddf6d..000000000 --- a/dist/shared/transport.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/shared/transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;;;;;OAMG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7C;;OAEG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;;OAIG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEjC;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;CAC/C"} \ No newline at end of file diff --git a/dist/shared/transport.js b/dist/shared/transport.js deleted file mode 100644 index 00d3520ba..000000000 --- a/dist/shared/transport.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=transport.js.map \ No newline at end of file diff --git a/dist/shared/transport.js.map b/dist/shared/transport.js.map deleted file mode 100644 index 75cff0964..000000000 --- a/dist/shared/transport.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../src/shared/transport.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types.d.ts b/dist/types.d.ts deleted file mode 100644 index 5daa95daf..000000000 --- a/dist/types.d.ts +++ /dev/null @@ -1,14886 +0,0 @@ -import { z } from "zod"; -export declare const PROTOCOL_VERSION = "2024-10-07"; -export declare const JSONRPC_VERSION = "2.0"; -/** - * A progress token, used to associate progress notifications with the original request. - */ -export declare const ProgressTokenSchema: z.ZodUnion<[z.ZodString, z.ZodNumber]>; -/** - * An opaque token used to represent a cursor for pagination. - */ -export declare const CursorSchema: z.ZodString; -export declare const RequestSchema: z.ZodObject<{ - method: z.ZodString; - params: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, "strip", z.ZodTypeAny, { - method: string; - params?: z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}, { - method: string; - params?: z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}>; -export declare const NotificationSchema: z.ZodObject<{ - method: z.ZodString; - params: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, "strip", z.ZodTypeAny, { - method: string; - params?: z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}, { - method: string; - params?: z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}>; -export declare const ResultSchema: z.ZodObject<{ - /** - * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, z.ZodTypeAny, "passthrough">>; -/** - * A uniquely identifying ID for a request in JSON-RPC. - */ -export declare const RequestIdSchema: z.ZodUnion<[z.ZodString, z.ZodNumber]>; -/** - * A request that expects a response. - */ -export declare const JSONRPCRequestSchema: z.ZodObject; - id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; -}, { - method: z.ZodString; - params: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}>, "strict", z.ZodTypeAny, { - method: string; - jsonrpc: "2.0"; - id: string | number; - params?: z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}, { - method: string; - jsonrpc: "2.0"; - id: string | number; - params?: z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}>; -/** - * A notification which does not expect a response. - */ -export declare const JSONRPCNotificationSchema: z.ZodObject; -}, { - method: z.ZodString; - params: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}>, "strict", z.ZodTypeAny, { - method: string; - jsonrpc: "2.0"; - params?: z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}, { - method: string; - jsonrpc: "2.0"; - params?: z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}>; -/** - * A successful (non-error) response to a request. - */ -export declare const JSONRPCResponseSchema: z.ZodObject<{ - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; - result: z.ZodObject<{ - /** - * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; -}, "strict", z.ZodTypeAny, { - jsonrpc: "2.0"; - id: string | number; - result: { - _meta?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; -}, { - jsonrpc: "2.0"; - id: string | number; - result: { - _meta?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; -}>; -/** - * An incomplete set of error codes that may appear in JSON-RPC responses. - */ -export declare enum ErrorCode { - ConnectionClosed = -1, - ParseError = -32700, - InvalidRequest = -32600, - MethodNotFound = -32601, - InvalidParams = -32602, - InternalError = -32603 -} -/** - * A response to a request that indicates an error occurred. - */ -export declare const JSONRPCErrorSchema: z.ZodObject<{ - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; - error: z.ZodObject<{ - /** - * The error type that occurred. - */ - code: z.ZodNumber; - /** - * A short description of the error. The message SHOULD be limited to a concise single sentence. - */ - message: z.ZodString; - /** - * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.). - */ - data: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - code: number; - message: string; - data?: unknown; - }, { - code: number; - message: string; - data?: unknown; - }>; -}, "strict", z.ZodTypeAny, { - jsonrpc: "2.0"; - id: string | number; - error: { - code: number; - message: string; - data?: unknown; - }; -}, { - jsonrpc: "2.0"; - id: string | number; - error: { - code: number; - message: string; - data?: unknown; - }; -}>; -export declare const JSONRPCMessageSchema: z.ZodUnion<[z.ZodObject; - id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; -}, { - method: z.ZodString; - params: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}>, "strict", z.ZodTypeAny, { - method: string; - jsonrpc: "2.0"; - id: string | number; - params?: z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}, { - method: string; - jsonrpc: "2.0"; - id: string | number; - params?: z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}>, z.ZodObject; -}, { - method: z.ZodString; - params: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}>, "strict", z.ZodTypeAny, { - method: string; - jsonrpc: "2.0"; - params?: z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}, { - method: string; - jsonrpc: "2.0"; - params?: z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}>, z.ZodObject<{ - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; - result: z.ZodObject<{ - /** - * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; -}, "strict", z.ZodTypeAny, { - jsonrpc: "2.0"; - id: string | number; - result: { - _meta?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; -}, { - jsonrpc: "2.0"; - id: string | number; - result: { - _meta?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; -}>, z.ZodObject<{ - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; - error: z.ZodObject<{ - /** - * The error type that occurred. - */ - code: z.ZodNumber; - /** - * A short description of the error. The message SHOULD be limited to a concise single sentence. - */ - message: z.ZodString; - /** - * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.). - */ - data: z.ZodOptional; - }, "strip", z.ZodTypeAny, { - code: number; - message: string; - data?: unknown; - }, { - code: number; - message: string; - data?: unknown; - }>; -}, "strict", z.ZodTypeAny, { - jsonrpc: "2.0"; - id: string | number; - error: { - code: number; - message: string; - data?: unknown; - }; -}, { - jsonrpc: "2.0"; - id: string | number; - error: { - code: number; - message: string; - data?: unknown; - }; -}>]>; -/** - * A response that indicates success but carries no data. - */ -export declare const EmptyResultSchema: z.ZodObject<{ - /** - * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, "strict", z.ZodTypeAny, { - _meta?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; -}, { - _meta?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; -}>; -/** - * Text provided to or from an LLM. - */ -export declare const TextContentSchema: z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; -}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; -}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; -}, z.ZodTypeAny, "passthrough">>; -/** - * An image provided to or from an LLM. - */ -export declare const ImageContentSchema: z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; -}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; -}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; -}, z.ZodTypeAny, "passthrough">>; -/** - * Describes a message issued to or received from an LLM API. - */ -export declare const SamplingMessageSchema: z.ZodObject<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; -}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; -}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; -}, z.ZodTypeAny, "passthrough">>; -/** - * Describes the name and version of an MCP implementation. - */ -export declare const ImplementationSchema: z.ZodObject<{ - name: z.ZodString; - version: z.ZodString; -}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - name: z.ZodString; - version: z.ZodString; -}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - name: z.ZodString; - version: z.ZodString; -}, z.ZodTypeAny, "passthrough">>; -/** - * Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities. - */ -export declare const ClientCapabilitiesSchema: z.ZodObject<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, z.ZodTypeAny, "passthrough">>; -/** - * This request is sent from the client to the server when it first connects, asking it to begin initialization. - */ -export declare const InitializeRequestSchema: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"initialize">; - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well. - */ - protocolVersion: z.ZodUnion<[z.ZodString, z.ZodNumber]>; - capabilities: z.ZodObject<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - clientInfo: z.ZodObject<{ - name: z.ZodString; - version: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well. - */ - protocolVersion: z.ZodUnion<[z.ZodString, z.ZodNumber]>; - capabilities: z.ZodObject<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - clientInfo: z.ZodObject<{ - name: z.ZodString; - version: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well. - */ - protocolVersion: z.ZodUnion<[z.ZodString, z.ZodNumber]>; - capabilities: z.ZodObject<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - clientInfo: z.ZodObject<{ - name: z.ZodString; - version: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - protocolVersion: string | number; - capabilities: { - experimental?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; - sampling?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - clientInfo: { - name: string; - version: string; - } & { - [k: string]: unknown; - }; - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "initialize"; -}, { - params: { - protocolVersion: string | number; - capabilities: { - experimental?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; - sampling?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - clientInfo: { - name: string; - version: string; - } & { - [k: string]: unknown; - }; - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "initialize"; -}>; -/** - * Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities. - */ -export declare const ServerCapabilitiesSchema: z.ZodObject<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; -}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; -}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; -}, z.ZodTypeAny, "passthrough">>; -/** - * After receiving an initialize request from the client, the server sends this response. - */ -export declare const InitializeResultSchema: z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect. - */ - protocolVersion: z.ZodUnion<[z.ZodString, z.ZodNumber]>; - capabilities: z.ZodObject<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - serverInfo: z.ZodObject<{ - name: z.ZodString; - version: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect. - */ - protocolVersion: z.ZodUnion<[z.ZodString, z.ZodNumber]>; - capabilities: z.ZodObject<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - serverInfo: z.ZodObject<{ - name: z.ZodString; - version: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect. - */ - protocolVersion: z.ZodUnion<[z.ZodString, z.ZodNumber]>; - capabilities: z.ZodObject<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - serverInfo: z.ZodObject<{ - name: z.ZodString; - version: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; -}>, z.ZodTypeAny, "passthrough">>; -/** - * This notification is sent from the client to the server after initialization has finished. - */ -export declare const InitializedNotificationSchema: z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"notifications/initialized">; -}>, "strip", z.ZodTypeAny, { - method: "notifications/initialized"; - params?: z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}, { - method: "notifications/initialized"; - params?: z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}>; -/** - * A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected. - */ -export declare const PingRequestSchema: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"ping">; -}>, "strip", z.ZodTypeAny, { - method: "ping"; - params?: z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}, { - method: "ping"; - params?: z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}>; -export declare const ProgressSchema: z.ZodObject<{ - /** - * The progress thus far. This should increase every time progress is made, even if the total is unknown. - */ - progress: z.ZodNumber; - /** - * Total number of items to process (or total progress required), if known. - */ - total: z.ZodOptional; -}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The progress thus far. This should increase every time progress is made, even if the total is unknown. - */ - progress: z.ZodNumber; - /** - * Total number of items to process (or total progress required), if known. - */ - total: z.ZodOptional; -}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The progress thus far. This should increase every time progress is made, even if the total is unknown. - */ - progress: z.ZodNumber; - /** - * Total number of items to process (or total progress required), if known. - */ - total: z.ZodOptional; -}, z.ZodTypeAny, "passthrough">>; -/** - * An out-of-band notification used to inform the receiver of a progress update for a long-running request. - */ -export declare const ProgressNotificationSchema: z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"notifications/progress">; - params: z.ZodObject; - }, { - /** - * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding. - */ - progressToken: z.ZodOptional>; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType; - }, { - /** - * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding. - */ - progressToken: z.ZodOptional>; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType; - }, { - /** - * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding. - */ - progressToken: z.ZodOptional>; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - progress: number; - progressToken?: string | number | undefined; - total?: number | undefined; - } & { - [k: string]: unknown; - }; - method: "notifications/progress"; -}, { - params: { - progress: number; - progressToken?: string | number | undefined; - total?: number | undefined; - } & { - [k: string]: unknown; - }; - method: "notifications/progress"; -}>; -export declare const PaginatedRequestSchema: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - cursor?: string | undefined; - } & { - [k: string]: unknown; - }; - method: string; -}, { - params: { - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - cursor?: string | undefined; - } & { - [k: string]: unknown; - }; - method: string; -}>; -export declare const PaginatedResultSchema: z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, z.ZodTypeAny, "passthrough">>; -/** - * The contents of a specific resource or sub-resource. - */ -export declare const ResourceContentsSchema: z.ZodObject<{ - /** - * The URI of this resource. - */ - uri: z.ZodString; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; -}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The URI of this resource. - */ - uri: z.ZodString; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; -}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The URI of this resource. - */ - uri: z.ZodString; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; -}, z.ZodTypeAny, "passthrough">>; -export declare const TextResourceContentsSchema: z.ZodObject; -}, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType; -}, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType; -}, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; -}>, z.ZodTypeAny, "passthrough">>; -export declare const BlobResourceContentsSchema: z.ZodObject; -}, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType; -}, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType; -}, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; -}>, z.ZodTypeAny, "passthrough">>; -/** - * A known resource that the server is capable of reading. - */ -export declare const ResourceSchema: z.ZodObject<{ - /** - * The URI of this resource. - */ - uri: z.ZodString; - /** - * A human-readable name for this resource. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; -}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The URI of this resource. - */ - uri: z.ZodString; - /** - * A human-readable name for this resource. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; -}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The URI of this resource. - */ - uri: z.ZodString; - /** - * A human-readable name for this resource. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; -}, z.ZodTypeAny, "passthrough">>; -/** - * A template description for resources available on the server. - */ -export declare const ResourceTemplateSchema: z.ZodObject<{ - /** - * A URI template (according to RFC 6570) that can be used to construct resource URIs. - */ - uriTemplate: z.ZodString; - /** - * A human-readable name for the type of resource this template refers to. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this template is for. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. - */ - mimeType: z.ZodOptional; -}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * A URI template (according to RFC 6570) that can be used to construct resource URIs. - */ - uriTemplate: z.ZodString; - /** - * A human-readable name for the type of resource this template refers to. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this template is for. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. - */ - mimeType: z.ZodOptional; -}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * A URI template (according to RFC 6570) that can be used to construct resource URIs. - */ - uriTemplate: z.ZodString; - /** - * A human-readable name for the type of resource this template refers to. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this template is for. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. - */ - mimeType: z.ZodOptional; -}, z.ZodTypeAny, "passthrough">>; -/** - * Sent from the client to request a list of resources the server has. - */ -export declare const ListResourcesRequestSchema: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, z.ZodTypeAny, "passthrough">>; -}>, { - method: z.ZodLiteral<"resources/list">; -}>, "strip", z.ZodTypeAny, { - params: { - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - cursor?: string | undefined; - } & { - [k: string]: unknown; - }; - method: "resources/list"; -}, { - params: { - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - cursor?: string | undefined; - } & { - [k: string]: unknown; - }; - method: "resources/list"; -}>; -/** - * The server's response to a resources/list request from the client. - */ -export declare const ListResourcesResultSchema: z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - resources: z.ZodArray; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The URI of this resource. - */ - uri: z.ZodString; - /** - * A human-readable name for this resource. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The URI of this resource. - */ - uri: z.ZodString; - /** - * A human-readable name for this resource. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - resources: z.ZodArray; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The URI of this resource. - */ - uri: z.ZodString; - /** - * A human-readable name for this resource. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The URI of this resource. - */ - uri: z.ZodString; - /** - * A human-readable name for this resource. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - resources: z.ZodArray; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The URI of this resource. - */ - uri: z.ZodString; - /** - * A human-readable name for this resource. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The URI of this resource. - */ - uri: z.ZodString; - /** - * A human-readable name for this resource. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, z.ZodTypeAny, "passthrough">>; -/** - * Sent from the client to request a list of resource templates the server has. - */ -export declare const ListResourceTemplatesRequestSchema: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, z.ZodTypeAny, "passthrough">>; -}>, { - method: z.ZodLiteral<"resources/templates/list">; -}>, "strip", z.ZodTypeAny, { - params: { - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - cursor?: string | undefined; - } & { - [k: string]: unknown; - }; - method: "resources/templates/list"; -}, { - params: { - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - cursor?: string | undefined; - } & { - [k: string]: unknown; - }; - method: "resources/templates/list"; -}>; -/** - * The server's response to a resources/templates/list request from the client. - */ -export declare const ListResourceTemplatesResultSchema: z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - resourceTemplates: z.ZodArray; - /** - * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. - */ - mimeType: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * A URI template (according to RFC 6570) that can be used to construct resource URIs. - */ - uriTemplate: z.ZodString; - /** - * A human-readable name for the type of resource this template refers to. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this template is for. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. - */ - mimeType: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * A URI template (according to RFC 6570) that can be used to construct resource URIs. - */ - uriTemplate: z.ZodString; - /** - * A human-readable name for the type of resource this template refers to. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this template is for. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. - */ - mimeType: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - resourceTemplates: z.ZodArray; - /** - * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. - */ - mimeType: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * A URI template (according to RFC 6570) that can be used to construct resource URIs. - */ - uriTemplate: z.ZodString; - /** - * A human-readable name for the type of resource this template refers to. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this template is for. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. - */ - mimeType: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * A URI template (according to RFC 6570) that can be used to construct resource URIs. - */ - uriTemplate: z.ZodString; - /** - * A human-readable name for the type of resource this template refers to. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this template is for. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. - */ - mimeType: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - resourceTemplates: z.ZodArray; - /** - * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. - */ - mimeType: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * A URI template (according to RFC 6570) that can be used to construct resource URIs. - */ - uriTemplate: z.ZodString; - /** - * A human-readable name for the type of resource this template refers to. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this template is for. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. - */ - mimeType: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * A URI template (according to RFC 6570) that can be used to construct resource URIs. - */ - uriTemplate: z.ZodString; - /** - * A human-readable name for the type of resource this template refers to. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this template is for. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. - */ - mimeType: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, z.ZodTypeAny, "passthrough">>; -/** - * Sent from the client to the server, to read a specific resource URI. - */ -export declare const ReadResourceRequestSchema: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"resources/read">; - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it. - */ - uri: z.ZodString; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it. - */ - uri: z.ZodString; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it. - */ - uri: z.ZodString; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - uri: string; - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "resources/read"; -}, { - params: { - uri: string; - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "resources/read"; -}>; -/** - * The server's response to a resources/read request from the client. - */ -export declare const ReadResourceResultSchema: z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - contents: z.ZodArray; - }, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType; - }, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType; - }, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; - }>, z.ZodTypeAny, "passthrough">>, z.ZodObject; - }, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType; - }, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType; - }, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; - }>, z.ZodTypeAny, "passthrough">>]>, "many">; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - contents: z.ZodArray; - }, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType; - }, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType; - }, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; - }>, z.ZodTypeAny, "passthrough">>, z.ZodObject; - }, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType; - }, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType; - }, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; - }>, z.ZodTypeAny, "passthrough">>]>, "many">; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - contents: z.ZodArray; - }, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType; - }, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType; - }, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; - }>, z.ZodTypeAny, "passthrough">>, z.ZodObject; - }, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType; - }, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType; - }, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; - }>, z.ZodTypeAny, "passthrough">>]>, "many">; -}>, z.ZodTypeAny, "passthrough">>; -/** - * An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This may be issued by servers without any previous subscription from the client. - */ -export declare const ResourceListChangedNotificationSchema: z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"notifications/resources/list_changed">; -}>, "strip", z.ZodTypeAny, { - method: "notifications/resources/list_changed"; - params?: z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}, { - method: "notifications/resources/list_changed"; - params?: z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}>; -/** - * Sent from the client to request resources/updated notifications from the server whenever a particular resource changes. - */ -export declare const SubscribeRequestSchema: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"resources/subscribe">; - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The URI of the resource to subscribe to. The URI can use any protocol; it is up to the server how to interpret it. - */ - uri: z.ZodString; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The URI of the resource to subscribe to. The URI can use any protocol; it is up to the server how to interpret it. - */ - uri: z.ZodString; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The URI of the resource to subscribe to. The URI can use any protocol; it is up to the server how to interpret it. - */ - uri: z.ZodString; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - uri: string; - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "resources/subscribe"; -}, { - params: { - uri: string; - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "resources/subscribe"; -}>; -/** - * Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request. - */ -export declare const UnsubscribeRequestSchema: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"resources/unsubscribe">; - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The URI of the resource to unsubscribe from. - */ - uri: z.ZodString; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The URI of the resource to unsubscribe from. - */ - uri: z.ZodString; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The URI of the resource to unsubscribe from. - */ - uri: z.ZodString; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - uri: string; - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "resources/unsubscribe"; -}, { - params: { - uri: string; - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "resources/unsubscribe"; -}>; -/** - * A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a resources/subscribe request. - */ -export declare const ResourceUpdatedNotificationSchema: z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"notifications/resources/updated">; - params: z.ZodObject<{ - /** - * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to. - */ - uri: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - uri: string; - } & { - [k: string]: unknown; - }; - method: "notifications/resources/updated"; -}, { - params: { - uri: string; - } & { - [k: string]: unknown; - }; - method: "notifications/resources/updated"; -}>; -/** - * Describes an argument that a prompt can accept. - */ -export declare const PromptArgumentSchema: z.ZodObject<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; -}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; -}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; -}, z.ZodTypeAny, "passthrough">>; -/** - * A prompt or prompt template that the server offers. - */ -export declare const PromptSchema: z.ZodObject<{ - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * An optional description of what this prompt provides - */ - description: z.ZodOptional; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; -}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * An optional description of what this prompt provides - */ - description: z.ZodOptional; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; -}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * An optional description of what this prompt provides - */ - description: z.ZodOptional; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; -}, z.ZodTypeAny, "passthrough">>; -/** - * Sent from the client to request a list of prompts and prompt templates the server has. - */ -export declare const ListPromptsRequestSchema: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, z.ZodTypeAny, "passthrough">>; -}>, { - method: z.ZodLiteral<"prompts/list">; -}>, "strip", z.ZodTypeAny, { - params: { - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - cursor?: string | undefined; - } & { - [k: string]: unknown; - }; - method: "prompts/list"; -}, { - params: { - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - cursor?: string | undefined; - } & { - [k: string]: unknown; - }; - method: "prompts/list"; -}>; -/** - * The server's response to a prompts/list request from the client. - */ -export declare const ListPromptsResultSchema: z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - prompts: z.ZodArray; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * An optional description of what this prompt provides - */ - description: z.ZodOptional; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * An optional description of what this prompt provides - */ - description: z.ZodOptional; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - prompts: z.ZodArray; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * An optional description of what this prompt provides - */ - description: z.ZodOptional; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * An optional description of what this prompt provides - */ - description: z.ZodOptional; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - prompts: z.ZodArray; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * An optional description of what this prompt provides - */ - description: z.ZodOptional; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * An optional description of what this prompt provides - */ - description: z.ZodOptional; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, z.ZodTypeAny, "passthrough">>; -/** - * Used by the client to get a prompt provided by the server. - */ -export declare const GetPromptRequestSchema: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"prompts/get">; - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * Arguments to use for templating the prompt. - */ - arguments: z.ZodOptional>; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * Arguments to use for templating the prompt. - */ - arguments: z.ZodOptional>; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * Arguments to use for templating the prompt. - */ - arguments: z.ZodOptional>; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - name: string; - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - arguments?: Record | undefined; - } & { - [k: string]: unknown; - }; - method: "prompts/get"; -}, { - params: { - name: string; - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - arguments?: Record | undefined; - } & { - [k: string]: unknown; - }; - method: "prompts/get"; -}>; -/** - * The server's response to a prompts/get request from the client. - */ -export declare const GetPromptResultSchema: z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An optional description for the prompt. - */ - description: z.ZodOptional; - messages: z.ZodArray; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An optional description for the prompt. - */ - description: z.ZodOptional; - messages: z.ZodArray; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An optional description for the prompt. - */ - description: z.ZodOptional; - messages: z.ZodArray; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, z.ZodTypeAny, "passthrough">>; -/** - * An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client. - */ -export declare const PromptListChangedNotificationSchema: z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"notifications/prompts/list_changed">; -}>, "strip", z.ZodTypeAny, { - method: "notifications/prompts/list_changed"; - params?: z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}, { - method: "notifications/prompts/list_changed"; - params?: z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}>; -/** - * Definition for a tool the client can call. - */ -export declare const ToolSchema: z.ZodObject<{ - /** - * The name of the tool. - */ - name: z.ZodString; - /** - * A human-readable description of the tool. - */ - description: z.ZodOptional; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; -}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the tool. - */ - name: z.ZodString; - /** - * A human-readable description of the tool. - */ - description: z.ZodOptional; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; -}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the tool. - */ - name: z.ZodString; - /** - * A human-readable description of the tool. - */ - description: z.ZodOptional; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; -}, z.ZodTypeAny, "passthrough">>; -/** - * Sent from the client to request a list of tools the server has. - */ -export declare const ListToolsRequestSchema: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, z.ZodTypeAny, "passthrough">>; -}>, { - method: z.ZodLiteral<"tools/list">; -}>, "strip", z.ZodTypeAny, { - params: { - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - cursor?: string | undefined; - } & { - [k: string]: unknown; - }; - method: "tools/list"; -}, { - params: { - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - cursor?: string | undefined; - } & { - [k: string]: unknown; - }; - method: "tools/list"; -}>; -/** - * The server's response to a tools/list request from the client. - */ -export declare const ListToolsResultSchema: z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - tools: z.ZodArray; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the tool. - */ - name: z.ZodString; - /** - * A human-readable description of the tool. - */ - description: z.ZodOptional; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the tool. - */ - name: z.ZodString; - /** - * A human-readable description of the tool. - */ - description: z.ZodOptional; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - tools: z.ZodArray; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the tool. - */ - name: z.ZodString; - /** - * A human-readable description of the tool. - */ - description: z.ZodOptional; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the tool. - */ - name: z.ZodString; - /** - * A human-readable description of the tool. - */ - description: z.ZodOptional; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - tools: z.ZodArray; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the tool. - */ - name: z.ZodString; - /** - * A human-readable description of the tool. - */ - description: z.ZodOptional; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the tool. - */ - name: z.ZodString; - /** - * A human-readable description of the tool. - */ - description: z.ZodOptional; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, z.ZodTypeAny, "passthrough">>; -/** - * The server's response to a tool call. - */ -export declare const CallToolResultSchema: z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - toolResult: z.ZodUnknown; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - toolResult: z.ZodUnknown; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - toolResult: z.ZodUnknown; -}>, z.ZodTypeAny, "passthrough">>; -/** - * Used by the client to invoke a tool provided by the server. - */ -export declare const CallToolRequestSchema: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"tools/call">; - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - name: z.ZodString; - arguments: z.ZodOptional>; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - name: z.ZodString; - arguments: z.ZodOptional>; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - name: z.ZodString; - arguments: z.ZodOptional>; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - name: string; - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - arguments?: Record | undefined; - } & { - [k: string]: unknown; - }; - method: "tools/call"; -}, { - params: { - name: string; - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - arguments?: Record | undefined; - } & { - [k: string]: unknown; - }; - method: "tools/call"; -}>; -/** - * An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client. - */ -export declare const ToolListChangedNotificationSchema: z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"notifications/tools/list_changed">; -}>, "strip", z.ZodTypeAny, { - method: "notifications/tools/list_changed"; - params?: z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}, { - method: "notifications/tools/list_changed"; - params?: z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}>; -/** - * The severity of a log message. - */ -export declare const LoggingLevelSchema: z.ZodEnum<["debug", "info", "warning", "error"]>; -/** - * A request from the client to the server, to enable or adjust logging. - */ -export declare const SetLevelRequestSchema: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"logging/setLevel">; - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/logging/message. - */ - level: z.ZodEnum<["debug", "info", "warning", "error"]>; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/logging/message. - */ - level: z.ZodEnum<["debug", "info", "warning", "error"]>; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/logging/message. - */ - level: z.ZodEnum<["debug", "info", "warning", "error"]>; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - level: "error" | "debug" | "info" | "warning"; - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "logging/setLevel"; -}, { - params: { - level: "error" | "debug" | "info" | "warning"; - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "logging/setLevel"; -}>; -/** - * Notification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically. - */ -export declare const LoggingMessageNotificationSchema: z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"notifications/message">; - params: z.ZodObject<{ - /** - * The severity of this log message. - */ - level: z.ZodEnum<["debug", "info", "warning", "error"]>; - /** - * An optional name of the logger issuing this message. - */ - logger: z.ZodOptional; - /** - * The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here. - */ - data: z.ZodUnknown; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The severity of this log message. - */ - level: z.ZodEnum<["debug", "info", "warning", "error"]>; - /** - * An optional name of the logger issuing this message. - */ - logger: z.ZodOptional; - /** - * The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here. - */ - data: z.ZodUnknown; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The severity of this log message. - */ - level: z.ZodEnum<["debug", "info", "warning", "error"]>; - /** - * An optional name of the logger issuing this message. - */ - logger: z.ZodOptional; - /** - * The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here. - */ - data: z.ZodUnknown; - }, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - level: "error" | "debug" | "info" | "warning"; - data?: unknown; - logger?: string | undefined; - } & { - [k: string]: unknown; - }; - method: "notifications/message"; -}, { - params: { - level: "error" | "debug" | "info" | "warning"; - data?: unknown; - logger?: string | undefined; - } & { - [k: string]: unknown; - }; - method: "notifications/message"; -}>; -/** - * A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it. - */ -export declare const CreateMessageRequestSchema: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"sampling/createMessage">; - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - messages: z.ZodArray; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">>, "many">; - /** - * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt. - */ - systemPrompt: z.ZodOptional; - /** - * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request. - */ - includeContext: z.ZodOptional>; - temperature: z.ZodOptional; - /** - * The maximum number of tokens to sample, as requested by the server. The client MAY choose to sample fewer tokens than requested. - */ - maxTokens: z.ZodNumber; - stopSequences: z.ZodOptional>; - /** - * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific. - */ - metadata: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - messages: z.ZodArray; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">>, "many">; - /** - * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt. - */ - systemPrompt: z.ZodOptional; - /** - * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request. - */ - includeContext: z.ZodOptional>; - temperature: z.ZodOptional; - /** - * The maximum number of tokens to sample, as requested by the server. The client MAY choose to sample fewer tokens than requested. - */ - maxTokens: z.ZodNumber; - stopSequences: z.ZodOptional>; - /** - * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific. - */ - metadata: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - messages: z.ZodArray; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">>, "many">; - /** - * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt. - */ - systemPrompt: z.ZodOptional; - /** - * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request. - */ - includeContext: z.ZodOptional>; - temperature: z.ZodOptional; - /** - * The maximum number of tokens to sample, as requested by the server. The client MAY choose to sample fewer tokens than requested. - */ - maxTokens: z.ZodNumber; - stopSequences: z.ZodOptional>; - /** - * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific. - */ - metadata: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - messages: z.objectOutputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">[]; - maxTokens: number; - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - systemPrompt?: string | undefined; - includeContext?: "none" | "thisServer" | "allServers" | undefined; - temperature?: number | undefined; - stopSequences?: string[] | undefined; - metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "sampling/createMessage"; -}, { - params: { - messages: z.objectInputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">[]; - maxTokens: number; - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - systemPrompt?: string | undefined; - includeContext?: "none" | "thisServer" | "allServers" | undefined; - temperature?: number | undefined; - stopSequences?: string[] | undefined; - metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "sampling/createMessage"; -}>; -/** - * The client's response to a sampling/create_message request from the server. The client should inform the user before returning the sampled message, to allow them to inspect the response (human in the loop) and decide whether to allow the server to see it. - */ -export declare const CreateMessageResultSchema: z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * The name of the model that generated the message. - */ - model: z.ZodString; - /** - * The reason why sampling stopped. - */ - stopReason: z.ZodEnum<["endTurn", "stopSequence", "maxTokens"]>; - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * The name of the model that generated the message. - */ - model: z.ZodString; - /** - * The reason why sampling stopped. - */ - stopReason: z.ZodEnum<["endTurn", "stopSequence", "maxTokens"]>; - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * The name of the model that generated the message. - */ - model: z.ZodString; - /** - * The reason why sampling stopped. - */ - stopReason: z.ZodEnum<["endTurn", "stopSequence", "maxTokens"]>; - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; -}>, z.ZodTypeAny, "passthrough">>; -/** - * A reference to a resource or resource template definition. - */ -export declare const ResourceReferenceSchema: z.ZodObject<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; -}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; -}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; -}, z.ZodTypeAny, "passthrough">>; -/** - * Identifies a prompt. - */ -export declare const PromptReferenceSchema: z.ZodObject<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; -}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; -}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; -}, z.ZodTypeAny, "passthrough">>; -/** - * A request from the client to the server, to ask for completion options. - */ -export declare const CompleteRequestSchema: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"completion/complete">; - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - ref: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - /** - * The argument's information - */ - argument: z.ZodObject<{ - /** - * The name of the argument - */ - name: z.ZodString; - /** - * The value of the argument to use for completion matching. - */ - value: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument - */ - name: z.ZodString; - /** - * The value of the argument to use for completion matching. - */ - value: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument - */ - name: z.ZodString; - /** - * The value of the argument to use for completion matching. - */ - value: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - ref: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - /** - * The argument's information - */ - argument: z.ZodObject<{ - /** - * The name of the argument - */ - name: z.ZodString; - /** - * The value of the argument to use for completion matching. - */ - value: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument - */ - name: z.ZodString; - /** - * The value of the argument to use for completion matching. - */ - value: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument - */ - name: z.ZodString; - /** - * The value of the argument to use for completion matching. - */ - value: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - ref: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - /** - * The argument's information - */ - argument: z.ZodObject<{ - /** - * The name of the argument - */ - name: z.ZodString; - /** - * The value of the argument to use for completion matching. - */ - value: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument - */ - name: z.ZodString; - /** - * The value of the argument to use for completion matching. - */ - value: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument - */ - name: z.ZodString; - /** - * The value of the argument to use for completion matching. - */ - value: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - ref: z.objectOutputType<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, z.ZodTypeAny, "passthrough">; - argument: { - value: string; - name: string; - } & { - [k: string]: unknown; - }; - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "completion/complete"; -}, { - params: { - ref: z.objectInputType<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, z.ZodTypeAny, "passthrough">; - argument: { - value: string; - name: string; - } & { - [k: string]: unknown; - }; - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "completion/complete"; -}>; -/** - * The server's response to a completion/complete request - */ -export declare const CompleteResultSchema: z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - completion: z.ZodObject<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - completion: z.ZodObject<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - completion: z.ZodObject<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>; -}>, z.ZodTypeAny, "passthrough">>; -export declare const ClientRequestSchema: z.ZodUnion<[z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"ping">; -}>, "strip", z.ZodTypeAny, { - method: "ping"; - params?: z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}, { - method: "ping"; - params?: z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}>, z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"initialize">; - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well. - */ - protocolVersion: z.ZodUnion<[z.ZodString, z.ZodNumber]>; - capabilities: z.ZodObject<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - clientInfo: z.ZodObject<{ - name: z.ZodString; - version: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well. - */ - protocolVersion: z.ZodUnion<[z.ZodString, z.ZodNumber]>; - capabilities: z.ZodObject<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - clientInfo: z.ZodObject<{ - name: z.ZodString; - version: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well. - */ - protocolVersion: z.ZodUnion<[z.ZodString, z.ZodNumber]>; - capabilities: z.ZodObject<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - clientInfo: z.ZodObject<{ - name: z.ZodString; - version: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - protocolVersion: string | number; - capabilities: { - experimental?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; - sampling?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - clientInfo: { - name: string; - version: string; - } & { - [k: string]: unknown; - }; - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "initialize"; -}, { - params: { - protocolVersion: string | number; - capabilities: { - experimental?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; - sampling?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - clientInfo: { - name: string; - version: string; - } & { - [k: string]: unknown; - }; - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "initialize"; -}>, z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"completion/complete">; - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - ref: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - /** - * The argument's information - */ - argument: z.ZodObject<{ - /** - * The name of the argument - */ - name: z.ZodString; - /** - * The value of the argument to use for completion matching. - */ - value: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument - */ - name: z.ZodString; - /** - * The value of the argument to use for completion matching. - */ - value: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument - */ - name: z.ZodString; - /** - * The value of the argument to use for completion matching. - */ - value: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - ref: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - /** - * The argument's information - */ - argument: z.ZodObject<{ - /** - * The name of the argument - */ - name: z.ZodString; - /** - * The value of the argument to use for completion matching. - */ - value: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument - */ - name: z.ZodString; - /** - * The value of the argument to use for completion matching. - */ - value: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument - */ - name: z.ZodString; - /** - * The value of the argument to use for completion matching. - */ - value: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - ref: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - /** - * The argument's information - */ - argument: z.ZodObject<{ - /** - * The name of the argument - */ - name: z.ZodString; - /** - * The value of the argument to use for completion matching. - */ - value: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument - */ - name: z.ZodString; - /** - * The value of the argument to use for completion matching. - */ - value: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument - */ - name: z.ZodString; - /** - * The value of the argument to use for completion matching. - */ - value: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - ref: z.objectOutputType<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, z.ZodTypeAny, "passthrough">; - argument: { - value: string; - name: string; - } & { - [k: string]: unknown; - }; - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "completion/complete"; -}, { - params: { - ref: z.objectInputType<{ - type: z.ZodLiteral<"ref/resource">; - /** - * The URI or URI template of the resource. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{ - type: z.ZodLiteral<"ref/prompt">; - /** - * The name of the prompt or prompt template - */ - name: z.ZodString; - }, z.ZodTypeAny, "passthrough">; - argument: { - value: string; - name: string; - } & { - [k: string]: unknown; - }; - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "completion/complete"; -}>, z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"logging/setLevel">; - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/logging/message. - */ - level: z.ZodEnum<["debug", "info", "warning", "error"]>; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/logging/message. - */ - level: z.ZodEnum<["debug", "info", "warning", "error"]>; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/logging/message. - */ - level: z.ZodEnum<["debug", "info", "warning", "error"]>; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - level: "error" | "debug" | "info" | "warning"; - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "logging/setLevel"; -}, { - params: { - level: "error" | "debug" | "info" | "warning"; - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "logging/setLevel"; -}>, z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"prompts/get">; - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * Arguments to use for templating the prompt. - */ - arguments: z.ZodOptional>; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * Arguments to use for templating the prompt. - */ - arguments: z.ZodOptional>; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * Arguments to use for templating the prompt. - */ - arguments: z.ZodOptional>; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - name: string; - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - arguments?: Record | undefined; - } & { - [k: string]: unknown; - }; - method: "prompts/get"; -}, { - params: { - name: string; - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - arguments?: Record | undefined; - } & { - [k: string]: unknown; - }; - method: "prompts/get"; -}>, z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, z.ZodTypeAny, "passthrough">>; -}>, { - method: z.ZodLiteral<"prompts/list">; -}>, "strip", z.ZodTypeAny, { - params: { - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - cursor?: string | undefined; - } & { - [k: string]: unknown; - }; - method: "prompts/list"; -}, { - params: { - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - cursor?: string | undefined; - } & { - [k: string]: unknown; - }; - method: "prompts/list"; -}>, z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, z.ZodTypeAny, "passthrough">>; -}>, { - method: z.ZodLiteral<"resources/list">; -}>, "strip", z.ZodTypeAny, { - params: { - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - cursor?: string | undefined; - } & { - [k: string]: unknown; - }; - method: "resources/list"; -}, { - params: { - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - cursor?: string | undefined; - } & { - [k: string]: unknown; - }; - method: "resources/list"; -}>, z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"resources/read">; - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it. - */ - uri: z.ZodString; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it. - */ - uri: z.ZodString; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it. - */ - uri: z.ZodString; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - uri: string; - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "resources/read"; -}, { - params: { - uri: string; - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "resources/read"; -}>, z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"resources/subscribe">; - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The URI of the resource to subscribe to. The URI can use any protocol; it is up to the server how to interpret it. - */ - uri: z.ZodString; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The URI of the resource to subscribe to. The URI can use any protocol; it is up to the server how to interpret it. - */ - uri: z.ZodString; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The URI of the resource to subscribe to. The URI can use any protocol; it is up to the server how to interpret it. - */ - uri: z.ZodString; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - uri: string; - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "resources/subscribe"; -}, { - params: { - uri: string; - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "resources/subscribe"; -}>, z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"resources/unsubscribe">; - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The URI of the resource to unsubscribe from. - */ - uri: z.ZodString; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The URI of the resource to unsubscribe from. - */ - uri: z.ZodString; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * The URI of the resource to unsubscribe from. - */ - uri: z.ZodString; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - uri: string; - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "resources/unsubscribe"; -}, { - params: { - uri: string; - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "resources/unsubscribe"; -}>, z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"tools/call">; - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - name: z.ZodString; - arguments: z.ZodOptional>; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - name: z.ZodString; - arguments: z.ZodOptional>; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - name: z.ZodString; - arguments: z.ZodOptional>; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - name: string; - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - arguments?: Record | undefined; - } & { - [k: string]: unknown; - }; - method: "tools/call"; -}, { - params: { - name: string; - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - arguments?: Record | undefined; - } & { - [k: string]: unknown; - }; - method: "tools/call"; -}>, z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.ZodOptional; - }>, z.ZodTypeAny, "passthrough">>; -}>, { - method: z.ZodLiteral<"tools/list">; -}>, "strip", z.ZodTypeAny, { - params: { - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - cursor?: string | undefined; - } & { - [k: string]: unknown; - }; - method: "tools/list"; -}, { - params: { - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - cursor?: string | undefined; - } & { - [k: string]: unknown; - }; - method: "tools/list"; -}>]>; -export declare const ClientNotificationSchema: z.ZodUnion<[z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"notifications/progress">; - params: z.ZodObject; - }, { - /** - * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding. - */ - progressToken: z.ZodOptional>; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType; - }, { - /** - * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding. - */ - progressToken: z.ZodOptional>; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType; - }, { - /** - * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding. - */ - progressToken: z.ZodOptional>; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - progress: number; - progressToken?: string | number | undefined; - total?: number | undefined; - } & { - [k: string]: unknown; - }; - method: "notifications/progress"; -}, { - params: { - progress: number; - progressToken?: string | number | undefined; - total?: number | undefined; - } & { - [k: string]: unknown; - }; - method: "notifications/progress"; -}>, z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"notifications/initialized">; -}>, "strip", z.ZodTypeAny, { - method: "notifications/initialized"; - params?: z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}, { - method: "notifications/initialized"; - params?: z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}>]>; -export declare const ClientResultSchema: z.ZodUnion<[z.ZodObject<{ - /** - * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, "strict", z.ZodTypeAny, { - _meta?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; -}, { - _meta?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; -}>, z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * The name of the model that generated the message. - */ - model: z.ZodString; - /** - * The reason why sampling stopped. - */ - stopReason: z.ZodEnum<["endTurn", "stopSequence", "maxTokens"]>; - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * The name of the model that generated the message. - */ - model: z.ZodString; - /** - * The reason why sampling stopped. - */ - stopReason: z.ZodEnum<["endTurn", "stopSequence", "maxTokens"]>; - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * The name of the model that generated the message. - */ - model: z.ZodString; - /** - * The reason why sampling stopped. - */ - stopReason: z.ZodEnum<["endTurn", "stopSequence", "maxTokens"]>; - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; -}>, z.ZodTypeAny, "passthrough">>]>; -export declare const ServerRequestSchema: z.ZodUnion<[z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"ping">; -}>, "strip", z.ZodTypeAny, { - method: "ping"; - params?: z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}, { - method: "ping"; - params?: z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}>, z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - _meta: z.ZodOptional>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"sampling/createMessage">; - params: z.ZodObject>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - messages: z.ZodArray; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">>, "many">; - /** - * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt. - */ - systemPrompt: z.ZodOptional; - /** - * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request. - */ - includeContext: z.ZodOptional>; - temperature: z.ZodOptional; - /** - * The maximum number of tokens to sample, as requested by the server. The client MAY choose to sample fewer tokens than requested. - */ - maxTokens: z.ZodNumber; - stopSequences: z.ZodOptional>; - /** - * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific. - */ - metadata: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - messages: z.ZodArray; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">>, "many">; - /** - * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt. - */ - systemPrompt: z.ZodOptional; - /** - * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request. - */ - includeContext: z.ZodOptional>; - temperature: z.ZodOptional; - /** - * The maximum number of tokens to sample, as requested by the server. The client MAY choose to sample fewer tokens than requested. - */ - maxTokens: z.ZodNumber; - stopSequences: z.ZodOptional>; - /** - * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific. - */ - metadata: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough">>>; - }, { - messages: z.ZodArray; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">>, "many">; - /** - * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt. - */ - systemPrompt: z.ZodOptional; - /** - * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request. - */ - includeContext: z.ZodOptional>; - temperature: z.ZodOptional; - /** - * The maximum number of tokens to sample, as requested by the server. The client MAY choose to sample fewer tokens than requested. - */ - maxTokens: z.ZodNumber; - stopSequences: z.ZodOptional>; - /** - * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific. - */ - metadata: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - messages: z.objectOutputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">[]; - maxTokens: number; - _meta?: z.objectOutputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - systemPrompt?: string | undefined; - includeContext?: "none" | "thisServer" | "allServers" | undefined; - temperature?: number | undefined; - stopSequences?: string[] | undefined; - metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "sampling/createMessage"; -}, { - params: { - messages: z.objectInputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">[]; - maxTokens: number; - _meta?: z.objectInputType<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - }, z.ZodTypeAny, "passthrough"> | undefined; - systemPrompt?: string | undefined; - includeContext?: "none" | "thisServer" | "allServers" | undefined; - temperature?: number | undefined; - stopSequences?: string[] | undefined; - metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; - } & { - [k: string]: unknown; - }; - method: "sampling/createMessage"; -}>]>; -export declare const ServerNotificationSchema: z.ZodUnion<[z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"notifications/progress">; - params: z.ZodObject; - }, { - /** - * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding. - */ - progressToken: z.ZodOptional>; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType; - }, { - /** - * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding. - */ - progressToken: z.ZodOptional>; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType; - }, { - /** - * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding. - */ - progressToken: z.ZodOptional>; - }>, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - progress: number; - progressToken?: string | number | undefined; - total?: number | undefined; - } & { - [k: string]: unknown; - }; - method: "notifications/progress"; -}, { - params: { - progress: number; - progressToken?: string | number | undefined; - total?: number | undefined; - } & { - [k: string]: unknown; - }; - method: "notifications/progress"; -}>, z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"notifications/message">; - params: z.ZodObject<{ - /** - * The severity of this log message. - */ - level: z.ZodEnum<["debug", "info", "warning", "error"]>; - /** - * An optional name of the logger issuing this message. - */ - logger: z.ZodOptional; - /** - * The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here. - */ - data: z.ZodUnknown; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The severity of this log message. - */ - level: z.ZodEnum<["debug", "info", "warning", "error"]>; - /** - * An optional name of the logger issuing this message. - */ - logger: z.ZodOptional; - /** - * The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here. - */ - data: z.ZodUnknown; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The severity of this log message. - */ - level: z.ZodEnum<["debug", "info", "warning", "error"]>; - /** - * An optional name of the logger issuing this message. - */ - logger: z.ZodOptional; - /** - * The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here. - */ - data: z.ZodUnknown; - }, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - level: "error" | "debug" | "info" | "warning"; - data?: unknown; - logger?: string | undefined; - } & { - [k: string]: unknown; - }; - method: "notifications/message"; -}, { - params: { - level: "error" | "debug" | "info" | "warning"; - data?: unknown; - logger?: string | undefined; - } & { - [k: string]: unknown; - }; - method: "notifications/message"; -}>, z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"notifications/resources/updated">; - params: z.ZodObject<{ - /** - * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to. - */ - uri: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to. - */ - uri: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; -}>, "strip", z.ZodTypeAny, { - params: { - uri: string; - } & { - [k: string]: unknown; - }; - method: "notifications/resources/updated"; -}, { - params: { - uri: string; - } & { - [k: string]: unknown; - }; - method: "notifications/resources/updated"; -}>, z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"notifications/resources/list_changed">; -}>, "strip", z.ZodTypeAny, { - method: "notifications/resources/list_changed"; - params?: z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}, { - method: "notifications/resources/list_changed"; - params?: z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}>, z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"notifications/tools/list_changed">; -}>, "strip", z.ZodTypeAny, { - method: "notifications/tools/list_changed"; - params?: z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}, { - method: "notifications/tools/list_changed"; - params?: z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}>, z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>>; -}, { - method: z.ZodLiteral<"notifications/prompts/list_changed">; -}>, "strip", z.ZodTypeAny, { - method: "notifications/prompts/list_changed"; - params?: z.objectOutputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}, { - method: "notifications/prompts/list_changed"; - params?: z.objectInputType<{ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough"> | undefined; -}>]>; -export declare const ServerResultSchema: z.ZodUnion<[z.ZodObject<{ - /** - * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses. - */ - _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, "strict", z.ZodTypeAny, { - _meta?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; -}, { - _meta?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; -}>, z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect. - */ - protocolVersion: z.ZodUnion<[z.ZodString, z.ZodNumber]>; - capabilities: z.ZodObject<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - serverInfo: z.ZodObject<{ - name: z.ZodString; - version: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect. - */ - protocolVersion: z.ZodUnion<[z.ZodString, z.ZodNumber]>; - capabilities: z.ZodObject<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - serverInfo: z.ZodObject<{ - name: z.ZodString; - version: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect. - */ - protocolVersion: z.ZodUnion<[z.ZodString, z.ZodNumber]>; - capabilities: z.ZodObject<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any prompt templates. - */ - prompts: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any resources to read. - */ - resources: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.ZodOptional; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - /** - * Present if the server offers any tools to call. - */ - tools: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - serverInfo: z.ZodObject<{ - name: z.ZodString; - version: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - name: z.ZodString; - version: z.ZodString; - }, z.ZodTypeAny, "passthrough">>; -}>, z.ZodTypeAny, "passthrough">>, z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - completion: z.ZodObject<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - completion: z.ZodObject<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - completion: z.ZodObject<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>; -}>, z.ZodTypeAny, "passthrough">>, z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An optional description for the prompt. - */ - description: z.ZodOptional; - messages: z.ZodArray; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An optional description for the prompt. - */ - description: z.ZodOptional; - messages: z.ZodArray; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An optional description for the prompt. - */ - description: z.ZodOptional; - messages: z.ZodArray; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - role: z.ZodEnum<["user", "assistant"]>; - content: z.ZodUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"text">; - /** - * The text content of the message. - */ - text: z.ZodString; - }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"image">; - /** - * The base64-encoded image data. - */ - data: z.ZodString; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.ZodString; - }, z.ZodTypeAny, "passthrough">>]>; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, z.ZodTypeAny, "passthrough">>, z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - prompts: z.ZodArray; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * An optional description of what this prompt provides - */ - description: z.ZodOptional; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * An optional description of what this prompt provides - */ - description: z.ZodOptional; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - prompts: z.ZodArray; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * An optional description of what this prompt provides - */ - description: z.ZodOptional; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * An optional description of what this prompt provides - */ - description: z.ZodOptional; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - prompts: z.ZodArray; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * An optional description of what this prompt provides - */ - description: z.ZodOptional; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the prompt or prompt template. - */ - name: z.ZodString; - /** - * An optional description of what this prompt provides - */ - description: z.ZodOptional; - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the argument. - */ - name: z.ZodString; - /** - * A human-readable description of the argument. - */ - description: z.ZodOptional; - /** - * Whether this argument must be provided. - */ - required: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">>; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, z.ZodTypeAny, "passthrough">>, z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - resources: z.ZodArray; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The URI of this resource. - */ - uri: z.ZodString; - /** - * A human-readable name for this resource. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The URI of this resource. - */ - uri: z.ZodString; - /** - * A human-readable name for this resource. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - resources: z.ZodArray; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The URI of this resource. - */ - uri: z.ZodString; - /** - * A human-readable name for this resource. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The URI of this resource. - */ - uri: z.ZodString; - /** - * A human-readable name for this resource. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - resources: z.ZodArray; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The URI of this resource. - */ - uri: z.ZodString; - /** - * A human-readable name for this resource. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The URI of this resource. - */ - uri: z.ZodString; - /** - * A human-readable name for this resource. - * - * This can be used by clients to populate UI elements. - */ - name: z.ZodString; - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.ZodOptional; - /** - * The MIME type of this resource, if known. - */ - mimeType: z.ZodOptional; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, z.ZodTypeAny, "passthrough">>, z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - contents: z.ZodArray; - }, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType; - }, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType; - }, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; - }>, z.ZodTypeAny, "passthrough">>, z.ZodObject; - }, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType; - }, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType; - }, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; - }>, z.ZodTypeAny, "passthrough">>]>, "many">; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - contents: z.ZodArray; - }, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType; - }, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType; - }, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; - }>, z.ZodTypeAny, "passthrough">>, z.ZodObject; - }, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType; - }, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType; - }, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; - }>, z.ZodTypeAny, "passthrough">>]>, "many">; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - contents: z.ZodArray; - }, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType; - }, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType; - }, { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.ZodString; - }>, z.ZodTypeAny, "passthrough">>, z.ZodObject; - }, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; - }>, "passthrough", z.ZodTypeAny, z.objectOutputType; - }, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; - }>, z.ZodTypeAny, "passthrough">, z.objectInputType; - }, { - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.ZodString; - }>, z.ZodTypeAny, "passthrough">>]>, "many">; -}>, z.ZodTypeAny, "passthrough">>, z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - toolResult: z.ZodUnknown; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - toolResult: z.ZodUnknown; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - toolResult: z.ZodUnknown; -}>, z.ZodTypeAny, "passthrough">>, z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - tools: z.ZodArray; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the tool. - */ - name: z.ZodString; - /** - * A human-readable description of the tool. - */ - description: z.ZodOptional; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the tool. - */ - name: z.ZodString; - /** - * A human-readable description of the tool. - */ - description: z.ZodOptional; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - tools: z.ZodArray; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the tool. - */ - name: z.ZodString; - /** - * A human-readable description of the tool. - */ - description: z.ZodOptional; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the tool. - */ - name: z.ZodString; - /** - * A human-readable description of the tool. - */ - description: z.ZodOptional; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; -}, { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.ZodOptional; -}>, { - tools: z.ZodArray; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - /** - * The name of the tool. - */ - name: z.ZodString; - /** - * A human-readable description of the tool. - */ - description: z.ZodOptional; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - /** - * The name of the tool. - */ - name: z.ZodString; - /** - * A human-readable description of the tool. - */ - description: z.ZodOptional; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; - }, z.ZodTypeAny, "passthrough">>; - }, z.ZodTypeAny, "passthrough">>, "many">; -}>, z.ZodTypeAny, "passthrough">>]>; -export declare class McpError extends Error { - readonly code: number; - readonly data?: unknown; - constructor(code: number, message: string, data?: unknown); -} -export type ProgressToken = z.infer; -export type Cursor = z.infer; -export type Request = z.infer; -export type Notification = z.infer; -export type Result = z.infer; -export type RequestId = z.infer; -export type JSONRPCRequest = z.infer; -export type JSONRPCNotification = z.infer; -export type JSONRPCResponse = z.infer; -export type JSONRPCError = z.infer; -export type JSONRPCMessage = z.infer; -export type EmptyResult = z.infer; -export type TextContent = z.infer; -export type ImageContent = z.infer; -export type SamplingMessage = z.infer; -export type Implementation = z.infer; -export type ClientCapabilities = z.infer; -export type InitializeRequest = z.infer; -export type ServerCapabilities = z.infer; -export type InitializeResult = z.infer; -export type InitializedNotification = z.infer; -export type PingRequest = z.infer; -export type Progress = z.infer; -export type ProgressNotification = z.infer; -export type PaginatedRequest = z.infer; -export type PaginatedResult = z.infer; -export type ResourceContents = z.infer; -export type TextResourceContents = z.infer; -export type BlobResourceContents = z.infer; -export type Resource = z.infer; -export type ResourceTemplate = z.infer; -export type ListResourcesRequest = z.infer; -export type ListResourcesResult = z.infer; -export type ListResourceTemplatesRequest = z.infer; -export type ListResourceTemplatesResult = z.infer; -export type ReadResourceRequest = z.infer; -export type ReadResourceResult = z.infer; -export type ResourceListChangedNotification = z.infer; -export type SubscribeRequest = z.infer; -export type UnsubscribeRequest = z.infer; -export type ResourceUpdatedNotification = z.infer; -export type PromptArgument = z.infer; -export type Prompt = z.infer; -export type ListPromptsRequest = z.infer; -export type ListPromptsResult = z.infer; -export type GetPromptRequest = z.infer; -export type GetPromptResult = z.infer; -export type PromptListChangedNotification = z.infer; -export type Tool = z.infer; -export type ListToolsRequest = z.infer; -export type ListToolsResult = z.infer; -export type CallToolResult = z.infer; -export type CallToolRequest = z.infer; -export type ToolListChangedNotification = z.infer; -export type LoggingLevel = z.infer; -export type SetLevelRequest = z.infer; -export type LoggingMessageNotification = z.infer; -export type CreateMessageRequest = z.infer; -export type CreateMessageResult = z.infer; -export type ResourceReference = z.infer; -export type PromptReference = z.infer; -export type CompleteRequest = z.infer; -export type CompleteResult = z.infer; -export type ClientRequest = z.infer; -export type ClientNotification = z.infer; -export type ClientResult = z.infer; -export type ServerRequest = z.infer; -export type ServerNotification = z.infer; -export type ServerResult = z.infer; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/dist/types.d.ts.map b/dist/types.d.ts.map deleted file mode 100644 index e931e2374..000000000 --- a/dist/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAG7C,eAAO,MAAM,eAAe,QAAQ,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,mBAAmB,wCAA0C,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,YAAY,aAAa,CAAC;AAiBvC,eAAO,MAAM,aAAa;;;;YAVhB;;eAEG;;;YAFH;;eAEG;;;YAFH;;eAEG;;;;;YAFH;;eAEG;;;YAFH;;eAEG;;;YAFH;;eAEG;;;;;YAFH;;eAEG;;;YAFH;;eAEG;;;YAFH;;eAEG;;;;;;;;YAFH;;eAEG;;;YAFH;;eAEG;;;YAFH;;eAEG;;;;;;;;YAFH;;eAEG;;;YAFH;;eAEG;;;YAFH;;eA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AAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/types.js b/dist/types.js deleted file mode 100644 index 8cab864fe..000000000 --- a/dist/types.js +++ /dev/null @@ -1,842 +0,0 @@ -import { z } from "zod"; -export const PROTOCOL_VERSION = "2024-10-07"; -/* JSON-RPC types */ -export const JSONRPC_VERSION = "2.0"; -/** - * A progress token, used to associate progress notifications with the original request. - */ -export const ProgressTokenSchema = z.union([z.string(), z.number().int()]); -/** - * An opaque token used to represent a cursor for pagination. - */ -export const CursorSchema = z.string(); -const BaseRequestParamsSchema = z - .object({ - _meta: z.optional(z - .object({ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.optional(ProgressTokenSchema), - }) - .passthrough()), -}) - .passthrough(); -export const RequestSchema = z.object({ - method: z.string(), - params: z.optional(BaseRequestParamsSchema), -}); -export const NotificationSchema = z.object({ - method: z.string(), - params: z.optional(z - .object({ - /** - * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. - */ - _meta: z.optional(z.object({}).passthrough()), - }) - .passthrough()), -}); -export const ResultSchema = z - .object({ - /** - * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses. - */ - _meta: z.optional(z.object({}).passthrough()), -}) - .passthrough(); -/** - * A uniquely identifying ID for a request in JSON-RPC. - */ -export const RequestIdSchema = z.union([z.string(), z.number().int()]); -/** - * A request that expects a response. - */ -export const JSONRPCRequestSchema = z - .object({ - jsonrpc: z.literal(JSONRPC_VERSION), - id: RequestIdSchema, -}) - .merge(RequestSchema) - .strict(); -/** - * A notification which does not expect a response. - */ -export const JSONRPCNotificationSchema = z - .object({ - jsonrpc: z.literal(JSONRPC_VERSION), -}) - .merge(NotificationSchema) - .strict(); -/** - * A successful (non-error) response to a request. - */ -export const JSONRPCResponseSchema = z - .object({ - jsonrpc: z.literal(JSONRPC_VERSION), - id: RequestIdSchema, - result: ResultSchema, -}) - .strict(); -/** - * An incomplete set of error codes that may appear in JSON-RPC responses. - */ -export var ErrorCode; -(function (ErrorCode) { - // SDK error codes - ErrorCode[ErrorCode["ConnectionClosed"] = -1] = "ConnectionClosed"; - // Standard JSON-RPC error codes - ErrorCode[ErrorCode["ParseError"] = -32700] = "ParseError"; - ErrorCode[ErrorCode["InvalidRequest"] = -32600] = "InvalidRequest"; - ErrorCode[ErrorCode["MethodNotFound"] = -32601] = "MethodNotFound"; - ErrorCode[ErrorCode["InvalidParams"] = -32602] = "InvalidParams"; - ErrorCode[ErrorCode["InternalError"] = -32603] = "InternalError"; -})(ErrorCode || (ErrorCode = {})); -/** - * A response to a request that indicates an error occurred. - */ -export const JSONRPCErrorSchema = z - .object({ - jsonrpc: z.literal(JSONRPC_VERSION), - id: RequestIdSchema, - error: z.object({ - /** - * The error type that occurred. - */ - code: z.number().int(), - /** - * A short description of the error. The message SHOULD be limited to a concise single sentence. - */ - message: z.string(), - /** - * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.). - */ - data: z.optional(z.unknown()), - }), -}) - .strict(); -export const JSONRPCMessageSchema = z.union([ - JSONRPCRequestSchema, - JSONRPCNotificationSchema, - JSONRPCResponseSchema, - JSONRPCErrorSchema, -]); -/* Empty result */ -/** - * A response that indicates success but carries no data. - */ -export const EmptyResultSchema = ResultSchema.strict(); -/* Initialization */ -/** - * Text provided to or from an LLM. - */ -export const TextContentSchema = z - .object({ - type: z.literal("text"), - /** - * The text content of the message. - */ - text: z.string(), -}) - .passthrough(); -/** - * An image provided to or from an LLM. - */ -export const ImageContentSchema = z - .object({ - type: z.literal("image"), - /** - * The base64-encoded image data. - */ - data: z.string().base64(), - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.string(), -}) - .passthrough(); -/** - * Describes a message issued to or received from an LLM API. - */ -export const SamplingMessageSchema = z - .object({ - role: z.enum(["user", "assistant"]), - content: z.union([TextContentSchema, ImageContentSchema]), -}) - .passthrough(); -/** - * Describes the name and version of an MCP implementation. - */ -export const ImplementationSchema = z - .object({ - name: z.string(), - version: z.string(), -}) - .passthrough(); -/** - * Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities. - */ -export const ClientCapabilitiesSchema = z - .object({ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.optional(z.object({}).passthrough()), - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z.optional(z.object({}).passthrough()), -}) - .passthrough(); -/** - * This request is sent from the client to the server when it first connects, asking it to begin initialization. - */ -export const InitializeRequestSchema = RequestSchema.extend({ - method: z.literal("initialize"), - params: BaseRequestParamsSchema.extend({ - /** - * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well. - */ - protocolVersion: z.string().or(z.number().int()), - capabilities: ClientCapabilitiesSchema, - clientInfo: ImplementationSchema, - }), -}); -/** - * Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities. - */ -export const ServerCapabilitiesSchema = z - .object({ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.optional(z.object({}).passthrough()), - /** - * Present if the server supports sending log messages to the client. - */ - logging: z.optional(z.object({}).passthrough()), - /** - * Present if the server offers any prompt templates. - */ - prompts: z.optional(z - .object({ - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged: z.optional(z.boolean()), - }) - .passthrough()), - /** - * Present if the server offers any resources to read. - */ - resources: z.optional(z - .object({ - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe: z.optional(z.boolean()), - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged: z.optional(z.boolean()), - }) - .passthrough()), - /** - * Present if the server offers any tools to call. - */ - tools: z.optional(z - .object({ - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged: z.optional(z.boolean()), - }) - .passthrough()), -}) - .passthrough(); -/** - * After receiving an initialize request from the client, the server sends this response. - */ -export const InitializeResultSchema = ResultSchema.extend({ - /** - * The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect. - */ - protocolVersion: z.string().or(z.number().int()), - capabilities: ServerCapabilitiesSchema, - serverInfo: ImplementationSchema, -}); -/** - * This notification is sent from the client to the server after initialization has finished. - */ -export const InitializedNotificationSchema = NotificationSchema.extend({ - method: z.literal("notifications/initialized"), -}); -/* Ping */ -/** - * A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected. - */ -export const PingRequestSchema = RequestSchema.extend({ - method: z.literal("ping"), -}); -/* Progress notifications */ -export const ProgressSchema = z - .object({ - /** - * The progress thus far. This should increase every time progress is made, even if the total is unknown. - */ - progress: z.number(), - /** - * Total number of items to process (or total progress required), if known. - */ - total: z.optional(z.number()), -}) - .passthrough(); -/** - * An out-of-band notification used to inform the receiver of a progress update for a long-running request. - */ -export const ProgressNotificationSchema = NotificationSchema.extend({ - method: z.literal("notifications/progress"), - params: ProgressSchema.extend({ - /** - * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding. - */ - progressToken: z.optional(ProgressTokenSchema), - }), -}); -/* Pagination */ -export const PaginatedRequestSchema = RequestSchema.extend({ - params: BaseRequestParamsSchema.extend({ - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: z.optional(CursorSchema), - }), -}); -export const PaginatedResultSchema = ResultSchema.extend({ - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: z.optional(CursorSchema), -}); -/* Resources */ -/** - * The contents of a specific resource or sub-resource. - */ -export const ResourceContentsSchema = z - .object({ - /** - * The URI of this resource. - */ - uri: z.string(), - /** - * The MIME type of this resource, if known. - */ - mimeType: z.optional(z.string()), -}) - .passthrough(); -export const TextResourceContentsSchema = ResourceContentsSchema.extend({ - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.string(), -}); -export const BlobResourceContentsSchema = ResourceContentsSchema.extend({ - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: z.string().base64(), -}); -/** - * A known resource that the server is capable of reading. - */ -export const ResourceSchema = z - .object({ - /** - * The URI of this resource. - */ - uri: z.string(), - /** - * A human-readable name for this resource. - * - * This can be used by clients to populate UI elements. - */ - name: z.string(), - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.optional(z.string()), - /** - * The MIME type of this resource, if known. - */ - mimeType: z.optional(z.string()), -}) - .passthrough(); -/** - * A template description for resources available on the server. - */ -export const ResourceTemplateSchema = z - .object({ - /** - * A URI template (according to RFC 6570) that can be used to construct resource URIs. - */ - uriTemplate: z.string(), - /** - * A human-readable name for the type of resource this template refers to. - * - * This can be used by clients to populate UI elements. - */ - name: z.string(), - /** - * A description of what this template is for. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.optional(z.string()), - /** - * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. - */ - mimeType: z.optional(z.string()), -}) - .passthrough(); -/** - * Sent from the client to request a list of resources the server has. - */ -export const ListResourcesRequestSchema = PaginatedRequestSchema.extend({ - method: z.literal("resources/list"), -}); -/** - * The server's response to a resources/list request from the client. - */ -export const ListResourcesResultSchema = PaginatedResultSchema.extend({ - resources: z.array(ResourceSchema), -}); -/** - * Sent from the client to request a list of resource templates the server has. - */ -export const ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({ - method: z.literal("resources/templates/list"), -}); -/** - * The server's response to a resources/templates/list request from the client. - */ -export const ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({ - resourceTemplates: z.array(ResourceTemplateSchema), -}); -/** - * Sent from the client to the server, to read a specific resource URI. - */ -export const ReadResourceRequestSchema = RequestSchema.extend({ - method: z.literal("resources/read"), - params: BaseRequestParamsSchema.extend({ - /** - * The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it. - */ - uri: z.string(), - }), -}); -/** - * The server's response to a resources/read request from the client. - */ -export const ReadResourceResultSchema = ResultSchema.extend({ - contents: z.array(z.union([TextResourceContentsSchema, BlobResourceContentsSchema])), -}); -/** - * An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This may be issued by servers without any previous subscription from the client. - */ -export const ResourceListChangedNotificationSchema = NotificationSchema.extend({ - method: z.literal("notifications/resources/list_changed"), -}); -/** - * Sent from the client to request resources/updated notifications from the server whenever a particular resource changes. - */ -export const SubscribeRequestSchema = RequestSchema.extend({ - method: z.literal("resources/subscribe"), - params: BaseRequestParamsSchema.extend({ - /** - * The URI of the resource to subscribe to. The URI can use any protocol; it is up to the server how to interpret it. - */ - uri: z.string(), - }), -}); -/** - * Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request. - */ -export const UnsubscribeRequestSchema = RequestSchema.extend({ - method: z.literal("resources/unsubscribe"), - params: BaseRequestParamsSchema.extend({ - /** - * The URI of the resource to unsubscribe from. - */ - uri: z.string(), - }), -}); -/** - * A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a resources/subscribe request. - */ -export const ResourceUpdatedNotificationSchema = NotificationSchema.extend({ - method: z.literal("notifications/resources/updated"), - params: z - .object({ - /** - * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to. - */ - uri: z.string(), - }) - .passthrough(), -}); -/* Prompts */ -/** - * Describes an argument that a prompt can accept. - */ -export const PromptArgumentSchema = z - .object({ - /** - * The name of the argument. - */ - name: z.string(), - /** - * A human-readable description of the argument. - */ - description: z.optional(z.string()), - /** - * Whether this argument must be provided. - */ - required: z.optional(z.boolean()), -}) - .passthrough(); -/** - * A prompt or prompt template that the server offers. - */ -export const PromptSchema = z - .object({ - /** - * The name of the prompt or prompt template. - */ - name: z.string(), - /** - * An optional description of what this prompt provides - */ - description: z.optional(z.string()), - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.optional(z.array(PromptArgumentSchema)), -}) - .passthrough(); -/** - * Sent from the client to request a list of prompts and prompt templates the server has. - */ -export const ListPromptsRequestSchema = PaginatedRequestSchema.extend({ - method: z.literal("prompts/list"), -}); -/** - * The server's response to a prompts/list request from the client. - */ -export const ListPromptsResultSchema = PaginatedResultSchema.extend({ - prompts: z.array(PromptSchema), -}); -/** - * Used by the client to get a prompt provided by the server. - */ -export const GetPromptRequestSchema = RequestSchema.extend({ - method: z.literal("prompts/get"), - params: BaseRequestParamsSchema.extend({ - /** - * The name of the prompt or prompt template. - */ - name: z.string(), - /** - * Arguments to use for templating the prompt. - */ - arguments: z.optional(z.record(z.string())), - }), -}); -/** - * The server's response to a prompts/get request from the client. - */ -export const GetPromptResultSchema = ResultSchema.extend({ - /** - * An optional description for the prompt. - */ - description: z.optional(z.string()), - messages: z.array(SamplingMessageSchema), -}); -/** - * An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client. - */ -export const PromptListChangedNotificationSchema = NotificationSchema.extend({ - method: z.literal("notifications/prompts/list_changed"), -}); -/* Tools */ -/** - * Definition for a tool the client can call. - */ -export const ToolSchema = z - .object({ - /** - * The name of the tool. - */ - name: z.string(), - /** - * A human-readable description of the tool. - */ - description: z.optional(z.string()), - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: z - .object({ - type: z.literal("object"), - properties: z.optional(z.object({}).passthrough()), - }) - .passthrough(), -}) - .passthrough(); -/** - * Sent from the client to request a list of tools the server has. - */ -export const ListToolsRequestSchema = PaginatedRequestSchema.extend({ - method: z.literal("tools/list"), -}); -/** - * The server's response to a tools/list request from the client. - */ -export const ListToolsResultSchema = PaginatedResultSchema.extend({ - tools: z.array(ToolSchema), -}); -/** - * The server's response to a tool call. - */ -export const CallToolResultSchema = ResultSchema.extend({ - toolResult: z.unknown(), -}); -/** - * Used by the client to invoke a tool provided by the server. - */ -export const CallToolRequestSchema = RequestSchema.extend({ - method: z.literal("tools/call"), - params: BaseRequestParamsSchema.extend({ - name: z.string(), - arguments: z.optional(z.record(z.unknown())), - }), -}); -/** - * An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client. - */ -export const ToolListChangedNotificationSchema = NotificationSchema.extend({ - method: z.literal("notifications/tools/list_changed"), -}); -/* Logging */ -/** - * The severity of a log message. - */ -export const LoggingLevelSchema = z.enum(["debug", "info", "warning", "error"]); -/** - * A request from the client to the server, to enable or adjust logging. - */ -export const SetLevelRequestSchema = RequestSchema.extend({ - method: z.literal("logging/setLevel"), - params: BaseRequestParamsSchema.extend({ - /** - * The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/logging/message. - */ - level: LoggingLevelSchema, - }), -}); -/** - * Notification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically. - */ -export const LoggingMessageNotificationSchema = NotificationSchema.extend({ - method: z.literal("notifications/message"), - params: z - .object({ - /** - * The severity of this log message. - */ - level: LoggingLevelSchema, - /** - * An optional name of the logger issuing this message. - */ - logger: z.optional(z.string()), - /** - * The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here. - */ - data: z.unknown(), - }) - .passthrough(), -}); -/* Sampling */ -/** - * A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it. - */ -export const CreateMessageRequestSchema = RequestSchema.extend({ - method: z.literal("sampling/createMessage"), - params: BaseRequestParamsSchema.extend({ - messages: z.array(SamplingMessageSchema), - /** - * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt. - */ - systemPrompt: z.optional(z.string()), - /** - * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request. - */ - includeContext: z.optional(z.enum(["none", "thisServer", "allServers"])), - temperature: z.optional(z.number()), - /** - * The maximum number of tokens to sample, as requested by the server. The client MAY choose to sample fewer tokens than requested. - */ - maxTokens: z.number().int(), - stopSequences: z.optional(z.array(z.string())), - /** - * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific. - */ - metadata: z.optional(z.object({}).passthrough()), - }), -}); -/** - * The client's response to a sampling/create_message request from the server. The client should inform the user before returning the sampled message, to allow them to inspect the response (human in the loop) and decide whether to allow the server to see it. - */ -export const CreateMessageResultSchema = ResultSchema.extend({ - /** - * The name of the model that generated the message. - */ - model: z.string(), - /** - * The reason why sampling stopped. - */ - stopReason: z.enum(["endTurn", "stopSequence", "maxTokens"]), - role: z.enum(["user", "assistant"]), - content: z.discriminatedUnion("type", [ - TextContentSchema, - ImageContentSchema, - ]), -}); -/* Autocomplete */ -/** - * A reference to a resource or resource template definition. - */ -export const ResourceReferenceSchema = z - .object({ - type: z.literal("ref/resource"), - /** - * The URI or URI template of the resource. - */ - uri: z.string(), -}) - .passthrough(); -/** - * Identifies a prompt. - */ -export const PromptReferenceSchema = z - .object({ - type: z.literal("ref/prompt"), - /** - * The name of the prompt or prompt template - */ - name: z.string(), -}) - .passthrough(); -/** - * A request from the client to the server, to ask for completion options. - */ -export const CompleteRequestSchema = RequestSchema.extend({ - method: z.literal("completion/complete"), - params: BaseRequestParamsSchema.extend({ - ref: z.union([PromptReferenceSchema, ResourceReferenceSchema]), - /** - * The argument's information - */ - argument: z - .object({ - /** - * The name of the argument - */ - name: z.string(), - /** - * The value of the argument to use for completion matching. - */ - value: z.string(), - }) - .passthrough(), - }), -}); -/** - * The server's response to a completion/complete request - */ -export const CompleteResultSchema = ResultSchema.extend({ - completion: z - .object({ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.array(z.string()).max(100), - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.optional(z.number().int()), - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.optional(z.boolean()), - }) - .passthrough(), -}); -/* Client messages */ -export const ClientRequestSchema = z.union([ - PingRequestSchema, - InitializeRequestSchema, - CompleteRequestSchema, - SetLevelRequestSchema, - GetPromptRequestSchema, - ListPromptsRequestSchema, - ListResourcesRequestSchema, - ReadResourceRequestSchema, - SubscribeRequestSchema, - UnsubscribeRequestSchema, - CallToolRequestSchema, - ListToolsRequestSchema, -]); -export const ClientNotificationSchema = z.union([ - ProgressNotificationSchema, - InitializedNotificationSchema, -]); -export const ClientResultSchema = z.union([ - EmptyResultSchema, - CreateMessageResultSchema, -]); -/* Server messages */ -export const ServerRequestSchema = z.union([ - PingRequestSchema, - CreateMessageRequestSchema, -]); -export const ServerNotificationSchema = z.union([ - ProgressNotificationSchema, - LoggingMessageNotificationSchema, - ResourceUpdatedNotificationSchema, - ResourceListChangedNotificationSchema, - ToolListChangedNotificationSchema, - PromptListChangedNotificationSchema, -]); -export const ServerResultSchema = z.union([ - EmptyResultSchema, - InitializeResultSchema, - CompleteResultSchema, - GetPromptResultSchema, - ListPromptsResultSchema, - ListResourcesResultSchema, - ReadResourceResultSchema, - CallToolResultSchema, - ListToolsResultSchema, -]); -export class McpError extends Error { - constructor(code, message, data) { - super(`MCP error ${code}: ${message}`); - this.code = code; - this.data = data; - } -} -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/types.js.map b/dist/types.js.map deleted file mode 100644 index fba639b89..000000000 --- a/dist/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAE7C,oBAAoB;AACpB,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC;AAErC;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,C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sBAAsB;IACtB,wBAAwB;IACxB,qBAAqB;IACrB,sBAAsB;CACvB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC;IAC9C,0BAA0B;IAC1B,6BAA6B;CAC9B,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC;IACxC,iBAAiB;IACjB,yBAAyB;CAC1B,CAAC,CAAC;AAEH,qBAAqB;AACrB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC;IACzC,iBAAiB;IACjB,0BAA0B;CAC3B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC;IAC9C,0BAA0B;IAC1B,gCAAgC;IAChC,iCAAiC;IACjC,qCAAqC;IACrC,iCAAiC;IACjC,mCAAmC;CACpC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC;IACxC,iBAAiB;IACjB,sBAAsB;IACtB,oBAAoB;IACpB,qBAAqB;IACrB,uBAAuB;IACvB,yBAAyB;IACzB,wBAAwB;IACxB,oBAAoB;IACpB,qBAAqB;CACtB,CAAC,CAAC;AAEH,MAAM,OAAO,QAAS,SAAQ,KAAK;IACjC,YACkB,IAAY,EAC5B,OAAe,EACC,IAAc;QAE9B,KAAK,CAAC,aAAa,IAAI,KAAK,OAAO,EAAE,CAAC,CAAC;QAJvB,SAAI,GAAJ,IAAI,CAAQ;QAEZ,SAAI,GAAJ,IAAI,CAAU;IAGhC,CAAC;CACF"} \ No newline at end of file From 9d8848753ab7cd6e5a2e3f02f009ee3f814ee611 Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Wed, 23 Oct 2024 16:14:12 +0100 Subject: [PATCH 2/4] Add prepack script --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index ed7da209b..f4f33126e 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ ], "scripts": { "build": "tsc", + "prepack": "tsc", "lint": "eslint src/", "test": "jest", "start": "yarn server", From 4ddc18d2e0f7d7574d163e2dd056879a5842b272 Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Wed, 23 Oct 2024 16:18:01 +0100 Subject: [PATCH 3/4] Rename package to @modelcontextprotocol/sdk --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f4f33126e..aa908fb00 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "mcp-typescript", + "name": "@modelcontextprotocol/sdk", "version": "0.1.0", "description": "Model Context Protocol implementation for TypeScript", "private": true, From 98381c0262640696943e60c01b7aaee321b49b0c Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Wed, 23 Oct 2024 16:20:37 +0100 Subject: [PATCH 4/4] Remove private:true --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index aa908fb00..e36d63d06 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,6 @@ "name": "@modelcontextprotocol/sdk", "version": "0.1.0", "description": "Model Context Protocol implementation for TypeScript", - "private": true, "type": "module", "main": "./dist/index.js", "types": "./dist/index.d.ts",