DynamicClientRegistrar handles Dynamic Client Registration with OAuth servers
Register a new OAuth client with the authorization server
DCR registration endpoint URL
Registration options (client name, redirect URI)
Client credentials (client ID and secret)
Error if registration fails or server returns error
const registrar = new DynamicClientRegistrar();const creds = await registrar.registerClient( 'https://example.com/oauth/register', { clientName: '@mcp-z/client', redirectUri: 'http://localhost:3000/callback' });console.log('Client ID:', creds.clientId); Copy
const registrar = new DynamicClientRegistrar();const creds = await registrar.registerClient( 'https://example.com/oauth/register', { clientName: '@mcp-z/client', redirectUri: 'http://localhost:3000/callback' });console.log('Client ID:', creds.clientId);
DynamicClientRegistrar handles Dynamic Client Registration with OAuth servers