Skip to content

Commit 6376427

Browse files
committed
Silence the CJS error
1 parent 8b4e772 commit 6376427

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/vscode-inproc-mcp/src/vscode/inProcHttpServer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ async function handlePost(mcpOptions: McpProviderOptions, req: express.Request,
120120
}
121121
);
122122

123+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
124+
// @ts-ignore MCP SDK contains a bug where this type mismatches between CJS and ESM, we must ignore it. We also can't do @ts-expect-error because the error only happens when building CJS.
123125
await Promise.resolve(mcpOptions.registerTools(server));
124126

125127
await server.connect(transport);

0 commit comments

Comments
 (0)