We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73c66f4 commit 87ae7ffCopy full SHA for 87ae7ff
src/shared/transport.ts
@@ -4,6 +4,13 @@ import { JSONRPCMessage } from "../types.js";
4
* Describes the minimal contract for a MCP transport that a client or server can communicate over.
5
*/
6
export interface Transport {
7
+ /**
8
+ * Starts processing messages on the transport, including any connection steps that might need to be taken.
9
+ *
10
+ * This method should only be called after callbacks are installed, or else messages may be lost.
11
+ */
12
+ start(): Promise<void>;
13
+
14
/**
15
* Sends a JSON-RPC message (request or response).
16
0 commit comments