character
Character position (0-based)
How to use it
character is exposed by the Rust Analyzer MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the character tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Rust Analyzer MCP
cargo install rust-analyzerOther tools in Rust Analyzer MCP (15)
End character position (0-based)
End line number (0-based)
Path to the Rust file
Line number (0-based)
Get available code actions (quick fixes, refactorings) for a range.
Get code completion suggestions at a specific position.
Find the definition of a symbol at a specific position.
Get diagnostics (errors, warnings, hints) for a specific file.
Format a Rust file using rust-analyzer's formatter. Returns an array of text edits to apply.
Get hover information (documentation, type info) for a symbol at a specific position.
Find all references to a symbol at a specific position.
Change the workspace root directory.
Get all symbols (functions, structs, enums, etc.) in a file.
Get all diagnostics across the entire workspace.
Path to the new workspace root