Skip to content

Commit 0734b33

Browse files
committed
Strongly typed handlemessage
Signed-off-by: Marcos Candeia <[email protected]>
1 parent c6def34 commit 0734b33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class HttpServerTransport extends StreamableHTTPServerTransport {
1919
});
2020
}
2121

22-
async handleMessage(req: Request) {
22+
async handleMessage(req: Request): Promise<Response> {
2323
const { req: nodeReq, res } = toReqRes(req);
2424
await super.handleRequest(nodeReq, res, await req.json());
2525
return toFetchResponse(res);

0 commit comments

Comments
 (0)