*/ public function get_config_snippet( string $server_url, string $auth_token ): array { return array( 'mcpServers' => array( $this->derive_server_key( $server_url ) => array( 'command' => 'npx', 'args' => array( '-y', '@automattic/mcp-wordpress-remote@latest' ), 'env' => $this->build_env( $server_url, $auth_token ), ), ), ); } /** * {@inheritDoc} */ public function get_icon(): string { return '💎'; } /** * {@inheritDoc} */ public function get_description(): string { return __( 'Google Gemini CLI', 'acrossai-mcp-manager' ); } /** * {@inheritDoc} */ public function get_config_file(): string { return '~/.gemini/settings.json'; } /** * {@inheritDoc} * * Gemini CLI's user settings file. Home-relative on every platform: the client resolves `~` itself, but `~` * is unix shorthand a Windows user cannot paste into Explorer, so the * Windows row spells out `%USERPROFILE%` with backslashes (issue #159). * Linux uses the same location as macOS. * * @since 0.3.9 * @return array */ public function get_config_files(): array { return array( 'macos' => '~/.gemini/settings.json', 'windows' => '%USERPROFILE%\\.gemini\\settings.json', 'linux' => '~/.gemini/settings.json', ); } /** * {@inheritDoc} */ public function get_top_level_key(): string { return 'mcpServers'; } /** * {@inheritDoc} */ public function get_instructions(): string { return __( 'Generate a password → copy the JSON → open ~/.gemini/settings.json (create it if missing) → paste under mcpServers → restart Gemini CLI.', 'acrossai-mcp-manager' ); } /** * {@inheritDoc} */ public function get_priority(): int { return 70; } }