Files
planilla/mcp/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.d.ts
josedario87 b5e40cf4ac
All checks were successful
build-and-push / build (push) Successful in 17s
build-and-push / deploy (push) Successful in 19s
se supone que mcp server up
2025-05-02 19:33:50 -06:00

31 lines
1.1 KiB
TypeScript

import { Transport } from "./shared/transport.js";
import { JSONRPCMessage, RequestId } from "./types.js";
import { AuthInfo } from "./server/auth/types.js";
/**
* In-memory transport for creating clients and servers that talk to each other within the same process.
*/
export declare class InMemoryTransport implements Transport {
private _otherTransport?;
private _messageQueue;
onclose?: () => void;
onerror?: (error: Error) => void;
onmessage?: (message: JSONRPCMessage, extra?: {
authInfo?: AuthInfo;
}) => void;
sessionId?: string;
/**
* Creates a pair of linked in-memory transports that can communicate with each other. One should be passed to a Client and one to a Server.
*/
static createLinkedPair(): [InMemoryTransport, InMemoryTransport];
start(): Promise<void>;
close(): Promise<void>;
/**
* Sends a message with optional auth info.
* This is useful for testing authentication scenarios.
*/
send(message: JSONRPCMessage, options?: {
relatedRequestId?: RequestId;
authInfo?: AuthInfo;
}): Promise<void>;
}
//# sourceMappingURL=inMemory.d.ts.map