unstract icon indicating copy to clipboard operation
unstract copied to clipboard

Static scan: 2 manifest/implementation gap(s)

Open Tetsurohhori opened this issue 3 months ago • 2 comments

I ran a static analyzer over MCP server manifests and implementations, looking for gaps between declared tool capabilities and what the code actually does. I found 2 item(s) in this repository that may be worth a look.

Findings

undeclared network access

  • Location: unstract/sdk1/src/unstract/sdk1/cache.py:93 (commit 6b916eac0f42)
  • Observed: network: requests.delete()
  • Why flagged: Declared MCP surface does not mention this undeclared network access.
response = requests.delete(url, headers=headers)

undeclared network access

  • Location: workers/log_consumer/process_log_history.py:62 (commit 6b916eac0f42)
  • Observed: network: httpx.HTTPTransport()
  • Why flagged: Declared MCP surface does not mention this undeclared network access.
transport = httpx.HTTPTransport(retries=3)

Reproduce

pip install mcp-blast-radius && mcp-blast-radius scan /path/to/your/mcp-server

If any of this is a false positive, please say so — I am tuning the detector.

Tetsurohhori avatar Aug 08 '26 03:08 Tetsurohhori

I will take this issue. Please assign it to me.

The static scan found undeclared network access in two locations. First, in unstract/sdk1/cache.py, there is a requests.delete() call that is not mentioned in the manifest. Second, in workers/log_consumer/process_log_history.py, an httpx.HTTPTransport() instance is used without declaration. I will check the manifest files for these modules and update them to include these network capabilities. This should align the declared capabilities with the actual implementation.

modelpath-dev avatar Sep 10 '26 21:09 modelpath-dev

Following up on my own report. I re-checked both findings at HEAD 520b98d, and neither needs a change.

  • unstract/sdk1/src/unstract/sdk1/cache.py:93 — ToolCache.delete() calls the platform's own cache service with the platform bearer token.
  • workers/log_consumer/process_log_history.py:62 — the log-history worker posts to the backend's internal API (/v1/execution-logs/process-log-history/).

Both are Unstract talking to its own services, and both sit outside the MCP server: backend/mcp_server/ imports neither sdk1 nor the log consumer, and there is no capability manifest in the repo for them to be missing from. The scanner counted code outside the MCP serving path as part of the MCP surface — a detector defect on my side, not a gap in this repository.

@modelpath-dev — please do not update the manifests. I am retracting the report.

Closing as false positives. Sorry for the noise.

Disclosure: the re-check and this comment were assisted by AI (Claude, Cursor). The code was re-checked at 520b98d, and I remain responsible for what is claimed here.

Tetsurohhori avatar Sep 13 '26 05:09 Tetsurohhori