
Kubefwd
io.github.txn2由 GitHub 帳號 txn2 發布v1.25.18更新於 Oct 24, 2026
Kubernetes port forwarding for local development with automatic /etc/hosts entries.
概覽
Kubefwd 將 Kubernetes 服務批次連接埠轉送到本機,為每個服務分配獨立回送 IP 並寫入 /etc/hosts,並透過 MCP 提供給 AI 助理使用。
- 可以做什麼
- 將一個或多個 Kubernetes 命名空間中的服務批次轉送到本機回送位址,可依標籤篩選。
- 透過自動寫入的 /etc/hosts 項目,以叢集內的服務名稱存取服務,讓既有連線字串在本機直接可用。
- 在互動式終端介面中監控服務、流量與容器日誌,並在連線中斷時自動重新連線。
- 透過內建 REST API 以程式方式控制轉送,MCP 整合即以此向 Claude Code、Cursor 等助理提供能力。
- 適用情境
- 適合在本機開發時需要連線 Kubernetes 開發叢集內服務的情況,並希望由助理建立或檢視轉送,而不是逐一手動執行 kubectl port-forward。也適合需要同時以名稱存取多個服務的工作流程。
- 執行需求
- 以本機程序在桌面執行(macOS、Windows、Linux 安裝套件或 Docker)。需要已設定叢集存取權限的 kubectl,以及 root/sudo 權限以修改 /etc/hosts 並建立網路介面。未宣告環境變數、標頭或驗證方式。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Kubefwd,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
kubefwd (Kube Forward)
[kubefwd - kubernetes bulk port forwarding]
[CNCF Landscape] [GitHub license] [codecov] [Go Report Card] [GitHub release] [GitHub Downloads] [OpenSSF Scorecard] [OpenSSF Best Practices] [SLSA 3]
Documentation | Getting Started | User Guide | API Reference | MCP (AI Integration)
Develop Locally, Connect to Kubernetes
kubefwd enables developers to work on their local machine while seamlessly accessing services running in a Kubernetes cluster. If you're building a new API that needs to connect to a database at db:5432, an auth service at auth:443, and a cache at redis:6379, all running in your development cluster, kubefwd makes them available locally by their service names, exactly as they would appear in-cluster. No environment-specific configuration, no local service setup, no Docker Compose files. Just run kubefwd and your application's existing connection strings work.
This is the essential use case: reduce or eliminate environment-specific connection setup and configurations during local development. Your code uses http://api-gateway:8080 in production? It works the same way on your laptop with kubefwd.
Bulk Kubernetes port forwarding with an interactive TUI, unique IPs per service, and automatic reconnection.
kubefwd is a command-line utility that bulk port forwards Kubernetes services to your local workstation. Each service gets its own unique loopback IP (127.x.x.x), eliminating port conflicts and enabling realistic local development with cluster services accessible by name.
Quick Start
Press ? for help, q to quit. See Getting Started for detailed installation and setup.
How It Works
kubefwd discovers services in your namespace, assigns each a unique loopback IP, updates /etc/hosts with service names, and establishes port forwards through the Kubernetes API. Access services by name just like in-cluster:
Features
- Interactive TUI: Real-time service monitoring with traffic metrics
- Unique IP per Service: Each service gets its own 127.x.x.x address
- Auto-Reconnect: Reconnects when pods restart or connections drop
- Bulk Forwarding: Forward all services in a namespace with one command
- Live Traffic Monitoring: See bytes in/out and HTTP activity
- Pod Log Streaming: View container logs in the TUI
- REST API: Programmatic control via HTTP endpoints
- MCP Support: Integration with AI assistants (Claude Code, Cursor)
Installation
macOS:
Linux: Download .deb, .rpm, or .tar.gz from releases
Windows:
Docker:
Usage
Why kubefwd?
Unlike kubectl port-forward, kubefwd:
See Comparison for detailed comparisons with Telepresence, mirrord, and other tools.
Documentation
Full documentation at kubefwd.com:
- Getting Started - Installation and setup
- User Guide - Interface and shortcuts
- Configuration - CLI options
- Advanced Usage - Multi-cluster, selectors
- REST API - API reference
- MCP Integration - AI assistant setup
- Troubleshooting - Common issues
- Architecture - Technical details
- Comparison - vs Telepresence, mirrord
Requirements
- kubectl configured with cluster access
- Root/sudo access (for /etc/hosts and network interfaces)
Contributing
We welcome contributions for bug fixes, tests, and documentation. Feature development is limited to maintainers. See CONTRIBUTING.md.
License
Open source by Craig Johnston, sponsored by Deasil Works, Inc.
來源:README.md,提交 a4dc494
工具
0版本歷史
2- v1.25.18最新Oct 17, 2026
- v1.25.16Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分