Skip to content

Conversation

@hemang-snyk
Copy link
Contributor

@hemang-snyk hemang-snyk commented Dec 22, 2025

We are seeing some errors with Path not found. Example:


Traceback (most recent call last):\n File "mcp_scan/MCPScanner.py", line 224, in scan_server\n File "mcp_scan/mcp_client.py", line 204, in check_server\n File "asyncio/tasks.py", line 507, in wait_for\n File "mcp_scan/mcp_client.py", line 193, in _check_server_pass\n File "mcp_scan/mcp_client.py", line 141, in _check_server\n File "contextlib.py", line 214, in aenter\n File "mcp_scan/mcp_client.py", line 87, in get_client\nValueError: Path does not exist: docker\n"


Attempting to look for the command in a list of directories as a fallback mechanism.

@hemang-snyk hemang-snyk force-pushed the check-well-known-dirs branch from 73304dc to d399dd0 Compare December 22, 2025 15:18
Copy link
Contributor

@mmilanta mmilanta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good,
Can you make sure the same logic is used when checking if the binary is signed? Here: src/mcp_scan/signed_binary.py

@hemang-snyk hemang-snyk requested a review from mmilanta December 22, 2025 15:31
Copy link
Contributor

@mmilanta mmilanta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@hemang-snyk hemang-snyk merged commit 41067bd into main Dec 22, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants