Integrate external tools using Model Context Protocol (MCP)
masterKube-copilot supports the Model Context Protocol (MCP) to allow the LLM to use external tools during diagnose and execute operations.
- Create an MCP configuration file (e.g.,
mcp-config.json):
{
"mcpServers": {
"sequential-thinking": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sequential-thinking"
]
},
"kubernetes": {
"command": "uvx",
"args": [
"mcp-kubernetes-server"
]
}
}
}- Run kube-copilot with the config:
kube-copilot execute --instructions "Your instructions" --mcp-config path/to/mcp-config.json{
"mcpServers": {
"sequential-thinking": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sequential-thinking"
]
}
}
}