Angreal MCP Server
An MCP (Model Context Protocol) server that provides AI assistants with discovery capabilities for angreal projects.
Overview
This server exposes angreal's command tree structure to MCP-compatible clients, enabling AI assistants to:
- Discover available commands and tasks in your angreal project
- Understand project structure and capabilities
- Execute commands with context-aware parameter selection
- Check angreal installation and project status
Prerequisites
- angreal must be installed and available in your PATH
- Rust toolchain (for building from source)
Installation
# Install from crates.io
# Or install from git (latest development version)
Usage
With Claude Desktop
Add to your Claude Desktop configuration:
With Cline (VS Code)
Add to your Cline configuration:
Command Line Testing
You can test the MCP server directly via command line:
# List available tools
|
# Get angreal command tree
|
Available Tools
angreal_check
Check if the current directory is an angreal project and get project status including available commands.
When to use:
- Starting work in a new directory to understand if angreal is available
- Troubleshooting angreal-related issues
- Getting an overview of project capabilities before using other tools
Returns: Comprehensive status including installation status, project detection, and available commands
angreal_tree
Get a structured view of all available angreal commands and tasks in the project.
When to use:
- Discovering what commands are available in an angreal project
- Understanding project structure before executing tasks
- Planning automation workflows
Parameters:
format(optional): Output format -"json"for structured data (default) or"human"for readable tree display
Returns: Structured list of available commands, tasks, and their descriptions
angreal_run
Execute an angreal command or task with optional arguments.
When to use:
- Running discovered angreal commands and tasks
- Automating project workflows
- Executing build, test, or deployment tasks
Parameters:
command(required): The angreal command/task to executeargs(optional): Additional arguments, options, and flags as an array
Returns: Command output including both stdout and stderr for complete results
Agent Usage Guide
When working in angreal projects, use these tools for intelligent command discovery and execution:
Tool Usage Workflow
- Start with discovery: Use
angreal_checkto verify project status and capabilities - Explore commands: Use
angreal_treeto see available commands with rich metadata - Execute intelligently: Use
angreal_runwith context-aware parameter selection
Best Practices
- Always discover available commands with
angreal_treebefore executing - Verify you're in an angreal project directory with
angreal_check - Execute commands individually rather than chaining complex operations
- Each argument should be a separate array element for proper shell safety
Common Patterns
# Check project status
# Discover available commands
# Run a test command
# Run with arguments
Troubleshooting
- If MCP server becomes unavailable, restart your MCP client to reinitialize
- Check that angreal binary is installed and accessible in PATH
- Verify you're in an angreal project directory (contains .angreal/ folder)
- Use
angreal_checkfirst to diagnose issues
Development
Project Structure
angreal-mcp/
├── src/
│ ├── main.rs # Main server entry point
│ ├── server.rs # MCP server implementation
│ └── tools/ # Tool implementations
│ ├── mod.rs
│ ├── angreal_command_tool.rs
│ └── dynamic_tools.rs
├── Cargo.toml
└── README.md
Building
# Debug build
# Release build
# Run directly
Testing
# Run tests
# Run with logging
RUST_LOG=debug
License
This project is licensed under MIT.