function oauthFlowFigure(host) {
ensureStyles();
var shell = document.createElement('div');
shell.className = 'mf-shell';
var svg = [
''
].join('');
shell.innerHTML = [
'
Authorizing an MCP Request a 401, a round trip to the authorization server, then a bearer-authenticated retry
',
'
',
svg,
'
',
'
Rejection happens at the HTTP layer with no JSON-RPC body. The middle lane resolves entirely outside the MCP wire: Protected Resource Metadata, authorization server metadata, PKCE, and an iss check the client applies itself. Only the retried tools/call, now carrying a bearer token whose audience matches this server, reaches the tool.