Add mcp init command to configure MCP clients#311
Draft
gtsiolis wants to merge 1 commit into
Draft
Conversation
8943617 to
78a211a
Compare
831a408 to
0714fb4
Compare
0714fb4 to
7151747
Compare
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.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.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.