About txn2/kubefwd
txn2/kubefwd is an MCP server published by txn2 in the Cloud category: bulk port forwarding Kubernetes services for local development. Conduid read 28 tools from its source: add_namespace, add_service, diagnose_errors, find_services, get_analysis, get_connection_info and 22 more. No package is published for it, so it installs from a source checkout.
The repository has 4.2K stars and 238 forks, is licensed Apache-2.0, and its last commit was on 1 Dec 2026. The latest release is v1.25.18 (16 Oct 2026): kubefwd v1.25.18 Security release. It follows v1.25.17 (16 Oct 2026), and the 5 most recent releases go back to v1.25.14 (22 Apr 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include devtools, kubernetes, kubefwd, devops-tools, devops and k8s.
Install
git clone https://github.com/txn2/kubefwdTools (28)
add_namespaceForward all services in a namespace to localhost. Adds /etc/hosts entries for each service. Returns list of discovered services with connection info.add_serviceForward a single service to localhost. Returns local IP, hostnames (added to /etc/hosts), and mapped ports. Requires namespace and service_name.diagnose_errorsDiagnose current errors with root cause analysis. Returns error types, affected pods, and specific fix suggestions.find_servicesSearch forwarded services by name pattern, port number, or namespace. Returns matching services with connection info.get_analysisFull analysis with issues, priorities, and recommended actions. Returns classified errors and specific tool calls to fix them. Best starting point for troubleshooting.get_connection_infoGet connection details for a forwarded service: IP address, hostnames, ports, and environment variables. Use after add_service to get ready-to-use connection strings. Requires service_name.get_endpointsGet endpoints for a Kubernetes service. Shows which pods are backing the service and their ready state. Useful for debugging service-to-pod routing.get_eventsGet Kubernetes events for debugging. Shows scheduling, pulling, starting, killing events. Filter by resource kind (Pod, Service) and name. Critical for diagnosing startup failures.get_healthGet kubefwd health: status (healthy/degraded/unhealthy), version, uptime, and service/error counts.get_historyAccess event, error, or reconnection history. Filter by type and service key. Analyze patterns over time. Requires type ('events', 'errors', or 'reconnections').get_http_trafficView HTTP requests through a forward: method, path, status code, response time. Debug API calls and verify connectivity. Requires service_key (e.g., 'myservice.namespace.context') or forward_key.get_logsGet kubefwd log entries. Filter by level (debug/info/warn/error) or search text. Returns timestamped messages.get_metricsGet bandwidth metrics: total bytes in/out, transfer rates, per-service breakdown. Shows network activity.get_podGet detailed pod information including containers, status, conditions, resources, and events. Use to diagnose pod issues. Requires namespace and pod_name.get_pod_logsGet logs from a Kubernetes pod. Useful for debugging services. Returns recent log lines from the pod's container. Requires namespace and pod_name. Get pod names from list_pods or get_service output.get_quick_statusFast health check returning ok/issues/error with message. Use as first check before taking action.get_serviceGet detailed service info: all port forwards, pods, hostnames, traffic bytes/rates, and error state. Requires key (e.g., 'servicename.namespace.context').list_contextsList Kubernetes contexts from kubeconfig with current context marked. Use to discover clusters before forwarding.list_hostnamesList all /etc/hosts entries created by kubefwd. Shows hostname-to-IP mappings for each forwarded service.list_k8s_namespacesList available Kubernetes namespaces with forwarding status. Use to discover what can be forwarded.list_k8s_servicesList services in a namespace with type, ports, and forwarding status. Use to discover what can be forwarded. Requires namespace.list_podsList Kubernetes pods with status, ready state, restarts, and age. Filter by label selector or service name. Essential for finding which pods back a service. Requires namespace.list_servicesList all forwarded services with status. Returns service names, namespaces, contexts, forward counts, and error states.reconnect_all_errorsReconnect all errored services at once. Returns count of services triggered.reconnect_serviceReconnect a service to its pods. Use when service is in error state. Forces immediate reconnection attempt. Requires key (e.g., 'servicename.namespace.context').remove_namespaceStop all service forwards in a namespace. Removes /etc/hosts entries and cleans up network interfaces.remove_serviceStop forwarding a service. Removes /etc/hosts entries and releases the allocated IP. Requires key (e.g., 'servicename.namespace.context').sync_serviceRe-sync pods for a service. Discovers pod changes and updates forwards. Use after deployments or pod restarts. Requires key (e.g., 'servicename.namespace.context').Security checks
Static checks derived from the repository 6 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 709 words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by go.sum.
- ✓No dynamic code executionScanned 76 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiocmd/kubefwd/mcp/mcp.go:166
- Starts other programs
- 5 callspkg/fwdapi/network.go:78, pkg/fwdnet/fwdnet.go:88, pkg/fwdnet/fwdnet.go:102
- Outbound network calls
- 3 callspkg/fwdmcp/httpclient.go:37, pkg/fwdmcp/httpclient.go:54, pkg/fwdport/fwdport.go:485
- Writes or deletes files
- 2 callspkg/fwdhost/fwdhost.go:25, pkg/fwdhost/fwdhost.go:40
- Lockfile
- go.sum
Pattern matches on the source text of 76 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 709 words, fetched 6 days ago. The original in the repository is authoritative.
Read full README