You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG | MCP can't find localStack container, expects a constant name #10
I've started working with localStack this week, after setting it up in a docker-compose file.
all the containers get a prefix name.
when I tried using the mcp, it couldn't find the running container.
after digging a bit and asking chat, it seems the issue is that the expected container name is hardcoded to be "localstack-main", and once I set the container name to that, the mcp had no issues.
file in question: src/lib/docker/docker.client.ts
asyncfindLocalStackContainer(): Promise<string>{construnning=(await(this.docker.listContainersasany)({filters: {status: ["running"]},}))asArray<{Id: string;Names?: string[]}>;constmatch=(running||[]).find((c)=>(c.Names||[]).some((n)=>{constname=(n||"").startsWith("/") ? n.slice(1) : n;returnname==="localstack-main";}));if(match)returnmatch.Idasstring;thrownewError("Could not find a running LocalStack container named 'localstack-main'.");}
Activity