From c969f9fffb1cd76977549fc2be9a100b8debb9c2 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Tue, 29 Jul 2025 14:06:28 +0530 Subject: [PATCH] correct eslint --- core/context/mcp/MCPOauth.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/core/context/mcp/MCPOauth.ts b/core/context/mcp/MCPOauth.ts index ef368ac3a..7455fb246 100644 --- a/core/context/mcp/MCPOauth.ts +++ b/core/context/mcp/MCPOauth.ts @@ -32,7 +32,7 @@ const server = http.createServer((req, res) => { throw new Error("no query params found"); } - handleMCPOauthCode(parsedUrl.query["code"] as string); + void handleMCPOauthCode(parsedUrl.query["code"] as string); const html = ` @@ -164,7 +164,7 @@ class MCPConnectionOauthProvider implements OAuthClientProvider { `Server started for MCP Oauth process at http://localhost:${PORT}/`, ); }); - this.ide.openUrl(authorizationUrl.toString()); + void this.ide.openUrl(authorizationUrl.toString()); } } @@ -201,11 +201,14 @@ export async function handleMCPOauthCode(authorizationCode: string) { const serverUrl = (authenticatingServer.transport as SSEOptions).url; if (!serverUrl) { - ide.showToast("error", "No MCP server url found for authentication"); + void ide.showToast("error", "No MCP server url found for authentication"); return; } if (!authorizationCode) { - ide.showToast("error", `No MCP authorization code found for ${serverUrl}`); + void ide.showToast( + "error", + `No MCP authorization code found for ${serverUrl}`, + ); return; } server.close(() => console.debug("Server for MCP Oauth process was closed"));