*/ 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, array( 'OAUTH_ENABLED' => 'false' ) ), ), ), ); } /** * {@inheritDoc} */ public function get_icon(): string { return '📄'; } /** * {@inheritDoc} */ public function get_description(): string { return __( 'Anthropic Claude Code CLI', 'acrossai-mcp-manager' ); } /** * {@inheritDoc} */ public function get_config_file(): string { return '~/.claude.json'; } /** * {@inheritDoc} * * A single dotfile in the home directory. 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' => '~/.claude.json', 'windows' => '%USERPROFILE%\\.claude.json', 'linux' => '~/.claude.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 the config file path above → paste under the top-level key → restart Claude Code.', 'acrossai-mcp-manager' ); } /** * {@inheritDoc} */ public function get_priority(): int { return 20; } }