ConfigWard
Build smarter. Configure safer.
ConfigWard is an experimental, local-first toolkit for AI coding agents. Inspect agent instructions, skills and MCP configuration; review risks, plan changes and preserve explicit local project knowledge. No API keys or network calls. The core tools have no third-party runtime dependencies; advanced skill validation uses an optional YAML parser.
Interactive demo
The browser playground is available in docs/. To run it locally, use python -m http.server 8000 --directory docs and visit http://localhost:8000. It checks a subset of strict MCP JSON rules without sending input to a server. Use synthetic examples, never real credentials. Try the public browser playground.
The browser also offers a local MCP converter for a narrower, MCP-only subset of the Python converter. It rejects duplicate JSON keys, unsupported TOML syntax and incompatible fields, rather than silently dropping settings. Never paste real credentials into an online tool.
Install
Requires Python 3.11 or newer. Install from PyPI:
python -m pip install rossellforge-configward
configward --version
configward .
The source tree targets 0.4.0 (alpha release preparation). The last confirmed published Python version is 0.3.0. Use a reviewed checkout for the new modules until 0.4.0 is published; check the PyPI release history before pinning a version.
Or clone the repository and install locally with python -m pip install .. See the publishing guide for release instructions. No installation is needed to run python configward.py . from a checkout.
One entry point, eleven tools
From a reviewed 0.4.0 checkout:
python -m pip install ".[skills]"
configward --tools
configward --tool doctor . --json
configward --tool risk . --fail-on medium
configward --tool dashboard . --skills > configward-report.html
configward --tool benchmark run --require-exact
Existing standalone entry points remain compatible. The original configward . scanner syntax is unchanged; --tool NAME is an explicit opt-in prefix, not automatic interpretation of project paths. See the tool reference for all eleven names and their limitations.
Quick start
For a safe first run, clone the repository and try the synthetic examples. From the repository root, configward examples/portable --strict should check two files with no findings. The placeholder server commands and endpoints are never executed.
configward /path/to/project --json
configward . --strict
configward . --sarif > report.sarif
Example output from a synthetic project with an empty instruction file:
ERROR EMPTY AGENTS.md:0: Configuration is empty.
1 file(s) checked; 1 finding(s).
Supported checks
| Files | Checks |
|---|---|
| AGENTS.md, CLAUDE.md, GEMINI.md | Empty files, selected possible credentials |
| SKILL.md | Basic front matter and required fields |
| .mcp.json, mcp.json, mcp_config.json, mcp-config.json, claude_desktop_config.json | JSON syntax, MCP server entries, argument and mapping shapes, transport ambiguity |
| .codex/config.toml | TOML syntax and selected MCP settings |
| .gemini/settings.json | Optional MCP server mapping |
See the MCP client compatibility matrix for discovery scope, examples and limitations.
Findings include relative paths, rule IDs and severity. JSON and SARIF 2.1.0 are suitable for CI integrations. Exit code 0 means no errors; 1 means errors (or warnings in strict mode). Invalid path arguments return 2. In the development CLI, a supported file can also be scanned directly (for example configward .vscode/mcp.json). A clean run is not proof of security or compatibility.
GitHub Actions
The reusable GitHub Action is available in this repository. See the CI integration guide for a pinned, tested example.
MCP configuration converter (0.3.0)
Convert selected Claude Code JSON and Codex TOML entries in either direction. The converter never launches servers or modifies configuration files, and refuses unsupported credential and permission fields rather than silently dropping them. See the conversion guide. Install version 0.3.0 or newer from PyPI, or use a reviewed source checkout.
configward-convert --from claude --to codex .mcp.json
Additional validation in 0.3.0
The 0.3.0 CLI rejects duplicate JSON object keys and nonstandard JSON constants in the Python CLI, detects competing MCP server mappings, and checks that provided transport values are nonempty strings. These are configuration-shape checks, not complete client-specific schemas.
The 0.4.0 source also checks duplicate JSON keys in the browser and extension, supports comments and trailing commas for editor-managed .vscode/mcp.json, and provides syntax line numbers in CLI JSON reports. Other JSON filenames remain strict. These improvements are not in the older 0.3.0 Python package or 0.1.0 VSIX. The converter continues to require strict JSON.
Doctor: diagnostic guidance and repair plans (development)
The development CLI includes configward-doctor, an offline explanation catalog and conservative repair planner. It explains each finding and can propose precise trailing-comma deletions for strict JSON after rechecking a candidate in memory. It never modifies files or outputs source values in repair plans. See the Doctor guide. This command is not yet available in the published 0.3.0 package.
configward-doctor .mcp.json --json
configward-doctor --rule JSON_DUPLICATE_KEY
Risk: static MCP security review (development)
The development command configward-risk adds heuristic risk guidance for embedded authentication, shell execution, unpinned packages, remote HTTP, privileged containers and selected environment settings. It reports review coverage separately from risk findings and never executes a configured command or contacts an endpoint. See the Risk guide and labeled test corpus. This is not a comprehensive security scanner and is not included in the published 0.3.0 package.
configward-risk . --fail-on medium --json
Skills: advanced metadata and resource review (development)
The optional configward-skills command checks selected Agent Skills requirements using bounded YAML parsing, with separate review warnings for metadata extensions, tool scope, skill length, duplicate names and simple relative references. Install the optional extra from a reviewed source checkout with python -m pip install ".[skills]". See the Skills guide for limitations. No scripts or linked content are executed or loaded.
configward-skills ./skills --strict --json
Optimize: context inventory and redundancy review (development)
The dependency-free development command configward-optimize measures instruction-file sizes, provides an explicitly approximate token proxy, and locates exactly repeated plain-text paragraphs within and across supported files. Configurable byte budgets and incomplete-review reporting are available for CI. It never outputs instruction contents or edits files. See the Optimize guide.
configward-optimize . --file-budget 16000 --corpus-budget 64000 --json
Memory: explicit local project notebook (development)
The dependency-free development command configward-memory records user-authored decisions, facts, tasks and notes in a separate SQLite store for each project, outside the repository. It supports add, list, literal search, show, replace, forget and bounded JSON context export. It never automatically ingests chats or project files, executes notes, or contacts a server. Read the Memory guide before storing any information: the database is not encrypted.
configward-memory list
configward-memory context --kind decision --budget 12000
Workflow: dependency-aware development plans (development)
The dependency-free configward-workflow command validates structured tasks, acceptance criteria, dependency order and evidence phases. It supports test-first and standard profiles, next-step guidance, explicit recording and reopening a task with its dependents. It emits revised plans without modifying the input. Recorded completeness is not independently verified test success. See the Workflow guide.
configward-workflow init --title "Add a check" --accept "Add a regression test." > workflow.json
configward-workflow status workflow.json
Agents: role-based coordination (development)
The dependency-free configward-agents command matches ready Workflow phases to configurable agent-role labels, creates explicit task handoffs, and accepts batches of user-attested results against the current plan snapshot. It proposes assignments only; it does not launch agents, call models or grant permissions. See the Agents guide.
configward-agents schedule workflow.json --max-parallel 4
configward-agents handoff workflow.json task-1
Dashboard: unified local review (development)
The configward-dashboard command creates a static HTML or JSON report combining diagnostics, MCP risk review, context inventory, optional advanced skill validation, and an explicitly selected workflow plan. It does not start a server, load memory, execute agents or upload data. See the Dashboard guide.
configward-dashboard . > configward-report.html
configward-dashboard . --skills --workflow workflow.json --json
Benchmark: reproducible rule-code evaluation (development)
The configward-benchmark command evaluates ConfigWard against 52 bundled synthetic cases, measures coverage, precision, recall, F1 and local analyzer timing, and scores explicit normalized predictions from other tools without executing them. The corpus is project-authored regression data, not an independent security benchmark. See the evaluation guide.
configward-benchmark run --repeat 3
configward-benchmark run --require-exact
VS Code extension (preview)
The VS Code extension provides local diagnostics for supported open instruction and MCP JSON files, with no Python installation or server execution. Download the earlier verified VSIX 0.1.0 from GitHub Releases, or build the updated 0.1.1 development VSIX using the extension installation guide. The extension version is independent of the Python package. This is experimental software; a clean diagnostic result is not a security guarantee.
Design principles
- Local-first; analysis commands are read-only and never launch configured MCP servers. Explicit Memory write commands affect only the separate local memory store.
- Conservative checks; never prints matched credential values.
- Bounded reads, ignored common dependency directories and no symlink traversal.
- Simple implementation with reproducible tests.
Limitations
This alpha is not a full security scanner, YAML parser or complete client-specific schema validator. Credential heuristics can miss secrets or flag synthetic examples. Files outside supported names are not scanned. Review all findings manually. Use only on trusted local directories.
Feedback
Tried ConfigWard with a synthetic project? Share your experience in the early-adopter feedback issue. Report reproducible problems using the smallest possible sample and never share credentials or private configuration.
Development and roadmap
Run python -m unittest -v to test the Python CLI and node --test tests/checker.test.cjs tests/converter.test.cjs to test the browser tools. See the changelog for release history. See CONTRIBUTING.md and SECURITY.md before opening issues or pull requests.
- Versioned per-client schemas and richer skill validation.
- Cross-client compatibility reports and safe migration suggestions.
- Additional synthetic fixtures and a more complete schema validator.
License
MIT. A RossellForge project.
Metadata
Release files for rossellforge-configward 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rossellforge_configward-0.4.0.tar.gz | 114.9 kB | With provenance | Details for rossellforge_configward-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rossellforge_configward-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for rossellforge_configward-0.4.0-py3-none-any.whl |
Total release size: 176.7 kB
Release files / rossellforge_configward-0.4.0.tar.gz
| Download URL | rossellforge_configward-0.4.0.tar.gz |
|---|---|
| Size | 114.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b2270d42478ac16baabb94b164d5acebd188ae973c0f091c6bcd114f580ecc5
|
|
BLAKE2b-256 checksum How to use checksums |
fd353684e3849d3b85dfd957639cabd3b748d0d8112e87dfc2ef81b61f8df379
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logRelease files / rossellforge_configward-0.4.0-py3-none-any.whl
| Download URL | rossellforge_configward-0.4.0-py3-none-any.whl |
|---|---|
| Size | 61.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f01fcf13748ca307d5e27592f55cbf825151a10aaa4146445807ba8b5cda62c
|
|
BLAKE2b-256 checksum How to use checksums |
ad6c14d40c04c1a33d033c862ef2decca63020c5fb5b9abed6d34e957582231c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logSecurity for rossellforge-configward 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for rossellforge_configward-0.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.