'; printf( '

%s

', esc_html__( 'MCP Tools', 'acrossai-mcp-manager' ) ); if ( ! $enabled ) { printf( '

%1$s %2$s

', esc_html__( 'Server is disabled.', 'acrossai-mcp-manager' ), esc_html__( 'Enable the server on the Overview tab to make these tools available to MCP clients. You can still curate the tool set below — your selection will take effect the moment the server is enabled.', 'acrossai-mcp-manager' ) ); // Fall through — the picker is still editable while the server is // disabled so the operator can prepare the tool set in advance. } // The add-on promo that used to sit here is gone. It appeared on every // server whatever its type, said nothing specific to the screen it was // on, and stacked above the notices that DO carry information. // // This is what replaced it: the same notice the Overview tab shows, so // the tab displaying the tools that are not being served explains why // and offers the fix, instead of the bare sentence it used to render // from JavaScript. `current_tab` drops the "Change the server type" // button here, because that control is already on this page. TypeRequirementNotice::instance()->render( $server, 'tools' ); if ( ! function_exists( 'wp_get_abilities' ) ) { printf( '

%1$s %2$s

', esc_html__( 'WordPress Abilities API unavailable.', 'acrossai-mcp-manager' ), esc_html__( 'The Tools tab requires the WordPress Abilities API. Install or enable a plugin that provides it (e.g. the AcrossAI Core Abilities plugin).', 'acrossai-mcp-manager' ) ); echo ''; return; } printf( '

%3$s

', (int) $server['id'], esc_attr( (string) ( $server['server_slug'] ?? '' ) ), esc_html__( 'Loading tools…', 'acrossai-mcp-manager' ) ); echo ''; } }