# agileplus-mcp-intent justfile

set dotenv-load

# Default recipe: show available commands
default:
    @just --list

# Run the HTTP server
run:
    cargo run -p agileplus-mcp-intent

# Run with a custom address
run-addr addr="0.0.0.0:8080":
    MCP_INTENT_ADDR={{addr}} cargo run -p agileplus-mcp-intent

# Run tests
test:
    cargo test -p agileplus-mcp-intent

# Run all workspace tests
test-all:
    cargo test --workspace

# Lint and format check
lint:
    cargo fmt -- --check
    cargo clippy -p agileplus-mcp-intent -- -D warnings

# Format code
fmt:
    cargo fmt -p agileplus-mcp-intent

# Build release
build:
    cargo build -p agileplus-mcp-intent --release

# Clean build artifacts
clean:
    cargo clean -p agileplus-mcp-intent
