{"record":{"id":"8399506fc8b2cb07","repo":"n8n-io/n8n","slug":"no-mcp-oauth2-credential-type-found","errorCode":null,"errorMessage":"No MCP OAuth2 credential type found","messagePattern":"No MCP OAuth2 credential type found","errorType":"exception","errorClass":"NodeOperationError","httpStatus":null,"severity":"error","filePath":"packages/@n8n/nodes-langchain/nodes/mcp/McpRegistryClientTool/McpRegistryClientTool.node.ts","lineNumber":206,"sourceCode":"\t\t\tmode: ctx.getNodeParameter('include', itemIndex) as McpToolIncludeMode,\n\t\t\tincludeTools: ctx.getNodeParameter('includeTools', itemIndex, []) as string[],\n\t\t\texcludeTools: ctx.getNodeParameter('excludeTools', itemIndex, []) as string[],\n\t\t},\n\t};\n}\n\nfunction getCredentialType(\n\tctx: Pick<ILoadOptionsFunctions | ISupplyDataFunctions | IExecuteFunctions, 'getNode'>,\n): McpAuthenticationOption {\n\tconst node = ctx.getNode();\n\tconst credentials = node.credentials ?? {};\n\tconst credentialType = Object.keys(credentials).find(\n\t\t// for now we support only OAuth2\n\t\t(credentialType) => isMcpOAuth2Authentication(credentialType),\n\t);\n\n\tif (!credentialType) {\n\t\tthrow new NodeOperationError(node, 'No MCP OAuth2 credential type found');\n\t}\n\n\treturn credentialType;\n}\n","sourceCodeStart":188,"sourceCodeEnd":211,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/nodes-langchain/nodes/mcp/McpRegistryClientTool/McpRegistryClientTool.node.ts#L188-L211","documentation":"Error \"No MCP OAuth2 credential type found\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/nodes-langchain/nodes/mcp/McpRegistryClientTool/McpRegistryClientTool.node.ts:206 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}