Skip to content

add a new aws client tool#3

Merged
HarshCasper merged 1 commit into
mainfrom
aws-client
Sep 6, 2025
Merged

add a new aws client tool#3
HarshCasper merged 1 commit into
mainfrom
aws-client

Conversation

@HarshCasper

Copy link
Copy Markdown
Member

No description provided.

@remotesynth remotesynth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Did some basic testing and it seemed to work correctly

@HarshCasper HarshCasper merged commit 58679d7 into main Sep 6, 2025
1 check passed
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.

2 participants