Skip to content

TypeError: Cannot read properties of undefined (reading 'toString') #82

@WillemBerr

Description

@WillemBerr

Hi,

I'm trying to use this MCP Server for K8s on MacOS.

I have a GKE Cluster, and I can interact with cluster through Kubectl.

But when I'm asking Claude Desktop to list pods on my cluster, I always have this error:

Error executing code: MCP error -32603: MCP error -32603: Tool execution failed: TypeError: Cannot read properties of undefined (reading 'toString')

My kubeconfig contains only this cluster, have 655 right, so everyone can read it.

I found this error in server log:

2025-03-27T22:46:52.080Z [kubernetes] [info] Message from server: {"jsonrpc":"2.0","id":77,"error":{"code":-32601,"message":"Method not found"}}

Any idea?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions