Cursor
Your servers as tools in Cursor.
Add K2Shell to ~/.cursor/mcp.json with an API key and Cursor's agent can inspect and fix servers under your policy.
{
"mcpServers": {
"k2shell": {
"url": "https://your-k2shell-host/mcp",
"headers": { "Authorization": "Bearer k2shell_..." }
}
}
}What you get
Drop-in config
The API keys page prints the exact snippet for Cursor.
Least privilege
Give Cursor an allowlist key for the commands it needs.
Audit
Everything it runs is logged with the key's name.