Create the .mcp.json file to connect Claude Code to the DataSurface MCP server running in Kubernetes.
Create a .mcp.json file in the project root so Claude Code can connect to the DataSurface MCP server running in the Kubernetes cluster.
Look up the MCP service in the target namespace to get the NodePort:
kubectl get service -n <namespace> -l app=demo-psp-mcp-server
The service named demo-psp-mcp exposes port 8000 via a NodePort. Note the NodePort value (e.g., 32132).
kubectl get pods -n <namespace> -l app=demo-psp-mcp-server
Confirm the pod is in Running state.
.mcp.jsonWrite the following .mcp.json file to the project root, using the NodePort discovered in step 1:
{
"mcpServers": {
"datasurface": {
"type": "sse",
"url": "http://localhost:<nodeport>/sse"
}
}
}
Replace <nodeport> with the actual NodePort value from step 1.
Check that .claude/settings.local.json has the MCP server enabled. It should contain:
{
"enableAllProjectMcpServers": true,
"enabledMcpjsonServers": ["datasurface"]
}
If these settings are missing, add them.
Tell the user to restart Claude Code (or start a new session) for the MCP server connection to take effect.
/sse and /messages/demo1 but should be confirmed with the user