@n8n/n8n-nodes-langchain
Version:
30 lines • 1.51 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.McpOAuth2Api = void 0;
class McpOAuth2Api {
constructor() {
this.name = 'mcpOAuth2Api';
this.extends = ['oAuth2Api'];
this.displayName = 'MCP OAuth2 API';
this.documentationUrl = 'mcp';
this.properties = [
{
displayName: 'Register Client Automatically',
name: 'useDynamicClientRegistration',
type: 'boolean',
default: true,
description: "When on, n8n identifies itself automatically: it uses a Client ID Metadata Document (CIMD) when the server supports CIMD, S256 PKCE, and public clients, and your instance has CIMD enabled; otherwise it uses Dynamic Client Registration (DCR). CIMD does not send a registration request. Turn it off if the provider gives you a fixed client ID and secret, requires you to register a redirect URL, or doesn't support automatic registration.",
},
{
displayName: 'Resource URL',
name: 'resourceUrl',
type: 'string',
typeOptions: { url: true },
default: '',
description: "Optional. The exact protected resource URL required by the MCP server. Leave empty to use the server's default, discovered automatically.",
},
];
}
}
exports.McpOAuth2Api = McpOAuth2Api;
//# sourceMappingURL=McpOAuth2Api.credentials.js.map