From f4f8a4cab82f1384d3b307da3a34387aa079e52e Mon Sep 17 00:00:00 2001 From: root Date: Fri, 18 Sep 2026 18:38:38 +0000 Subject: [PATCH] fix: consolidate PR #117 Rule 15 wording fix Add the audit-hermes-config.py Rule 15 wording fix from PR #117: - Violation message now reads 'URL is incorrect: (expected: )' - Detection logic unchanged - Matches URL and not-in-known-list branches remain byte-identical This consolidates relay #779 into a single PR (#118). --- audit-hermes-config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/audit-hermes-config.py b/audit-hermes-config.py index f2e6d8c..8a3afb6 100644 --- a/audit-hermes-config.py +++ b/audit-hermes-config.py @@ -278,7 +278,10 @@ def audit(path): # Check endpoint validity if server_name in VALID_MCP_ENDPOINTS: expected = VALID_MCP_ENDPOINTS[server_name] - check(url == expected, 'Rule 15', f'MCP server "{server_name}" URL is correct: {url}') + if url == expected: + check(True, 'Rule 15', f'MCP server "{server_name}" URL is correct: {url}') + else: + check(False, 'Rule 15', f'MCP server "{server_name}" URL is incorrect: {url} (expected: {expected})') else: warn('Rule 15', f'MCP server "{server_name}" URL may need validation (not in known list): {url}')