' . esc_html__( 'Connect your AI', 'admindra-mcp' ) . '
';
echo '' . esc_html__( 'No client secret and no WordPress password: you sign in as an administrator and approve a consent screen that names the assistant.', 'admindra-mcp' ) . '
';
echo '';
echo '';
echo '
' . esc_html__( 'Claude (claude.ai, desktop and mobile)', 'admindra-mcp' ) . '
';
echo '- ' . esc_html__( 'Settings → Connectors → Add custom connector.', 'admindra-mcp' ) . '
';
echo '- ' . esc_html__( 'Paste the MCP URL. Leave the OAuth client ID and secret under Advanced settings empty.', 'admindra-mcp' ) . '
';
echo '- ' . esc_html__( 'Connect, sign in to WordPress and approve. Then ask for the site status.', 'admindra-mcp' ) . '
';
echo '
' . esc_html__( 'Claude Code (terminal)', 'admindra-mcp' ) . '
';
echo '';
echo '' . esc_html__( 'Then run /mcp in Claude Code and choose Authenticate. The browser opens the WordPress sign-in and consent screen.', 'admindra-mcp' ) . '
';
echo '
' . esc_html__( 'ChatGPT', 'admindra-mcp' ) . '
';
echo '- ' . esc_html__( 'Add a custom MCP connector, paste the MCP URL and choose OAuth.', 'admindra-mcp' ) . '
';
echo '- ' . esc_html__( 'Sign in to WordPress as an administrator and approve.', 'admindra-mcp' ) . '
';
AdMindra_MCP_Key::panel();
echo '
';
echo '' . esc_html__( 'To disconnect Claude or ChatGPT, delete its entry under Users → Profile → Application Passwords. Its access ends at once.', 'admindra-mcp' ) . '
';
}
/**
* What only a few sites need: a ChatGPT client URL and the discovery checks.
*/
public static function advanced() {
echo '' . esc_html__( 'Advanced', 'admindra-mcp' ) . '
';
echo '' . esc_html__( 'OAuth discovery', 'admindra-mcp' ) . '
';
foreach ( array( 'oauth-protected-resource', 'oauth-authorization-server' ) as $doc ) {
echo '' . esc_html( $doc ) . ' ';
}
echo '
' . esc_html__( 'Both must show JSON, not a login page or a 404. If they do not, save your permalinks again and exclude /.well-known/ and /wp-json/mcp/ from page caches.', 'admindra-mcp' ) . '
';
echo '' . esc_html__( 'ChatGPT client URL (only if ChatGPT shows one)', 'admindra-mcp' ) . '
';
echo '' . esc_html__( 'ChatGPT\'s standard client and Claude are trusted already. If ChatGPT shows a connection-specific client metadata URL, paste that exact URL here and reconnect.', 'admindra-mcp' ) . '
';
echo ' ';
}
}