### Install chess-esca-mcp plugin for Claude Code Source: https://github.com/anglerfishchess/esca/blob/main/mcp/README.md Install the chess-esca-mcp plugin for Claude Code. Run these commands in the Claude Code CLI to add the plugin marketplace and install the chess-esca-mcp plugin. ```text /plugin marketplace add AnglerfishChess/plugins /plugin install chess-esca-mcp@anglerfish-chess ``` -------------------------------- ### Clone and Set Up Development Environment Source: https://github.com/anglerfishchess/esca/blob/main/mcp/README.md Commands to clone the esca repository, navigate to the mcp directory, sync dependencies with all groups, run tests, and perform linting and type checking. The uv sync command builds the esca extension from the parent directory and installs it locally. ```bash git clone https://github.com/AnglerfishChess/esca.git cd esca/mcp uv sync --all-groups # builds the esca extension from ../ and installs it here uv run --no-sync pytest uvx ruff check . && uvx ruff format --check . && uvx pyrefly check ``` -------------------------------- ### Install esca with pip Source: https://github.com/anglerfishchess/esca/blob/main/README.md Installs the esca package. Wheels are abi3 for Python 3.12 and up. Use `pip install esca[tensors]` to add NumPy and the `esca.tensors` module. ```sh pip install esca ``` -------------------------------- ### Basic esca usage: create game, play moves, get facts Source: https://github.com/anglerfishchess/esca/blob/main/README.md Creates a game (optionally Chess960), plays moves in SAN and coordinate notation, prints the FEN, and retrieves facts about the position. The `facts.to_dict()` method returns a JSON-serializable dictionary. ```python import esca game = esca.Game() # Chess960 rules: esca.Game(variant=esca.CHESS960) game.play_san("e4") game.play("e7e5") print(game.position.fen) facts = game.facts() print(facts.tactics.legal_move_count.white) print(list(facts.pawns.passed.black.files)) print(facts.to_dict()["material"]) # every group in the one JSON form ``` -------------------------------- ### Configure chess-esca-mcp in MCP client Source: https://github.com/anglerfishchess/esca/blob/main/mcp/README.md Configure the chess-esca-mcp server in an MCP client's configuration file. The server is launched via uvx with the package chess-esca-mcp@latest. This JSON block is placed under the mcpServers key in the client's config file (e.g., claude_desktop_config.json). ```json "mcpServers": { "chess-esca-mcp": { "command": "uvx", "args": ["chess-esca-mcp@latest"] } } ``` -------------------------------- ### Play moves and inspect facts with esca Source: https://github.com/anglerfishchess/esca/blob/main/README.md Creates a Game with the classic variant, plays moves by SAN and UCI, prints the FEN, and accesses facts about the position. The comment notes that Chess960 rules use esca::chess960() instead. ```rust use esca::{Colour, Game, classic}; let mut game = Game::new(classic()); // Chess960 rules: `esca::chess960()` game.play_san("e4").unwrap(); game.play_uci("e7e5").unwrap(); println!("{}", game.position().fen()); let facts = game.facts(); println!("{}", facts.tactics.legal_move_count.white); println!("{:?}", facts.pawns.passed.of(Colour::Black).files()); println!("{}", facts.summary()); ``` -------------------------------- ### Add esca dependency in Cargo.toml Source: https://github.com/anglerfishchess/esca/blob/main/README.md Adds the esca crate as a dependency in a Cargo.toml file. The version is 0.4 and no features are enabled by default. ```toml [dependencies] esca = "0.4" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.