Skip to content

add security scanner tool#6

Closed
HarshCasper wants to merge 1 commit into
mainfrom
feature/scoutsuite
Closed

add security scanner tool#6
HarshCasper wants to merge 1 commit into
mainfrom
feature/scoutsuite

Conversation

@HarshCasper

Copy link
Copy Markdown
Member

No description provided.

@HarshCasper HarshCasper closed this May 1, 2026
HarshCasper added a commit that referenced this pull request Jul 4, 2026
* fix: make LocalStack lifecycle CLI-agnostic (support lstk; Docker-API stop)

Follow-up to #49 (gap #3). start/stop/restart hardcoded the Python `localstack`
binary and the management preflight hard-required it, so an `lstk`-only host (no
Python CLI) couldn't start/stop/restart through the MCP even though its LocalStack
was running.

- stop: stop the already-detected container via the Docker API — provenance-
  agnostic and CLI-free (works for localstack / lstk / compose / raw `docker run`).
- start: detect whichever lifecycle CLI is present (`localstack`, else `lstk`)
  rather than hardcoding `localstack`; clear error if neither is installed.
- restart: Docker-API stop + start (still applies new envVars).
- drop `requireLocalStackCli` from the management preflight (status/stop/restart no
  longer need it; start detects a CLI itself). Snowflake start still requires
  `localstack` — `--stack snowflake` is localstack-only.

Also (gap #6, for the lifecycle spawn): set PYTHONIOENCODING=utf-8 / PYTHONUTF8=1 on
the start subprocess so the Python CLI's emoji output doesn't crash under the Windows
cp1252 code page.

Adds DockerApiClient.stopContainer and detectLifecycleCli with unit tests, plus
lifecycle tool-boundary tests. Also restores the management status tests that were
dropped from main during the #49 squash merge.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* improve the code

* fix the snowflake cli timeout

* fix the docker test

* remove the test file (to be setup later)

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: HarshCasper <erbeusgriffincasper@gmail.com>
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.

1 participant