MCP Server K8s Lab - Unable to connect k8s-mcp-server

Hi team,

I’m doing the Crash Course: MCP For Beginners. Its going great so far. However, on the last lab i’m unable to implement the same steps that are given in the solution. mcp.json file is given to connect to pre-build k8s-mcp-server however following the same step i’m unable to perform the tasks that are given in the instructions.

Please find the instructions & mcp.json file below:

Configuration Steps:

  1. Click on the :kangaroo: kangaroo icon to open Roo-Code
  2. Click on the 3 servers icon at the top of Roo-Code
  3. Go to Edit Project MCP
  4. Add the following configuration to your MCP settings

mcp.json:
{
“mcpServers”: {
“k8s-mcp-server”: {
“command”: “sudo”,
“args”: [
“docker”,
“run”,
“-i”,
“–rm”,
“-v”,
“/home/lab-user/.kube/config:/home/appuser/.kube/config:ro”,
“ginnux/k8s-mcp-server:latest”,
“–mode”,
“stdio”
]
}
}
}

==================================
Error
Error executing MCP tool:
Not connected

Error
Unexpected API Response: The language model did not provide any assistant messages. This may indicate an issue with the API or the model’s output.

Hi @shayan.naeem007

Could you please share the lab link? I’ll check it.

Hi Raymond,

Its the second last module in course “Crash Course: MCP For Beginners”

https://learn.kodekloud.com/user/courses/crash-course-mcp-for-beginners/module/f1e44479-23c8-46ec-b1b9-d9e90146921b/lesson/06e9aacb-4b19-49c3-9e75-c5ef963cf5d9

Hi @shayan.naeem007

Thanks for your feedback,

This is a valid issue. It looks like the lab can’t run the MCP server using Docker. I’ve sent this to the team to check, and I will get back to you.

Hi @shayan.naeem007

Thanks for your feedback, the team has updated it.