Skip to content

Commit 246b684

Browse files
committed
fix(mcp-scan): report single-server scans even with zero tools
Remove the skip-if-no-tools guard. URL-less servers (e.g. Claude desktop OAuth remote connectors, which can't be tool-scanned) must still report so the control plane can create metadata and fingerprint/group them. The backend already upserts metadata regardless of tool count. Behavior change: a single-server scan that yields 0 tools now always POSTs.
1 parent 1b65aca commit 246b684

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

scripts/coding_discovery_tools/scan_single_mcp_server.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,6 @@ def main():
111111
print(f"error: scan produced no result [{ctx}]", file=sys.stderr)
112112
return 1
113113

114-
scan = server_obj.get("scan") or {}
115-
if not (scan.get("tools") or []):
116-
reason = (scan.get("error") or {}).get("code") or "no tools"
117-
print(f"skip: not reporting ({reason}, tools=0) [{ctx}]", file=sys.stderr)
118-
return 0
119-
120114
try:
121115
result = report(args.domain, args.api_key, server_obj)
122116
except Exception as e:

0 commit comments

Comments
 (0)