Skip to content

Contributing

Saeed Yari edited this page Dec 1, 2026 · 1 revision

Contributing

Contributions are welcome: bug reports, new scanner rules, better mappings and documentation fixes.

  • Guide: CONTRIBUTING.md covers the content rules, the workflow, setup, the checks to run, how to add a scanner rule and how to change the PCI DSS mapping.
  • Issues: use the bug report or feature request forms.
  • Pull requests: the template includes the checklist your change must pass.

How a change gets in

The project follows gitflow: main holds releases and develop collects new work. Both branches are protected, so every change goes in through a pull request that passes CI.

  1. Open an issue with one of the forms.
  2. Agree on the approach in the issue and wait for a maintainer to assign it to you.
  3. Fork the repository and branch from develop: feature/<issue>-<short-name> or fix/<issue>-<short-name>.
  4. Make the change with tests, and run the checks.
  5. Open a pull request into develop with Closes #<issue> in the description.
  6. A maintainer reviews it and squash-merges it into develop; it ships with the next release.

The content rules

  • The bundled ASVS file stays unmodified; a test checks its checksum.
  • Refer to ASVS requirements by ID and describe them in your own words: the ASVS text lives only in the bundled file.
  • Never paste text from PCI SSC documents. The PCI DSS mapping uses requirement IDs only.
  • Never put real secrets, credentials, card numbers or personal data in code, tests, issues or pull requests.

Quick start for contributors

git clone https://github.com/<your-username>/mcp-server-asvs-security-assistant.git
cd mcp-server-asvs-security-assistant
uv sync --all-extras
uv run ruff check .
uv run pytest

Adding a scanner rule, in short

Most code rules are one Rule(...) entry in src/asvs_mcp/scanners/code_scanner.py: a regex, severity, ASVS ID, CWE, fixed description and remediation. Add a line that must trigger it to test_rule_fires and a safe form to test_safe_code_is_quiet, and update the rule tables in the README. The full steps are in CONTRIBUTING.md.

Changing the PCI DSS mapping, in short

Edit src/asvs_mcp/data/pci_dss_mapping.json: IDs only, plus a short note in your own words where the standards conflict. Explain each change in the pull request; tests/test_pci_mapping.py checks every ID.

Clone this wiki locally