Would that stop Claude from executing this code:
python -c '
print(open("~/.kube/config.txt").read())
'
The point I'm making here is that with an MCP you can disable shell access entirely, at which point the agent cannot read credential files that it's not meant to be able to access.