Kong/insomnia · error
MCP Connection aborted
Error message
MCP Connection aborted
What it means
Error "MCP Connection aborted" thrown in Kong/insomnia.
Source
Thrown at packages/insomnia/src/main/mcp/oauth-client-provider.ts:171
tokenPrefix: tokens.token_type,
});
}
// add state parameter to authorization url if present in authentication
async state() {
if ('state' in this.authentication && this.authentication.state) {
return this.authentication.state;
}
return '';
}
saveResourceMetadataUrl(url: URL | undefined) {
this._resourceMetadataUrl = url;
}
get resourceMetadataUrl() {
return this._resourceMetadataUrl;
}
async redirectToAuthorization(authorizationUrl: URL) {
if (this.context.abortController.signal.aborted) {
throw new Error('MCP Connection aborted');
}
const { relayUrl, decryptOAuthResult } = encryptOAuthUrl(authorizationUrl.toString());
BrowserWindow.getAllWindows().forEach(window => {
window.webContents.send('show-oauth-authorization-modal', relayUrl);
});
const shouldOpenDefaultBrowser =
'grantType' in this.authentication && this.authentication.grantType === 'mcp_auth_flow'
? !this.authentication.launchBrowserManually
: true;
const redirectedResult = await authorizeUserInDefaultBrowser({
url: relayUrl,
openDefaultBrowser: shouldOpenDefaultBrowser,
});
const redirectedTo = decryptOAuthResult(redirectedResult);
const redirectParams = Object.fromEntries(new URL(redirectedTo).searchParams);
const { code: authorizationCode, error, error_description, error_uri } = redirectParams;
if (error) {
throw new Error(JSON.stringify({ error, error_description, error_uri }));View on GitHub (pinned to d9bb2b0142)
When it happens
Trigger: Thrown at packages/insomnia/src/main/mcp/oauth-client-provider.ts:171 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Connection failures: ECONNREFUSED, ECONNRESET, and friends — why connections get refused, reset, or dropped.
AI-assisted analysis of Kong/insomnia@d9bb2b0142 (2026-08-26).
Data as JSON: /api/errors/64c8c3939505a859.
Report an issue: GitHub.