localstack / localstack/localstack-mcp-server
BUG | MCP can't find localStack container, expects a constant name
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 27
- フォーク
- 13
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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
async findLocalStackContainer(): Promise<string> {
const running = (await (this.docker.listContainers as any)({
filters: { status: ["running"] },
})) as Array<{ Id: string; Names?: string[] }>;
const match = (running || []).find((c) =>
(c.Names || []).some((n) => {
const name = (n || "").startsWith("/") ? n.slice(1) : n;
return name === "localstack-main";
})
);
if (match) return match.Id as string;
throw new Error("Could not find a running LocalStack container named 'localstack-main'.");
}
this should be a configurable option.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
src/lib/docker/docker.client.ts の findLocalStackContainer から開始し、MCP サーバーがどのように設定を受け取るかを追跡します。固定された localstack-main への依存を設定可能なコンテナ名に置き換え、Docker Compose のプレフィックスに対するサポートを維持します。MCP がその正確な名前を必要とせずに、実行中の LocalStack コンテナを見つけられれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker, typescript
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100