# adrianczuczka/mason [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/adrianczuczka/mason  
**GitHub Stars:** 11  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/adrianczuczka-mason

## Description
Context engineering MCP server. Generates CLAUDE.md from git history and architectural file sampling, and maintains a concept-map snapshot of features/flows → files so agents can skip grep/glob on repeat queries.

## Tools
Capabilities this server exposes over MCP:

- **mason_init** — Start here.** Returns the Map-Reduce setup playbook. Idempotent.
- **mason_complete_init** — Marks the project as initialized once the playbook is done.
- **generate_snapshot_batch** — Map step — returns one batch of files for the assistant to summarize.
- **save_partial_snapshot** — Persists the partial map for one batch.
- **reduce_snapshot** — Reduce step — returns every partial + instructions to merge into a unified map.
- **save_snapshot** — Persist the final unified map. Clears partials.
- **mason_set_confluence** — Configure Confluence credentials — two-step: list spaces, then persist.
- **export_to_confluence** — Sync the concept map to Confluence as PM-readable wiki pages.
- **get_snapshot** — First call for any architecture question.** Loads the concept map — feature → file lookup — in one LLM-free call.
- **get_context** — First call for any task or bug.** Matching features + files + tests + blast radius + freshness + recorded decisions, in one call.
- **save_decision** — Record knowledge the code can't express — failed approaches, deprecations, conventions. Git-committed, PR-reviewed, drift-checked.
- **mason_check_drift** — Feature-level staleness report — what changed since the snapshot, and whether to refresh incrementally or rebuild.
- **verify_snapshot** — Spot-check map correctness — sampled entries + file skeletons for the assistant to judge, least-recently-verified first.
- **save_verification** — Record verification verdicts — failures flag entries for re-mapping until fixed.
- **get_impact** — Call before editing a file.** Traces what's affected — co-change history + references + related tests.
- **analyze_project** — Git stats — hot files, stale dirs, commit conventions.
- **full_analysis** — One-shot orientation for unmapped projects: structure + samples + tests + git.
- **get_code_samples** — Smart file previews selected by architectural role.

## 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/adrianczuczka/mason), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
curl -fsSL https://github.com/adrianczuczka/mason/releases/latest/download/install.sh | sh
```

2. Install:

```sh
irm https://github.com/adrianczuczka/mason/releases/latest/download/install.ps1 | iex
```

3. Configure:

```sh
mason init --host codex    # Maintainer: prepare shared configuration for review/commit
```

4. Add to your MCP client:

```sh
mason setup --host codex   # Each developer: activate locally
```

## Documentation

## What adrianczuczka/mason does

adrianczuczka/mason gives coding agents a maintained view of how a Git repository is organized and why important implementation choices were made. It builds a concept map that relates features and flows to files, allowing later architecture questions to use a direct lookup instead of repeating broad grep or glob searches.

The server also stores decisions that are difficult to infer from source code, including rejected approaches, workarounds, deprecations, and project conventions. These records are committed with the repository, reviewed through normal pull requests, and checked against later code changes. An optional Confluence connection can publish the concept map as wiki pages for project and product readers.

## How it works

Initialization follows a Map-Reduce workflow. Mason supplies batches of files for an assistant to summarize, accepts partial maps for those batches, then returns the collected partial results with instructions for producing a unified map. The completed map is persisted for future lookups, while saving the final result removes the intermediate batch data.

For an architecture question, `get_snapshot` loads the feature-to-file map without an additional model call. For a task or bug, `get_context` combines matching features and files with tests, likely blast radius, freshness information, and recorded decisions. Before changing a file, `get_impact` adds co-change history, references, and related tests. Drift checks identify affected map entries after repository changes and indicate whether incremental refresh or a rebuild is appropriate.

## Setup and configuration

Install the standalone distribution with the shell installer on macOS or Linux:

```sh
curl -fsSL https://github.com/adrianczuczka/mason/releases/latest/download/install.sh | sh
```

Windows users can run the PowerShell installer:

```powershell
irm https://github.com/adrianczuczka/mason/releases/latest/download/install.ps1 | iex
```

Git is required, and the installer does not require Node or npm. In a repository, initialize shared configuration and then activate it locally:

```bash
mason init --host codex
mason setup --host codex
```

Use `--host claude` for Claude Code. `mason_init` and `mason_complete_init` provide the corresponding MCP initialization workflow. Confluence publishing is configured through `mason_set_confluence`, which first lists available spaces before credentials and settings are saved.

## Tools and capabilities

- Analyze repository structure, Git statistics, hot files, stale directories, and commit conventions.
- Produce architecture-oriented file samples and a full first-pass analysis for unmapped projects.
- Create, update, query, and verify feature-to-file snapshots.
- Retrieve task context, architecture context, impact information, tests, and related files.
- Save decisions and retain their reviewable history with the project.
- Export the concept map to Confluence pages.

## Limitations and notes

Mason complements tests, linters, and code review rather than replacing them. Its findings are evidence for an agent or developer to inspect. Snapshot quality depends on the assistant summarizing the supplied file batches, so `verify_snapshot` and `save_verification` provide a way to spot-check entries and flag failed checks for remapping. The repository describes evaluation improvements for decision retrieval, while broader patch-quality gains remain unestablished.

_Full upstream README: https://allmcps.com/mcp/adrianczuczka-mason/readme_

