host.docker.internal does not exist on Linux — the MCP bridge silently dies there

Đang mở
#100 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
64/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, elixir
Lĩnh vực
devops, infrastructure

Hướng nghiên cứu

Bắt đầu tại Loopyard.MCP.base_url/0 và lần theo đường dẫn tạo work container để xem các container được khởi chạy như thế nào và LOOPYARD_MCP_URL được xử lý ra sao. Tái hiện vấn đề với Docker Engine thuần trên Linux, sau đó xác minh rằng một work container truy cập được MCP bridge và quá trình khởi động báo lỗi khi không thể truy cập.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug reliability

Loopyard.MCP.base_url/0 falls back to http://host.docker.internal:<port>, described as "the Docker-host alias every workspace container can resolve (provided by the Docker runtime)".

That holds on macOS — verified resolving under Colima (192.168.5.2), and Docker Desktop and OrbStack both provide it. Plain Docker Engine on Linux does not, and nothing in the repo passes --add-host=host.docker.internal:host-gateway (grep: no hits).

The README states Linux support with CI as the evidence, so this is a real gap: there, agents lose every Loopyard control-plane tool (ports, service lifecycle, ask/secret round-trips, the approval-gated fork/integrate flows) with no obvious cause. LOOPYARD_MCP_URL is an escape hatch, but nothing tells you to reach for it.

Do: add --add-host=host.docker.internal:host-gateway when creating work containers (harmless where the alias already exists), or detect and fall back to the gateway IP. Either way, fail loudly at boot if the container cannot reach the bridge, rather than letting agents run toolless.

Acceptance: a work container on Linux Docker Engine can reach the MCP bridge.

Ngôn ngữ chính
Elixir
Star
85
Fork
11
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của loopyard/loopyard

Tất cả issue của loopyard/loopyard

Issue tương tự

Thêm issue về Elixir

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.