Steadfast Repository Governance MCP Server
README.md
<!-- mcp-name: io.github.rllibo833-sudo/steadfast-governance -->
# Steadfast
**Repository checks and guardrails for coding agents.**
[](https://mcprush.com/to/steadfast-repository-governance-mcp?ref=badge)
Steadfast is a local-first CLI that helps developers and AI agents inspect repository health, enforce change scope, verify evidence, and spot documentation drift. It does not generate code, require an AI API key, or send repository contents to a Steadfast-hosted service.
## Install the agent skills (without installing the Python CLI)
Steadfast's five reusable skills can be installed directly from this public GitHub repository with the open-source Skills CLI. This is the lightest way to try Steadfast in a supported coding agent:
```bash
npx skills add rllibo833-sudo/Steadfast
```
Choose the skill(s) you want when prompted. To install one specific skill, for example:
```bash
npx skills add rllibo833-sudo/Steadfast --skill repo-audit
```
Available skills: `repo-audit`, `scope-guard`, `evidence-check`, `doc-sync`, and `release-readiness`. Browse the source in [skills/](skills/).
**Important:** these files provide agent instructions; they do not install or run the Steadfast CLI checks. For executable repository checks, use the Python installation below. Skills are intended to be reviewed before use, especially when granting an agent access to files or shell tools.
## Use Steadfast in GitHub Actions
To run Steadfast checks automatically on another repository's pull requests, use the reusable composite action in [`kits/github-action`](kits/github-action/README.md). After reviewing and configuring Steadfast in the target repository, add this step after `actions/checkout`:
```yaml
- uses: rllibo833-sudo/Steadfast/kits/github-action@main
with:
python-version: "3.11"
package-version: "0.4.1"
```
It runs `steadfast verify` and uploads a JSON report artifact. For production use, pin the action to a reviewed commit SHA or release tag. This integration is available directly from GitHub; it is not yet a GitHub Marketplace listing.
## Quick start
Requires Python 3.10+ and Git.
```bash
python -m pip install --upgrade steadfast-governance
cd /path/to/your/repository
steadfast onboard --agent codex
steadfast verify
```
Replace `codex` with `claude`, `cursor`, or `all` to configure another supported agent. Review generated files before trusting a repository. Existing files are preserved by default.
For the latest unreleased source, install from Git instead:
```bash
python -m pip install --upgrade "git+https://github.com/rllibo833-sudo/Steadfast.git"
```
## The commands most people need
| Command | Purpose |
| --- | --- |
| `steadfast onboard` | Set up repository guidance and selected agent integration. |
| `steadfast verify` | Run the unified, read-only governance checks. |
| `steadfast report` | Generate a human-readable audit report. |
| `steadfast audit` | Check changed files, evidence, contracts, and documentation drift. |
| `steadfast discover` | Print a machine-readable capability map for tools and agents. |
| `steadfast universe-check` | Validate the cross-platform ecosystem manifest and its project/source references. |
| `steadfast universe-model` | Export a deterministic declared-facts concept graph. |
| `steadfast universe-infer` | Generate review-only lexical-overlap candidates; not semantic NCM inference. |
| `steadfast mcp-server` | Start the read-only MCP server for compatible agents. |
See the [quick-start guide](docs/QUICKSTART.md) for a short walkthrough, the [MCP client setup guide](docs/AGENT_MCP_SETUP.md) to connect compatible AI clients, and the [command reference](docs/COMMANDS.md) for the full CLI list. For a copy-ready pull-request workflow and an adoption checklist, see [Adopt in GitHub Actions](docs/ADOPT_IN_GITHUB_ACTIONS.md).
## What it checks—and what it cannot
- **Scope:** compare changed paths with repository policy.
- **Evidence:** check required proof files and evidence-bundle integrity.
- **Security signals:** flag selected risky source patterns and workflow trust-boundary issues.
- **Documentation and code truth:** detect stale command examples and package-entrypoint drift.
- **Goals and releases:** validate goal dependencies and evaluate release readiness.
- **Agent support:** discover skills, inspect MCP configuration, and install repo-local guidance.
These checks are guardrails, not a sandbox or proof of semantic correctness. Results depend on repository policy and configuration; review findings before treating them as release decisions. Steadfast does not silently rewrite plans or execute the configured pipeline as part of `verify`. Run `steadfast pipeline` separately only after reviewing its manifest.
## Cross-platform ecosystem index
The `ecosystem/` directory contains a canonical index of projects and their distributed source references. It does not copy project code or claim that remote sources are reachable. Run `steadfast universe-check` from the repository root to validate the manifest structure, identifiers, source references, and relationship endpoints. Remote URLs are syntax-checked only; no network requests or project files are modified. `steadfast universe-infer` is the original purpose-text baseline. `steadfast universe-analyze` scans descriptive fields across projects, sources, consumers, source references, and inventory notes; emits provenance-backed candidate concepts and project overlaps; and reports unresolved references, malformed or unresolved manifest relationships, and graph-integrity findings. It is a deterministic lexical discovery pipeline, not semantic understanding or a verified dependency engine. Each generated model also records a canonical SHA-256 digest of the exact source manifest used. It does not change the manifest, access remote source systems, or modify project sources. `steadfast universe-analyze --output build/ncm-model.json` saves a model and prints its digest; `steadfast universe-review --model build/ncm-model.json --ledger reviews/session.json` validates a separate, digest-bound human decision ledger without promoting candidates or modifying source data.
## Configuration
Run `steadfast init` to create starter governance files. Repository policy lives in `.steadfast/policy.json`; pipeline steps are configured in `.steadfast/pipeline.json`. Treat pipeline manifests as executable configuration and review their commands before running them.
## Repository layout
```
src/steadfast/ Python package and CLI implementation
web/ Cloudflare Worker, its static page, and wrangler config
tests/ Standard-library test suite
skills/ Portable agent skills (SKILL.md per skill)
agents/ Role rules for code and media agents
docs/ User and maintainer documentation
ecosystem/ Cross-platform project index and JSON schemas
examples/ Copy-ready workflow examples
kits/ Reusable workflow kits and the composite GitHub Action
supabase/ Database migrations and edge function
.steadfast/ Repository policy, goals, pipeline, and automations
.github/ Workflows, issue templates, and PR template
```
All documentation lives under `docs/`; the root keeps only the standard project files (`README.md`, `AGENTS.md`, `CHANGELOG.md`, `CONTRIBUTING.md`, `SECURITY.md`, `LICENSE`).
## Project links
- [Source code and issues](https://github.com/rllibo833-sudo/Steadfast)
- [PyPI package](https://pypi.org/project/steadfast-governance/)
- [Changelog](CHANGELOG.md)
- [Adoption and paid pilots](docs/ADOPTION_AND_PAID_PILOT.md)
- [Request an evaluation or collaboration](https://github.com/rllibo833-sudo/Steadfast/issues)
## Development
```bash
python -m pip install -e .
python -m unittest discover -s tests -v
steadfast docs-check
steadfast code-truth
```
MIT licensed. See [LICENSE](LICENSE).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues