import React from 'react';
import { Notice } from './McpUi';
import CopyButton from './CopyButton';
import { t } from './api';
type Props = {
status: any;
};
/**
* Section 2: Connector URL and reachability notes.
*/
const McpConnector = ( { status }: Props ) => (
{ t( 'mcp-connector-url', 'Connector URL' ) }
{ t( 'mcp-connector-url-desc', 'Paste this exact URL into your AI client. Do not add a trailing slash.' ) }
e.target.select() } />
{ status.local_site && (
{ t( 'mcp-local-warning', 'This is a local or private address. Cloud connectors (Claude.ai, ChatGPT) cannot reach it. Claude Code, Claude Desktop, Codex, Cursor and VS Code on this computer can. For cloud connectors use a public HTTPS site or a tunnel.' ) }
) }
{ ! status.https && ! status.local_site && (
{ t( 'mcp-https-warning', 'This site does not use HTTPS. AI clients and Application Passwords require HTTPS.' ) }
) }
{ status.scheme_mismatch && (
{ t( 'mcp-scheme-warning', 'The WordPress Address and Site Address use different schemes (http/https). Use HTTPS for both.' ) }
) }