*/ public function get_config_snippet( string $server_url, string $auth_token ): array { return array( 'context_servers' => array( $this->derive_server_key( $server_url ) => array( 'source' => 'custom', 'enabled' => true, '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 __( 'Zed — high-performance code editor', 'acrossai-mcp-manager' ); } /** * {@inheritDoc} */ public function get_config_file(): string { return '~/.config/zed/settings.json'; } /** * {@inheritDoc} * * Zed uses an XDG-style `~/.config/zed/` directory on BOTH macOS and Linux, * which is unusual enough to be worth stating rather than leaving the * single old value to imply macOS only. * * NO `windows` key. Zed's docs (checked 2026-10-07) document extension and * data directories per OS but never state where `settings.json` lives on * Windows. Rather than infer `%APPDATA%\\Zed\\settings.json` from the * neighbouring paths and present a guess as fact, the row is omitted until * someone can cite it — same rule applied to Claude Desktop's absent Linux * path. * * @since 0.3.9 * @return array */ public function get_config_files(): array { return array( 'macos' => '~/.config/zed/settings.json', 'linux' => '~/.config/zed/settings.json', ); } /** * {@inheritDoc} */ public function get_top_level_key(): string { return 'context_servers'; } /** * {@inheritDoc} */ public function get_instructions(): string { return __( 'Generate a password → copy the JSON → open ~/.config/zed/settings.json → merge under context_servers → restart Zed.', 'acrossai-mcp-manager' ); } /** * {@inheritDoc} */ public function get_priority(): int { return 73; } }