: { ... } } }` per the VS Code * MCP extension's configuration spec. */ final class VSCodeClient extends AbstractMCPClient { /** * {@inheritDoc} */ public function get_client_slug(): string { return 'vscode'; } /** * {@inheritDoc} */ public function get_client_name(): string { return 'VS Code'; } /** * {@inheritDoc} * * @param string $server_url Already-sanitised server URL. * @param string $auth_token Already-issued Application Password (may be empty). * * @return array */ public function get_config_snippet( string $server_url, string $auth_token ): array { return array( 'servers' => array( $this->derive_server_key( $server_url ) => array( 'command' => 'npx', 'args' => array( '-y', '@automattic/mcp-wordpress-remote@latest' ), 'env' => array( 'WP_API_URL' => $server_url, 'WP_API_USERNAME' => $this->current_username(), 'WP_API_PASSWORD' => $this->safe_token( $auth_token ), ), ), ), ); } }