Skip to content

Commit d8c62e6

Browse files
committed
fix: return promise from startSseServer
1 parent 07d05ca commit d8c62e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ import { startSseServer } from "mcp-proxy";
5959

6060
const server = new Server();
6161

62-
const { close } = startSseServer({
62+
const { close } = await startSseServer({
6363
port: 8080,
6464
endpoint: "/sse",
6565
server,

src/MCPProxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ const startSending = async (transport: SSEServerTransport) => {
211211
}
212212
};
213213

214-
export const startSseServer = ({
214+
export const startSseServer = async ({
215215
port,
216216
server,
217217
endpoint,

0 commit comments

Comments
 (0)