%s %s
', esc_html__( 'ThinkRank MCP: AI assistants will connect but see no tools.', 'thinkrank' ), esc_html__( 'MCP access is enabled, but the bundled Abilities runtime (dependencies/vendor) is missing from this installation — usually a plugin package built without it. Reinstall ThinkRank from wordpress.org or an official build; until then, connected AI clients get an empty tool list.', 'thinkrank' ) ); } /** * Whether the MCP integration is enabled via the admin setting. * * @return bool */ public static function is_enabled(): bool { return (bool) Settings::instance()->get( 'enable_mcp', false ); } // -- Pretty endpoint: /thinkrank/mcp -- /** * Register rewrite rules for the MCP endpoint, OAuth discovery documents, * and the browser-facing authorize page. * * @return void */ public function add_rewrite(): void { // Token-in-URL form: /thinkrank/mcp/' . $sub . '
'; // phpcs:ignore WordPress.Security.EscapeOutput -- static translation; client name esc_html'd. echo '' . $lock . '' . esc_html__( 'Secured with OAuth. Revoke anytime in ThinkRank → MCP.', 'thinkrank' ) . '
'; // phpcs:ignore WordPress.Security.EscapeOutput -- static icon; text esc_html'd. echo '' . esc_html( $message ) . '