Add mcp init command to configure MCP clients#311
Open
gtsiolis wants to merge 1 commit into
Open
Conversation
8943617 to
78a211a
Compare
0714fb4 to
7151747
Compare
7151747 to
b673d89
Compare
b673d89 to
f48ac8e
Compare
Member
Author
|
Thoughts, friends? 😁 |
anisaoshafi
approved these changes
Jun 19, 2026
anisaoshafi
left a comment
Collaborator
There was a problem hiding this comment.
Don't know how to test this properly, but the lstk mcp init properly configures the agent config files. I think it looks good 💯
anisaoshafi
reviewed
Jun 19, 2026
| }) | ||
| sink.Emit(output.MessageEvent{ | ||
| Severity: output.SeveritySecondary, | ||
| Text: "The first run pulls " + DockerImage + " — give it a minute.", |
Collaborator
carole-lavillonniere
approved these changes
Jun 22, 2026
carole-lavillonniere
left a comment
Collaborator
There was a problem hiding this comment.
👏 Could we just add a few lines to our readme about it?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Adds
lstk mcp init— configures the user's installed MCP clients (Cursor, Claude Code, Claude Desktop, VS Code, Codex) to launch the LocalStack MCP server, so coding agents can drive LocalStack with one command.This is a native Go reimplementation of the standalone setup wizard in
localstack/localstack-mcp-server(PR #40), not a wrapper aroundnpx … init. Rationale: lstk is a self-contained Go binary that has never required Node, and the users most likely to run this (Homebrew / raw-binary installs) often have no Node; reimplementing natively keeps the binary self-contained, reuses the auth token lstk already resolves (no token prompt), and matches lstk's output/sink house style.What's included
lstk mcpnamespace +initverb.--method npxswitches to the host-Node launcher. Thelocalstack/localstack-mcp-serverimage is now published publicly on Docker Hub, so the Docker-default path works end-to-end (verified: the generated entry matches the published image's stdio contract, and the server reportsLocalStack v0.5.0exposing 14 tools).internal/mcpconfig/: file-based JSON (Cursor, Claude Desktop, VS Code — VS Code uses the divergentservers+type: stdioschema) and CLI-managed shell-out (Claude Code, Codex via their ownmcp add).--method,--client,--token,--image-tag,--cache-dir,--workspace,--config KEY=VALUE. Auto-configures all detected clients by default.localstack, same specs) so the two installers are interchangeable.0600and redacted from error output; Docker socket grant disclosed in output + help.Follow-ups
lstk mcp removeandlstk mcp status.--image-tagto a release tag (e.g.0.5) instead of the movinglatest(which tracks the server repo'smain); pre-pull the image duringinitso the first client launch doesn't race the MCPinitializetimeout (~10–60s depending on client) on the cold pull; add--initto thedocker runargs (PID-1 reaper, avoids orphaned containers on client exit).lstk mcp serve— first-party and engineering-owned, replacing the TypeScript@localstack/localstack-mcp-server.initwould then default to--method lstk, pointing clients at lstk itself.Closes PRO-317.