Skip to content

[mcp-stress-test] kubernetes requires valid KUBECONFIG authentication #837

@github-actions

Description

@github-actions

The nightly stress test detected that the kubernetes MCP server requires authentication to function properly.

Test Details

  • Test Session: stress-test-20260208-034257
  • Test Date: 2026-02-08T03:42:57Z
  • Server Container: mcp/kubernetes

Required Authentication Token

Environment Variable: KUBECONFIG

Token Type: Kubernetes Cluster Configuration

How to Obtain:

  1. Ensure you have access to a Kubernetes cluster
  2. Get kubeconfig file from cluster (usually ~/.kube/config)
  3. Verify config has valid cluster definitions
  4. Add to repository secrets or mount as file

Error Message

TypeError: Cannot read properties of undefined (reading 'clusters')

Analysis

The kubernetes server expects a valid kubeconfig file but received an invalid/empty config. The kubeconfig structure is malformed or missing required cluster definitions.

Suggested Configuration

Add the following to your MCP Gateway configuration:

{
  "kubernetes": {
    "type": "stdio",
    "container": "mcp/kubernetes",
    "env": {
      "KUBECONFIG": "${KUBECONFIG}",
      "KUBERNETES_CLUSTER_URL": "${KUBERNETES_CLUSTER_URL}"
    }
  }
}

Next Steps

  • Provide valid kubeconfig file or cluster connection
  • Ensure kubeconfig has proper cluster definitions
  • Test with a real cluster or mock config
  • Add config to repository secrets
  • Update stress test configuration
  • Verify server works in next nightly test

Generated by Nightly MCP Stress Test
Test Session: stress-test-20260208-034257

AI generated by Nightly MCP Server Stress Test

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions