# AGZ Rust Coder [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/ugur-murat-alt/agz-rust-coder  
**GitHub Stars:** 2  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agz-rust-coder

## Description
Bounded, source-write-free Rust correctness tools grounded in Cargo and rustc output.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/ugur-murat-alt/agz-rust-coder), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
bash install.sh
```

2. Install:

```sh
cargo install agz-rust-mcp --locked
```

3. Start the server:

```sh
agz-rust-mcp --transport http --http-bind 127.0.0.1:8787 \
  --allow-root /absolute/path/to/project
```

## Documentation

## What AGZ Rust Coder does

AGZ Rust Coder exposes Rust development operations through MCP. It works with libraries, command-line programs, services, and multi-package Cargo workspaces. Workspace inspection can identify packages, targets, features, dependencies, manifests, and lockfiles without compiling the project. Source search and bounded, line-numbered reads help an agent gather focused context instead of loading an entire repository.

Compiler-oriented operations use Cargo and rustc output. The server can run checks, Clippy, tests, documentation checks, or a broader validation gate. Tests can be listed, compiled without execution, or run by exact name with selected packages and targets. Cargo binaries and examples can also be launched with literal arguments, bounded output, and a deadline.

Deeper analysis includes exact-version dependency documentation, crate verification through crates.io, API resolution, Rust Analyzer symbol information, definitions, references, implementations, symbols, and bounded call hierarchies. Static audits, feature and toolchain verification, macro or trait explanations, and build-profile analysis are also available.

## How it works

The executable communicates over standard input and output or Streamable HTTP. For HTTP use, it can bind a local endpoint such as `http://127.0.0.1:8787/mcp`. A project directory is supplied as the authorized working root; client-provided roots can narrow that access but cannot broaden it.

Operations are bounded to keep context and execution controlled. Test and application runs still have their normal project side effects, and an empty test selection returns `NO_TESTS` rather than a passing result. Rename and refactor operations produce verified edit packages without applying them to the workspace. Change and repair workflows use server-owned scratch revisions, so proposed changes can be analyzed and validated without writing the project workspace.

Four offline skills are bundled: workflow, repair, refactor, and performance. They are available through MCP tools, prompts, and resources, and can optionally be exported to a directory for clients that support filesystem skills.

## Setup and configuration

Install the `agz-rust-mcp` binary with Cargo using Rust 1.91.0 or newer, or use a release archive for Linux x86_64, macOS arm64, or Windows x86_64. Start it with the absolute project path when the client does not launch in that directory. Local stdio clients use the installed executable as their MCP command.

For HTTP clients, start the binary with `--transport http`, a bind address and port, and the project root. The HTTP listener is configured for loopback use in the documented example. The default full tool catalog can be reduced with `--toolset core`, which keeps `workspace`, `check`, `test`, `run`, `docs`, and `crate_lookup`. Individual tools can also be disabled with `--tools-<name> false` switches.

The optional environment setting `AGZ_RUST_MCP_SERVER__TOOLSET` selects a toolset in client configuration. The server does not depend on client-specific display prefixes, configuration paths, or prompt-selection behavior.

## Tools and capabilities

- `workspace`: inspect Cargo metadata, search and read source, and access bundled skills.
- `check`: run bounded Cargo checks, Clippy, tests, docs, or the full gate.
- `test` and `run`: select tests or execute Cargo binaries and examples.
- `docs`, `crate_lookup`, and `api`: investigate dependency versions and Rust APIs.
- `symbol`, `references`, `definition`, `symbols`, `implementations`, and `hierarchy`: query Rust Analyzer evidence.
- `audit`, `profile`, `verify`, and `explain`: inspect source findings, rebuild evidence, validation matrices, and compiler-related behavior.
- `rename`, `refactor`, `change`, and `repair`: prepare or validate controlled, non-applied edits and repair candidates.

## Limitations and notes

The server does not apply rename or refactor packages to the workspace. Execution tools can run project code and therefore retain ordinary program and test side effects. The active project path and its authorized-root rules determine which files and Cargo operations are available. Exact dependency documentation and analyzer results depend on the versions and evidence available to the project.

_Full upstream README: https://allmcps.com/mcp/agz-rust-coder/readme_

