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}')