setup mcp config

Create a .mcp.json file connecting Claude Code to a Kubernetes MCP server via SSE.

2|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/datasurface/demo1 --skill setup-mcp-config-datasurface
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup mcp config
Source: https://github.com/datasurface/demo1/tree/main/.claude/skills/setup-mcp-config
Command: npx skills add https://github.com/datasurface/demo1 --skill setup-mcp-config-datasurface

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create a MCP configuration file to connect Claude Code to the DataSurface MCP server running in the Kubernetes cluster.

Core Features & Use Cases

  • Generate and place a .mcp.json file in your project root that points to the MCP SSE endpoint.
  • Verify the MCP server status and NodePort in the target namespace.
  • Validate Claude Code settings to enable MCP integration, then restart the editor to apply changes.

Quick Start

Find the MCP Service and NodePort in the target namespace using: kubectl get service -n <namespace> -l app=demo-psp-mcp-server Confirm the MCP server pods are running with: kubectl get pods -n <namespace> -l app=demo-psp-mcp-server Create the .mcp.json file at the project root, using the NodePort value from the previous step, for example: { "mcpServers": { "datasurface": { "type": "sse", "url": "http://localhost:<nodeport>/sse" } } } Ensure Claude Code local settings enable MCP: { "enableAllProjectMcpServers": true, "enabledMcpjsonServers": ["datasurface"] } Restart Claude Code (or start a new session) to apply the configuration.

Frequently Asked Questions about setup mcp config

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect Claude Code to an MCP server running in Kubernetes?

To connect Claude Code to an MCP server in Kubernetes, create a .mcp.json file at your project root pointing to the MCP SSE endpoint using the service NodePort, then update Claude Code settings to enable MCP integration.

What is the correct .mcp.json configuration format for an SSE endpoint?

The .mcp.json configuration for an SSE endpoint requires a mcpServers object containing the server name, type set to sse, and a url pointing to the http endpoint with the NodePort to enable SSE-based messaging.

How do I find the NodePort for an MCP service in a Kubernetes namespace?

Find the MCP service NodePort by running kubectl get service with the target namespace and app label, which returns the service details including the exposed NodePort needed for the .mcp.json url.

What Claude Code settings are required to enable MCP integration?

Claude Code requires local settings enabling enableAllProjectMcpServers set to true and an enabledMcpjsonServers array listing the MCP server name to activate the integration.

Do I need to restart Claude Code after updating the .mcp.json configuration?

Yes, you must restart Claude Code or start a new session after updating the .mcp.json file and modifying local settings to apply the new MCP configuration and establish the connection.

How do I verify MCP server pods are running before configuring Claude Code?

Verify MCP server pods are running by executing kubectl get pods with the target namespace and app label, ensuring the deployment is active before configuring the SSE endpoint connection.