security-review-mcp 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- security_review_mcp-1.0.0/LICENSE +201 -0
- security_review_mcp-1.0.0/PKG-INFO +156 -0
- security_review_mcp-1.0.0/README.md +120 -0
- security_review_mcp-1.0.0/pyproject.toml +64 -0
- security_review_mcp-1.0.0/setup.cfg +4 -0
- security_review_mcp-1.0.0/src/security_review_mcp/__init__.py +3 -0
- security_review_mcp-1.0.0/src/security_review_mcp/__main__.py +5 -0
- security_review_mcp-1.0.0/src/security_review_mcp/access_control.py +1440 -0
- security_review_mcp-1.0.0/src/security_review_mcp/advisories.py +436 -0
- security_review_mcp-1.0.0/src/security_review_mcp/advisory_sync.py +406 -0
- security_review_mcp-1.0.0/src/security_review_mcp/app_settings.py +473 -0
- security_review_mcp-1.0.0/src/security_review_mcp/audit.py +257 -0
- security_review_mcp-1.0.0/src/security_review_mcp/audit_syslog.py +336 -0
- security_review_mcp-1.0.0/src/security_review_mcp/checklists.py +17 -0
- security_review_mcp-1.0.0/src/security_review_mcp/ci_client.py +768 -0
- security_review_mcp-1.0.0/src/security_review_mcp/cli.py +745 -0
- security_review_mcp-1.0.0/src/security_review_mcp/codescan.py +233 -0
- security_review_mcp-1.0.0/src/security_review_mcp/config.py +355 -0
- security_review_mcp-1.0.0/src/security_review_mcp/controller.py +171 -0
- security_review_mcp-1.0.0/src/security_review_mcp/coverage.py +105 -0
- security_review_mcp-1.0.0/src/security_review_mcp/database.py +142 -0
- security_review_mcp-1.0.0/src/security_review_mcp/default_rules.toml +1886 -0
- security_review_mcp-1.0.0/src/security_review_mcp/dependencies.py +855 -0
- security_review_mcp-1.0.0/src/security_review_mcp/depscan.py +258 -0
- security_review_mcp-1.0.0/src/security_review_mcp/enrollment.py +116 -0
- security_review_mcp-1.0.0/src/security_review_mcp/enrollment_api.py +123 -0
- security_review_mcp-1.0.0/src/security_review_mcp/favicon.svg +10 -0
- security_review_mcp-1.0.0/src/security_review_mcp/healthcheck.py +112 -0
- security_review_mcp-1.0.0/src/security_review_mcp/http_server.py +767 -0
- security_review_mcp-1.0.0/src/security_review_mcp/metrics.py +182 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/__init__.py +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/env.py +25 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/script.py.mako +28 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0001_baseline.py +219 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0002_settings_and_advisory_updates.py +59 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0003_oidc_role_mappings.py +38 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0004_oidc_user_grants.py +37 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0005_web_users.py +42 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0006_sso_web_users.py +145 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0007_dev_standards.py +42 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0008_general_proxy.py +75 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0009_report_review_type.py +54 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0010_finding_triage_decision.py +78 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0011_report_author.py +48 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0012_audit_and_token_expiry.py +76 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0013_access_control.py +281 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0014_user_roles.py +189 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0015_oidc_issuer.py +34 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0016_rate_limits.py +37 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0017_must_change_password.py +41 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0018_no_direct_roles.py +188 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0019_setting_names.py +47 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0020_user_theme.py +39 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0021_machine_tokens.py +144 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0022_api_tokens.py +61 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0023_oidc_identity.py +89 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0024_mcp_user_role.py +79 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0025_finding_comments.py +41 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0026_acceptance_reason_comments.py +71 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0027_enrollment_projects.py +99 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0028_review_coverage.py +42 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0029_finding_severity_escalation.py +44 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/0030_ticketing.py +64 -0
- security_review_mcp-1.0.0/src/security_review_mcp/migrations/versions/__init__.py +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/models.py +747 -0
- security_review_mcp-1.0.0/src/security_review_mcp/oidc.py +636 -0
- security_review_mcp-1.0.0/src/security_review_mcp/project_names.py +57 -0
- security_review_mcp-1.0.0/src/security_review_mcp/prompts.py +441 -0
- security_review_mcp-1.0.0/src/security_review_mcp/proxy.py +154 -0
- security_review_mcp-1.0.0/src/security_review_mcp/rate_limit.py +243 -0
- security_review_mcp-1.0.0/src/security_review_mcp/registry.py +202 -0
- security_review_mcp-1.0.0/src/security_review_mcp/remote_scan.py +173 -0
- security_review_mcp-1.0.0/src/security_review_mcp/retention.py +69 -0
- security_review_mcp-1.0.0/src/security_review_mcp/rule_store.py +572 -0
- security_review_mcp-1.0.0/src/security_review_mcp/rules_loader.py +225 -0
- security_review_mcp-1.0.0/src/security_review_mcp/sarif.py +214 -0
- security_review_mcp-1.0.0/src/security_review_mcp/scanner.py +281 -0
- security_review_mcp-1.0.0/src/security_review_mcp/server.py +1052 -0
- security_review_mcp-1.0.0/src/security_review_mcp/services.py +1226 -0
- security_review_mcp-1.0.0/src/security_review_mcp/standards.py +461 -0
- security_review_mcp-1.0.0/src/security_review_mcp/syntax_analysis.py +660 -0
- security_review_mcp-1.0.0/src/security_review_mcp/ticketing/__init__.py +45 -0
- security_review_mcp-1.0.0/src/security_review_mcp/ticketing/api.py +242 -0
- security_review_mcp-1.0.0/src/security_review_mcp/ticketing/connections.py +330 -0
- security_review_mcp-1.0.0/src/security_review_mcp/ticketing/core.py +628 -0
- security_review_mcp-1.0.0/src/security_review_mcp/ticketing/jira.py +146 -0
- security_review_mcp-1.0.0/src/security_review_mcp/ticketing/registry.py +139 -0
- security_review_mcp-1.0.0/src/security_review_mcp/ticketing/servicenow.py +131 -0
- security_review_mcp-1.0.0/src/security_review_mcp/ticketing/transport.py +172 -0
- security_review_mcp-1.0.0/src/security_review_mcp/token_store.py +870 -0
- security_review_mcp-1.0.0/src/security_review_mcp/trends.py +354 -0
- security_review_mcp-1.0.0/src/security_review_mcp/update_check.py +153 -0
- security_review_mcp-1.0.0/src/security_review_mcp/versions.py +96 -0
- security_review_mcp-1.0.0/src/security_review_mcp/web_api/__init__.py +289 -0
- security_review_mcp-1.0.0/src/security_review_mcp/web_api/access_routes.py +361 -0
- security_review_mcp-1.0.0/src/security_review_mcp/web_api/account_routes.py +219 -0
- security_review_mcp-1.0.0/src/security_review_mcp/web_api/admin_routes.py +157 -0
- security_review_mcp-1.0.0/src/security_review_mcp/web_api/auth_routes.py +231 -0
- security_review_mcp-1.0.0/src/security_review_mcp/web_api/body_limit.py +28 -0
- security_review_mcp-1.0.0/src/security_review_mcp/web_api/ci_routes.py +194 -0
- security_review_mcp-1.0.0/src/security_review_mcp/web_api/deps.py +248 -0
- security_review_mcp-1.0.0/src/security_review_mcp/web_api/report_routes.py +458 -0
- security_review_mcp-1.0.0/src/security_review_mcp/web_api/rule_routes.py +326 -0
- security_review_mcp-1.0.0/src/security_review_mcp/web_api/schemas.py +1361 -0
- security_review_mcp-1.0.0/src/security_review_mcp/web_api/ticketing_routes.py +207 -0
- security_review_mcp-1.0.0/src/security_review_mcp/web_api/token_routes.py +227 -0
- security_review_mcp-1.0.0/src/security_review_mcp/web_users.py +837 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/3rdpartylicenses.txt +407 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk--6AoejHM.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-7j0Jtgn-.js +2 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-9Q6tzWv2.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-B8FUxzNc.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-BAcDF3V_.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-BE6320Dq.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-BIw6WAmI.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-BJLZtN7H.js +2 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-BNFJ1TRU.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-BNM8t5JQ.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-BNlkY0vd.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-BPhVWi8n.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-BTGRLak4.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-BVZOWgV3.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-BX1KVgVM.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-BaKJAtHp.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-BldUOQNO.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-Bwy56vKu.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-BzTHIKBI.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-C49OrUhc.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-C7sgkxGT.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-CEt--c5w.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-COVj5A9R.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-CRkn-Qx7.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-CWy_ycvu.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-CX-g1Z1T.js +2 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-CXJ0wFeo.js +10 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-CgrO5EPF.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-CnBYP23e.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-CnB_0SFz.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-CwaVvh7D.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-Czvzu89a.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-DLYZwIDh.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-DQijcfpZ.js +2 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-DTS4MeGz.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-DVGmO4vH.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-DcA24-2-.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-DgrWuMSI.js +2 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-DkMnx66E.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-Dm5GuSdl.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-Dqifl80P.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-DuTsWVIH.js +5 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-GYmelGo9.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/chunk-dNwzR-dI.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/index.html +13 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/main-XYE6JINW.js +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/media/bootstrap-icons-4CTG3PFR.woff2 +0 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/media/bootstrap-icons-536GFMIH.woff +0 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/styles-GDQ35AGH.css +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/swagger/LICENSE +202 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/swagger/swagger-ui-bundle.js +2 -0
- security_review_mcp-1.0.0/src/security_review_mcp/webui/swagger/swagger-ui.css +3 -0
- security_review_mcp-1.0.0/src/security_review_mcp.egg-info/PKG-INFO +156 -0
- security_review_mcp-1.0.0/src/security_review_mcp.egg-info/SOURCES.txt +203 -0
- security_review_mcp-1.0.0/src/security_review_mcp.egg-info/dependency_links.txt +1 -0
- security_review_mcp-1.0.0/src/security_review_mcp.egg-info/entry_points.txt +4 -0
- security_review_mcp-1.0.0/src/security_review_mcp.egg-info/requires.txt +25 -0
- security_review_mcp-1.0.0/src/security_review_mcp.egg-info/top_level.txt +1 -0
- security_review_mcp-1.0.0/tests/test_access_control.py +771 -0
- security_review_mcp-1.0.0/tests/test_advisories.py +296 -0
- security_review_mcp-1.0.0/tests/test_advisory_sync.py +489 -0
- security_review_mcp-1.0.0/tests/test_app_settings.py +442 -0
- security_review_mcp-1.0.0/tests/test_audit.py +238 -0
- security_review_mcp-1.0.0/tests/test_audit_syslog.py +282 -0
- security_review_mcp-1.0.0/tests/test_ci_client.py +503 -0
- security_review_mcp-1.0.0/tests/test_cli_and_tools.py +280 -0
- security_review_mcp-1.0.0/tests/test_codescan.py +150 -0
- security_review_mcp-1.0.0/tests/test_config.py +23 -0
- security_review_mcp-1.0.0/tests/test_controller.py +519 -0
- security_review_mcp-1.0.0/tests/test_database.py +737 -0
- security_review_mcp-1.0.0/tests/test_dependencies.py +550 -0
- security_review_mcp-1.0.0/tests/test_depscan.py +185 -0
- security_review_mcp-1.0.0/tests/test_enrollment.py +143 -0
- security_review_mcp-1.0.0/tests/test_enrollment_api.py +110 -0
- security_review_mcp-1.0.0/tests/test_gate.py +127 -0
- security_review_mcp-1.0.0/tests/test_healthcheck.py +164 -0
- security_review_mcp-1.0.0/tests/test_http_server.py +714 -0
- security_review_mcp-1.0.0/tests/test_metrics.py +96 -0
- security_review_mcp-1.0.0/tests/test_oidc.py +618 -0
- security_review_mcp-1.0.0/tests/test_project_names.py +80 -0
- security_review_mcp-1.0.0/tests/test_proxy.py +120 -0
- security_review_mcp-1.0.0/tests/test_rate_limit.py +228 -0
- security_review_mcp-1.0.0/tests/test_remote_scan.py +330 -0
- security_review_mcp-1.0.0/tests/test_retention.py +65 -0
- security_review_mcp-1.0.0/tests/test_rule_store.py +366 -0
- security_review_mcp-1.0.0/tests/test_rules.py +561 -0
- security_review_mcp-1.0.0/tests/test_sarif.py +152 -0
- security_review_mcp-1.0.0/tests/test_scanner.py +406 -0
- security_review_mcp-1.0.0/tests/test_server.py +826 -0
- security_review_mcp-1.0.0/tests/test_services.py +606 -0
- security_review_mcp-1.0.0/tests/test_standards.py +231 -0
- security_review_mcp-1.0.0/tests/test_ticketing.py +385 -0
- security_review_mcp-1.0.0/tests/test_token_store.py +554 -0
- security_review_mcp-1.0.0/tests/test_trends.py +165 -0
- security_review_mcp-1.0.0/tests/test_update_check.py +136 -0
- security_review_mcp-1.0.0/tests/test_web_api.py +3204 -0
- security_review_mcp-1.0.0/tests/test_web_users.py +758 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: security-review-mcp
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: MCP server for security code review: prompts, checklists, quick scans and persistent security reports
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Project-URL: Homepage, https://github.com/cyr-ius/security-review-mcp
|
|
7
|
+
Project-URL: Documentation, https://cyr-ius.github.io/security-review-mcp/
|
|
8
|
+
Project-URL: Repository, https://github.com/cyr-ius/security-review-mcp
|
|
9
|
+
Project-URL: Issues, https://github.com/cyr-ius/security-review-mcp/issues
|
|
10
|
+
Requires-Python: >=3.14
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Requires-Dist: mcp<3,>=2
|
|
14
|
+
Requires-Dist: sqlmodel>=0.0.22
|
|
15
|
+
Requires-Dist: pydantic-settings>=2.2
|
|
16
|
+
Requires-Dist: fastapi>=0.135
|
|
17
|
+
Requires-Dist: tomlkit>=0.13
|
|
18
|
+
Requires-Dist: alembic>=1.13
|
|
19
|
+
Requires-Dist: pyjwt[crypto]>=2.10
|
|
20
|
+
Requires-Dist: tree-sitter<0.27,>=0.25
|
|
21
|
+
Requires-Dist: tree-sitter-python<0.26,>=0.25
|
|
22
|
+
Requires-Dist: tree-sitter-typescript<0.24,>=0.23
|
|
23
|
+
Requires-Dist: tree-sitter-javascript<0.26,>=0.25
|
|
24
|
+
Requires-Dist: tree-sitter-java<0.24,>=0.23.5
|
|
25
|
+
Provides-Extra: postgres
|
|
26
|
+
Requires-Dist: psycopg2-binary>=2.9; extra == "postgres"
|
|
27
|
+
Provides-Extra: dev
|
|
28
|
+
Requires-Dist: pytest>=8; extra == "dev"
|
|
29
|
+
Requires-Dist: ruff>=0.5; extra == "dev"
|
|
30
|
+
Requires-Dist: debugpy>=1.8; extra == "dev"
|
|
31
|
+
Provides-Extra: docs
|
|
32
|
+
Requires-Dist: mkdocs<2,>=1.6; extra == "docs"
|
|
33
|
+
Requires-Dist: mkdocs-material>=9.5; extra == "docs"
|
|
34
|
+
Requires-Dist: mkdocs-static-i18n>=1.2; extra == "docs"
|
|
35
|
+
Dynamic: license-file
|
|
36
|
+
|
|
37
|
+

|
|
38
|
+
|
|
39
|
+
# Security Review MCP
|
|
40
|
+
|
|
41
|
+
![licence] ![Python] ![Angular] [![ci::status]][ci::github] [![pypi::version]][pypi::web] [![docker::pulls]][docker::hub] [![documentation::badge]][documentation::web]
|
|
42
|
+
|
|
43
|
+
[licence]: https://img.shields.io/github/license/cyr-ius/security-review-mcp?label=Licence&color=blue
|
|
44
|
+
[python]: https://img.shields.io/badge/Python-3.14%2B-blue?logo=python
|
|
45
|
+
[angular]: https://img.shields.io/badge/Angular-22-blue?logo=angular
|
|
46
|
+
[ci::status]: https://img.shields.io/github/actions/workflow/status/cyr-ius/security-review-mcp/tests.yml?branch=dev&label=Tests&color=blue&logo=github
|
|
47
|
+
[ci::github]: https://github.com/cyr-ius/security-review-mcp/actions
|
|
48
|
+
[pypi::version]: https://img.shields.io/pypi/v/security-review-mcp?color=blue&logo=pypi&logoColor=white
|
|
49
|
+
[pypi::web]: https://pypi.org/project/security-review-mcp/
|
|
50
|
+
[docker::pulls]: https://img.shields.io/docker/pulls/cyrius44/security-review-mcp.svg?logo=docker
|
|
51
|
+
[docker::hub]: https://hub.docker.com/r/cyrius44/security-review-mcp
|
|
52
|
+
[documentation::badge]: https://img.shields.io/badge/Documentation-MkDocs-green?logo=materialformkdocs
|
|
53
|
+
[documentation::web]: https://cyr-ius.github.io/security-review-mcp/
|
|
54
|
+
|
|
55
|
+
MCP server for **security-oriented code review** (vulnerabilities and misconfigurations), usable
|
|
56
|
+
from VS Code / Copilot, Claude or a CI/CD agent. It provides review prompts, checklists, a
|
|
57
|
+
pattern scan with focused Tree-sitter checks for unsafe Python SQL, Angular DOM flows and unchecked message origins, an offline dependency analysis
|
|
58
|
+
and a report database (SQLite or PostgreSQL) usable in pipelines.
|
|
59
|
+
|
|
60
|
+
📖 **Full documentation: <https://cyr-ius.github.io/security-review-mcp/>**
|
|
61
|
+
|
|
62
|
+
🇫🇷 [Version française](README.fr.md)
|
|
63
|
+
|
|
64
|
+
## Capabilities
|
|
65
|
+
|
|
66
|
+
| | |
|
|
67
|
+
|---|---|
|
|
68
|
+
| **Prompts** | `security-review`, `api-security-review`, `configuration-review`, `codebase-review`, `dependency-review`, `triage-report`, `development-standards` |
|
|
69
|
+
| **Tools** | checklists, `scan_code`, `scan_dependencies`, saving and reading of reports with their [checklist coverage](https://cyr-ius.github.io/security-review-mcp/usage/prompts-tools/#review-coverage) (grouped by a [normalized project name](https://cyr-ius.github.io/security-review-mcp/usage/prompts-tools/#project-name)), [status proposals](https://cyr-ius.github.io/security-review-mcp/usage/prompts-tools/#status-of-a-finding) (`propose_finding_status`: an agent never closes a finding), project posture and gate, SARIF export, trends, rule management |
|
|
70
|
+
| **CLI** | `security-review-mcp` (MCP server, `enroll`, [`scan-deps`](https://cyr-ius.github.io/security-review-mcp/advanced/dependencies/#scan-with-a-shared-server-commit-hook) for a commit hook) and `security-review-controller` (`serve`, `db`, `advisories`, `rules`, `token`, `user`, `audit`), exit codes 0 / 1 / 2 |
|
|
71
|
+
| **Pipelines** | [`security-review-ci`](https://cyr-ius.github.io/security-review-mcp/usage/gate/#pipeline-client-security-review-ci) (`gate`, `sarif`, `trend`, [`scan-code`](https://cyr-ius.github.io/security-review-mcp/advanced/code-scan/), [`scan-deps`](https://cyr-ius.github.io/security-review-mcp/advanced/dependencies/#scan-in-a-pipeline-security-review-ci-scan-deps), which store their reports through the API): lightweight client of the REST API for Jenkins, GitLab or GitHub, with a `ci` token restricted to the selected projects, no database driver |
|
|
72
|
+
| **Rules** | More than 140 rules and more than 80 checklist items: Python, Java, Angular / Node.js, Docker, Kubernetes, configuration, GitLab CI, Jenkins, Spring, FastAPI, copied into the database at first start, plus your [internal rules](https://cyr-ius.github.io/security-review-mcp/advanced/rules/) (TOML import/export from the CLI or the web interface) |
|
|
73
|
+
| **Development standards** | [conventions by technology](https://cyr-ius.github.io/security-review-mcp/advanced/standards/) managed in the web interface (TOML import/export) and handed to the AI assistant before it codes (prompt, `get_development_standards` / `list_development_standards` tools, resources) |
|
|
74
|
+
| **Vulnerabilities** | manifests, lockfiles and [CycloneDX SBOMs](https://cyr-ius.github.io/security-review-mcp/advanced/dependencies/#cyclonedx-sbom-transitive-dependencies) checked against an OSV database (PyPI, npm, Maven) imported offline or [updated every day by the controller](https://cyr-ius.github.io/security-review-mcp/advanced/dependencies/#automatic-update-by-the-controller), optional proxy |
|
|
75
|
+
| **Transport** | HTTP (shared server) or stdio (local mode), with optional Bearer tokens stored in the database (`token` CLI) with [expiry and rotation](https://cyr-ius.github.io/security-review-mcp/advanced/http/#expiry-and-rotation-of-tokens), and TLS (optionally mutual) |
|
|
76
|
+
| **Audit and metrics** | [audit log](https://cyr-ius.github.io/security-review-mcp/advanced/audit-metrics/#audit-log) of triage decisions, tokens and enrollments, and [Prometheus metrics](https://cyr-ius.github.io/security-review-mcp/advanced/audit-metrics/#prometheus-metrics) on `/metrics` (`metrics` token) |
|
|
77
|
+
| **Ticketing** | [findings sent to Jira or ServiceNow](https://cyr-ius.github.io/security-review-mcp/advanced/ticketing/) by hand or automatically above a severity threshold, one ticket per issue; [third-party connectors](https://cyr-ius.github.io/security-review-mcp/advanced/ticketing/#writing-a-connector) for other tools |
|
|
78
|
+
| **Deployment** | MCP server and controller (REST API, web interface) [separated](https://cyr-ius.github.io/security-review-mcp/advanced/architecture/) on a shared database, Alembic migrations, Docker Compose and Kubernetes examples |
|
|
79
|
+
| **Enrollment** | an MCP client without a token [requests its project](https://cyr-ius.github.io/security-review-mcp/advanced/http/#enrollment-request-the-project) (`request_enrollment` MCP tool or `enroll` CLI), an administrator approves it, then the user creates a personal MCP token in the web interface; a refused token gets a `401` that says how to get a new one |
|
|
80
|
+
| **Web interface** | in English, French or Spanish: dashboard, [triage by a person](https://cyr-ius.github.io/security-review-mcp/usage/web-interface/#triage-of-findings) (reason, approver and expiry of the accepted risks and false positives), [risk acceptances](https://cyr-ius.github.io/security-review-mcp/usage/web-interface/#risk-acceptances) to renew or remove, with append-only comments, [per-project list of open findings](https://cyr-ius.github.io/security-review-mcp/usage/web-interface/#screens) for an expert review, management of [rules, checklists, tokens (per project or for all projects), report language, outgoing proxy (OSV and OIDC) and OSV updates](https://cyr-ius.github.io/security-review-mcp/usage/web-interface/), local or OIDC [user accounts](https://cyr-ius.github.io/security-review-mcp/usage/web-interface/#user-accounts), the only ones to open the interface (tokens are for machines: MCP agents, pipelines, scripts; personal or role [API tokens](https://cyr-ius.github.io/security-review-mcp/usage/web-interface/#api-tokens) for the REST API and Swagger, [personal MCP tokens](https://cyr-ius.github.io/security-review-mcp/usage/web-interface/#personal-mcp-tokens) on the projects of the user, with the `mcp-user` role; initial `admin` account in the logs), optional [OpenID Connect OIDC login](https://cyr-ius.github.io/security-review-mcp/advanced/sso/), [configurable in the interface](https://cyr-ius.github.io/security-review-mcp/advanced/sso/#configuring-sso-in-the-interface), with accounts created on the fly, and [roles, groups and permissions](https://cyr-ius.github.io/security-review-mcp/advanced/access-control/) (groups matched by name with the OIDC groups claim, roles per project given to groups, never directly to accounts) |
|
|
81
|
+
|
|
82
|
+
Details: [how a review works](https://cyr-ius.github.io/security-review-mcp/usage/how-it-works/) (rules, checklists, standards, `AGENTS.md`),
|
|
83
|
+
[prompts and tools](https://cyr-ius.github.io/security-review-mcp/usage/prompts-tools/),
|
|
84
|
+
[whole codebase scan](https://cyr-ius.github.io/security-review-mcp/advanced/code-scan/),
|
|
85
|
+
[dependencies](https://cyr-ius.github.io/security-review-mcp/advanced/dependencies/),
|
|
86
|
+
[gate](https://cyr-ius.github.io/security-review-mcp/usage/gate/),
|
|
87
|
+
[SARIF](https://cyr-ius.github.io/security-review-mcp/advanced/sarif/),
|
|
88
|
+
[trends](https://cyr-ius.github.io/security-review-mcp/advanced/trends/).
|
|
89
|
+
|
|
90
|
+
## Quick start
|
|
91
|
+
|
|
92
|
+
The product runs as **two services** sharing one database: the **MCP server**
|
|
93
|
+
(`security-review-mcp`), used by the agents and the CI, and the **controller**
|
|
94
|
+
(`security-review-controller`), used by people: web interface, REST API, tokens and accounts.
|
|
95
|
+
See [two services, two roles](https://cyr-ius.github.io/security-review-mcp/#two-services-two-roles).
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
pip install security-review-mcp # Python ≥ 3.14; [postgres] extra for PostgreSQL
|
|
99
|
+
|
|
100
|
+
# from the same directory (shared SQLite file)
|
|
101
|
+
security-review-controller db upgrade # schema (Alembic)
|
|
102
|
+
security-review-controller user create admin --group administrators # web interface account
|
|
103
|
+
security-review-controller token create --label alice # token of the agent
|
|
104
|
+
security-review-controller serve --port 8080 # /ui interface and REST API
|
|
105
|
+
security-review-mcp serve --transport streamable-http --port 8000 # /mcp endpoint
|
|
106
|
+
|
|
107
|
+
security-review-ci gate --url http://localhost:8080 --project portal # block a pipeline (ci token: SECREVIEW_TOKEN)
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Host configuration (VS Code with a token, `.vscode/mcp.json`; Claude and `.mcp.json`: see
|
|
111
|
+
[connecting the host](https://cyr-ius.github.io/security-review-mcp/getting-started/host/)):
|
|
112
|
+
|
|
113
|
+
```json
|
|
114
|
+
{
|
|
115
|
+
"servers": {
|
|
116
|
+
"security-review": {
|
|
117
|
+
"type": "http",
|
|
118
|
+
"url": "http://127.0.0.1:8000/mcp",
|
|
119
|
+
"headers": { "Authorization": "Bearer ${input:secreview-token}" }
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"inputs": [
|
|
123
|
+
{ "id": "secreview-token", "type": "promptString", "description": "Token", "password": true }
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Step by step: [deploying the server](https://cyr-ius.github.io/security-review-mcp/getting-started/deploy/),
|
|
129
|
+
[connecting the host](https://cyr-ius.github.io/security-review-mcp/getting-started/host/) (VS Code, Claude, enrollment).
|
|
130
|
+
Other cases: [offline installation](https://cyr-ius.github.io/security-review-mcp/advanced/installation/),
|
|
131
|
+
[local stdio mode](https://cyr-ius.github.io/security-review-mcp/advanced/stdio/),
|
|
132
|
+
[HTTP, authentication and TLS](https://cyr-ius.github.io/security-review-mcp/advanced/http/),
|
|
133
|
+
[Docker images](https://cyr-ius.github.io/security-review-mcp/advanced/docker/#published-images) (`ghcr.io/cyr-ius/security-review-mcp`, `docker.io/cyrius44/security-review-mcp`) and [Docker Compose with PostgreSQL](https://cyr-ius.github.io/security-review-mcp/advanced/docker/#docker-compose-with-postgresql),
|
|
134
|
+
[architecture and Kubernetes](https://cyr-ius.github.io/security-review-mcp/advanced/architecture/),
|
|
135
|
+
[`SECREVIEW_*` variables](https://cyr-ius.github.io/security-review-mcp/reference/configuration/).
|
|
136
|
+
|
|
137
|
+
## Limits
|
|
138
|
+
|
|
139
|
+
The scan produces leads, with false positives. Its Python Tree-sitter check covers only simple local SQL
|
|
140
|
+
flows. It replaces neither a full SAST or SCA analysis, nor a human review. See
|
|
141
|
+
[security and limits](https://cyr-ius.github.io/security-review-mcp/reference/security/).
|
|
142
|
+
|
|
143
|
+
## Contributing
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
uv sync --extra dev && uv run pytest && uv run ruff check .
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Development happens on `dev`, and a version is released by pushing a `vX.Y.Z` tag on `master`.
|
|
150
|
+
See the [contribution guide](https://cyr-ius.github.io/security-review-mcp/contributing/) and
|
|
151
|
+
[`AGENTS.md`](AGENTS.md) (instructions for AI agents).
|
|
152
|
+
|
|
153
|
+
## Security and license
|
|
154
|
+
|
|
155
|
+
Report a vulnerability privately, as described in [`SECURITY.md`](SECURITY.md). The project is
|
|
156
|
+
distributed under the [Apache 2.0 license](LICENSE).
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# Security Review MCP
|
|
4
|
+
|
|
5
|
+
![licence] ![Python] ![Angular] [![ci::status]][ci::github] [![pypi::version]][pypi::web] [![docker::pulls]][docker::hub] [![documentation::badge]][documentation::web]
|
|
6
|
+
|
|
7
|
+
[licence]: https://img.shields.io/github/license/cyr-ius/security-review-mcp?label=Licence&color=blue
|
|
8
|
+
[python]: https://img.shields.io/badge/Python-3.14%2B-blue?logo=python
|
|
9
|
+
[angular]: https://img.shields.io/badge/Angular-22-blue?logo=angular
|
|
10
|
+
[ci::status]: https://img.shields.io/github/actions/workflow/status/cyr-ius/security-review-mcp/tests.yml?branch=dev&label=Tests&color=blue&logo=github
|
|
11
|
+
[ci::github]: https://github.com/cyr-ius/security-review-mcp/actions
|
|
12
|
+
[pypi::version]: https://img.shields.io/pypi/v/security-review-mcp?color=blue&logo=pypi&logoColor=white
|
|
13
|
+
[pypi::web]: https://pypi.org/project/security-review-mcp/
|
|
14
|
+
[docker::pulls]: https://img.shields.io/docker/pulls/cyrius44/security-review-mcp.svg?logo=docker
|
|
15
|
+
[docker::hub]: https://hub.docker.com/r/cyrius44/security-review-mcp
|
|
16
|
+
[documentation::badge]: https://img.shields.io/badge/Documentation-MkDocs-green?logo=materialformkdocs
|
|
17
|
+
[documentation::web]: https://cyr-ius.github.io/security-review-mcp/
|
|
18
|
+
|
|
19
|
+
MCP server for **security-oriented code review** (vulnerabilities and misconfigurations), usable
|
|
20
|
+
from VS Code / Copilot, Claude or a CI/CD agent. It provides review prompts, checklists, a
|
|
21
|
+
pattern scan with focused Tree-sitter checks for unsafe Python SQL, Angular DOM flows and unchecked message origins, an offline dependency analysis
|
|
22
|
+
and a report database (SQLite or PostgreSQL) usable in pipelines.
|
|
23
|
+
|
|
24
|
+
📖 **Full documentation: <https://cyr-ius.github.io/security-review-mcp/>**
|
|
25
|
+
|
|
26
|
+
🇫🇷 [Version française](README.fr.md)
|
|
27
|
+
|
|
28
|
+
## Capabilities
|
|
29
|
+
|
|
30
|
+
| | |
|
|
31
|
+
|---|---|
|
|
32
|
+
| **Prompts** | `security-review`, `api-security-review`, `configuration-review`, `codebase-review`, `dependency-review`, `triage-report`, `development-standards` |
|
|
33
|
+
| **Tools** | checklists, `scan_code`, `scan_dependencies`, saving and reading of reports with their [checklist coverage](https://cyr-ius.github.io/security-review-mcp/usage/prompts-tools/#review-coverage) (grouped by a [normalized project name](https://cyr-ius.github.io/security-review-mcp/usage/prompts-tools/#project-name)), [status proposals](https://cyr-ius.github.io/security-review-mcp/usage/prompts-tools/#status-of-a-finding) (`propose_finding_status`: an agent never closes a finding), project posture and gate, SARIF export, trends, rule management |
|
|
34
|
+
| **CLI** | `security-review-mcp` (MCP server, `enroll`, [`scan-deps`](https://cyr-ius.github.io/security-review-mcp/advanced/dependencies/#scan-with-a-shared-server-commit-hook) for a commit hook) and `security-review-controller` (`serve`, `db`, `advisories`, `rules`, `token`, `user`, `audit`), exit codes 0 / 1 / 2 |
|
|
35
|
+
| **Pipelines** | [`security-review-ci`](https://cyr-ius.github.io/security-review-mcp/usage/gate/#pipeline-client-security-review-ci) (`gate`, `sarif`, `trend`, [`scan-code`](https://cyr-ius.github.io/security-review-mcp/advanced/code-scan/), [`scan-deps`](https://cyr-ius.github.io/security-review-mcp/advanced/dependencies/#scan-in-a-pipeline-security-review-ci-scan-deps), which store their reports through the API): lightweight client of the REST API for Jenkins, GitLab or GitHub, with a `ci` token restricted to the selected projects, no database driver |
|
|
36
|
+
| **Rules** | More than 140 rules and more than 80 checklist items: Python, Java, Angular / Node.js, Docker, Kubernetes, configuration, GitLab CI, Jenkins, Spring, FastAPI, copied into the database at first start, plus your [internal rules](https://cyr-ius.github.io/security-review-mcp/advanced/rules/) (TOML import/export from the CLI or the web interface) |
|
|
37
|
+
| **Development standards** | [conventions by technology](https://cyr-ius.github.io/security-review-mcp/advanced/standards/) managed in the web interface (TOML import/export) and handed to the AI assistant before it codes (prompt, `get_development_standards` / `list_development_standards` tools, resources) |
|
|
38
|
+
| **Vulnerabilities** | manifests, lockfiles and [CycloneDX SBOMs](https://cyr-ius.github.io/security-review-mcp/advanced/dependencies/#cyclonedx-sbom-transitive-dependencies) checked against an OSV database (PyPI, npm, Maven) imported offline or [updated every day by the controller](https://cyr-ius.github.io/security-review-mcp/advanced/dependencies/#automatic-update-by-the-controller), optional proxy |
|
|
39
|
+
| **Transport** | HTTP (shared server) or stdio (local mode), with optional Bearer tokens stored in the database (`token` CLI) with [expiry and rotation](https://cyr-ius.github.io/security-review-mcp/advanced/http/#expiry-and-rotation-of-tokens), and TLS (optionally mutual) |
|
|
40
|
+
| **Audit and metrics** | [audit log](https://cyr-ius.github.io/security-review-mcp/advanced/audit-metrics/#audit-log) of triage decisions, tokens and enrollments, and [Prometheus metrics](https://cyr-ius.github.io/security-review-mcp/advanced/audit-metrics/#prometheus-metrics) on `/metrics` (`metrics` token) |
|
|
41
|
+
| **Ticketing** | [findings sent to Jira or ServiceNow](https://cyr-ius.github.io/security-review-mcp/advanced/ticketing/) by hand or automatically above a severity threshold, one ticket per issue; [third-party connectors](https://cyr-ius.github.io/security-review-mcp/advanced/ticketing/#writing-a-connector) for other tools |
|
|
42
|
+
| **Deployment** | MCP server and controller (REST API, web interface) [separated](https://cyr-ius.github.io/security-review-mcp/advanced/architecture/) on a shared database, Alembic migrations, Docker Compose and Kubernetes examples |
|
|
43
|
+
| **Enrollment** | an MCP client without a token [requests its project](https://cyr-ius.github.io/security-review-mcp/advanced/http/#enrollment-request-the-project) (`request_enrollment` MCP tool or `enroll` CLI), an administrator approves it, then the user creates a personal MCP token in the web interface; a refused token gets a `401` that says how to get a new one |
|
|
44
|
+
| **Web interface** | in English, French or Spanish: dashboard, [triage by a person](https://cyr-ius.github.io/security-review-mcp/usage/web-interface/#triage-of-findings) (reason, approver and expiry of the accepted risks and false positives), [risk acceptances](https://cyr-ius.github.io/security-review-mcp/usage/web-interface/#risk-acceptances) to renew or remove, with append-only comments, [per-project list of open findings](https://cyr-ius.github.io/security-review-mcp/usage/web-interface/#screens) for an expert review, management of [rules, checklists, tokens (per project or for all projects), report language, outgoing proxy (OSV and OIDC) and OSV updates](https://cyr-ius.github.io/security-review-mcp/usage/web-interface/), local or OIDC [user accounts](https://cyr-ius.github.io/security-review-mcp/usage/web-interface/#user-accounts), the only ones to open the interface (tokens are for machines: MCP agents, pipelines, scripts; personal or role [API tokens](https://cyr-ius.github.io/security-review-mcp/usage/web-interface/#api-tokens) for the REST API and Swagger, [personal MCP tokens](https://cyr-ius.github.io/security-review-mcp/usage/web-interface/#personal-mcp-tokens) on the projects of the user, with the `mcp-user` role; initial `admin` account in the logs), optional [OpenID Connect OIDC login](https://cyr-ius.github.io/security-review-mcp/advanced/sso/), [configurable in the interface](https://cyr-ius.github.io/security-review-mcp/advanced/sso/#configuring-sso-in-the-interface), with accounts created on the fly, and [roles, groups and permissions](https://cyr-ius.github.io/security-review-mcp/advanced/access-control/) (groups matched by name with the OIDC groups claim, roles per project given to groups, never directly to accounts) |
|
|
45
|
+
|
|
46
|
+
Details: [how a review works](https://cyr-ius.github.io/security-review-mcp/usage/how-it-works/) (rules, checklists, standards, `AGENTS.md`),
|
|
47
|
+
[prompts and tools](https://cyr-ius.github.io/security-review-mcp/usage/prompts-tools/),
|
|
48
|
+
[whole codebase scan](https://cyr-ius.github.io/security-review-mcp/advanced/code-scan/),
|
|
49
|
+
[dependencies](https://cyr-ius.github.io/security-review-mcp/advanced/dependencies/),
|
|
50
|
+
[gate](https://cyr-ius.github.io/security-review-mcp/usage/gate/),
|
|
51
|
+
[SARIF](https://cyr-ius.github.io/security-review-mcp/advanced/sarif/),
|
|
52
|
+
[trends](https://cyr-ius.github.io/security-review-mcp/advanced/trends/).
|
|
53
|
+
|
|
54
|
+
## Quick start
|
|
55
|
+
|
|
56
|
+
The product runs as **two services** sharing one database: the **MCP server**
|
|
57
|
+
(`security-review-mcp`), used by the agents and the CI, and the **controller**
|
|
58
|
+
(`security-review-controller`), used by people: web interface, REST API, tokens and accounts.
|
|
59
|
+
See [two services, two roles](https://cyr-ius.github.io/security-review-mcp/#two-services-two-roles).
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
pip install security-review-mcp # Python ≥ 3.14; [postgres] extra for PostgreSQL
|
|
63
|
+
|
|
64
|
+
# from the same directory (shared SQLite file)
|
|
65
|
+
security-review-controller db upgrade # schema (Alembic)
|
|
66
|
+
security-review-controller user create admin --group administrators # web interface account
|
|
67
|
+
security-review-controller token create --label alice # token of the agent
|
|
68
|
+
security-review-controller serve --port 8080 # /ui interface and REST API
|
|
69
|
+
security-review-mcp serve --transport streamable-http --port 8000 # /mcp endpoint
|
|
70
|
+
|
|
71
|
+
security-review-ci gate --url http://localhost:8080 --project portal # block a pipeline (ci token: SECREVIEW_TOKEN)
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Host configuration (VS Code with a token, `.vscode/mcp.json`; Claude and `.mcp.json`: see
|
|
75
|
+
[connecting the host](https://cyr-ius.github.io/security-review-mcp/getting-started/host/)):
|
|
76
|
+
|
|
77
|
+
```json
|
|
78
|
+
{
|
|
79
|
+
"servers": {
|
|
80
|
+
"security-review": {
|
|
81
|
+
"type": "http",
|
|
82
|
+
"url": "http://127.0.0.1:8000/mcp",
|
|
83
|
+
"headers": { "Authorization": "Bearer ${input:secreview-token}" }
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"inputs": [
|
|
87
|
+
{ "id": "secreview-token", "type": "promptString", "description": "Token", "password": true }
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Step by step: [deploying the server](https://cyr-ius.github.io/security-review-mcp/getting-started/deploy/),
|
|
93
|
+
[connecting the host](https://cyr-ius.github.io/security-review-mcp/getting-started/host/) (VS Code, Claude, enrollment).
|
|
94
|
+
Other cases: [offline installation](https://cyr-ius.github.io/security-review-mcp/advanced/installation/),
|
|
95
|
+
[local stdio mode](https://cyr-ius.github.io/security-review-mcp/advanced/stdio/),
|
|
96
|
+
[HTTP, authentication and TLS](https://cyr-ius.github.io/security-review-mcp/advanced/http/),
|
|
97
|
+
[Docker images](https://cyr-ius.github.io/security-review-mcp/advanced/docker/#published-images) (`ghcr.io/cyr-ius/security-review-mcp`, `docker.io/cyrius44/security-review-mcp`) and [Docker Compose with PostgreSQL](https://cyr-ius.github.io/security-review-mcp/advanced/docker/#docker-compose-with-postgresql),
|
|
98
|
+
[architecture and Kubernetes](https://cyr-ius.github.io/security-review-mcp/advanced/architecture/),
|
|
99
|
+
[`SECREVIEW_*` variables](https://cyr-ius.github.io/security-review-mcp/reference/configuration/).
|
|
100
|
+
|
|
101
|
+
## Limits
|
|
102
|
+
|
|
103
|
+
The scan produces leads, with false positives. Its Python Tree-sitter check covers only simple local SQL
|
|
104
|
+
flows. It replaces neither a full SAST or SCA analysis, nor a human review. See
|
|
105
|
+
[security and limits](https://cyr-ius.github.io/security-review-mcp/reference/security/).
|
|
106
|
+
|
|
107
|
+
## Contributing
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
uv sync --extra dev && uv run pytest && uv run ruff check .
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Development happens on `dev`, and a version is released by pushing a `vX.Y.Z` tag on `master`.
|
|
114
|
+
See the [contribution guide](https://cyr-ius.github.io/security-review-mcp/contributing/) and
|
|
115
|
+
[`AGENTS.md`](AGENTS.md) (instructions for AI agents).
|
|
116
|
+
|
|
117
|
+
## Security and license
|
|
118
|
+
|
|
119
|
+
Report a vulnerability privately, as described in [`SECURITY.md`](SECURITY.md). The project is
|
|
120
|
+
distributed under the [Apache 2.0 license](LICENSE).
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
# 77: license expression (PEP 639)
|
|
3
|
+
requires = ["setuptools>=77"]
|
|
4
|
+
build-backend = "setuptools.build_meta"
|
|
5
|
+
|
|
6
|
+
[project]
|
|
7
|
+
name = "security-review-mcp"
|
|
8
|
+
version = "1.0.0"
|
|
9
|
+
description = "MCP server for security code review: prompts, checklists, quick scans and persistent security reports"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
requires-python = ">=3.14"
|
|
14
|
+
dependencies = [
|
|
15
|
+
"mcp>=2,<3",
|
|
16
|
+
"sqlmodel>=0.0.22",
|
|
17
|
+
"pydantic-settings>=2.2",
|
|
18
|
+
"fastapi>=0.135",
|
|
19
|
+
"tomlkit>=0.13",
|
|
20
|
+
"alembic>=1.13",
|
|
21
|
+
"pyjwt[crypto]>=2.10",
|
|
22
|
+
"tree-sitter>=0.25,<0.27",
|
|
23
|
+
"tree-sitter-python>=0.25,<0.26",
|
|
24
|
+
"tree-sitter-typescript>=0.23,<0.24",
|
|
25
|
+
"tree-sitter-javascript>=0.25,<0.26",
|
|
26
|
+
"tree-sitter-java>=0.23.5,<0.24",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[project.urls]
|
|
30
|
+
Homepage = "https://github.com/cyr-ius/security-review-mcp"
|
|
31
|
+
Documentation = "https://cyr-ius.github.io/security-review-mcp/"
|
|
32
|
+
Repository = "https://github.com/cyr-ius/security-review-mcp"
|
|
33
|
+
Issues = "https://github.com/cyr-ius/security-review-mcp/issues"
|
|
34
|
+
|
|
35
|
+
[project.optional-dependencies]
|
|
36
|
+
postgres = ["psycopg2-binary>=2.9"]
|
|
37
|
+
dev = ["pytest>=8", "ruff>=0.5", "debugpy>=1.8"]
|
|
38
|
+
docs = [
|
|
39
|
+
"mkdocs>=1.6,<2",
|
|
40
|
+
"mkdocs-material>=9.5",
|
|
41
|
+
"mkdocs-static-i18n>=1.2",
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
[project.scripts]
|
|
45
|
+
security-review-mcp = "security_review_mcp.server:main"
|
|
46
|
+
security-review-controller = "security_review_mcp.controller:main"
|
|
47
|
+
security-review-ci = "security_review_mcp.ci_client:main"
|
|
48
|
+
|
|
49
|
+
[tool.setuptools.packages.find]
|
|
50
|
+
where = ["src"]
|
|
51
|
+
|
|
52
|
+
[tool.setuptools.package-data]
|
|
53
|
+
security_review_mcp = ["default_rules.toml", "favicon.svg", "migrations/script.py.mako", "webui/*", "webui/**/*"]
|
|
54
|
+
|
|
55
|
+
[tool.pytest.ini_options]
|
|
56
|
+
testpaths = ["tests"]
|
|
57
|
+
pythonpath = ["src"]
|
|
58
|
+
|
|
59
|
+
[tool.ruff]
|
|
60
|
+
line-length = 100
|
|
61
|
+
target-version = "py314"
|
|
62
|
+
|
|
63
|
+
[tool.ruff.lint]
|
|
64
|
+
select = ["E", "F", "W", "I", "B", "C4", "UP"]
|