Back to Home
josefbacik icon

kerneldev-mcp

Verified Safe

by josefbacik

Overview

An MCP server for intelligent Linux kernel configuration management, building, and filesystem regression testing, including advanced device management for performance optimization.

Installation

Run Command
python -m kerneldev_mcp.server

Environment Variables

  • KERNELDEV_NULL_BLK_MAX_SIZE
  • KERNELDEV_NULL_BLK_TOTAL
  • KERNELDEV_DEVICE_POOL

Security Notes

The server heavily relies on `subprocess.run` and `subprocess.Popen` to execute system commands (`make`, `git`, `lvm` tools, `virtme-ng`, `qemu`, `sudo`). It is designed for kernel developers with appropriate system privileges. The documentation explicitly states that it requires `sudo` access for many operations (e.g., LVM device management, `modprobe`, `chown`) without password prompts, implying a trust relationship with the user running the MCP server. Arbitrary shell commands/scripts can be executed inside isolated VMs via `boot_test` and `boot_with_custom_command` tools, which is documented as intentional for flexibility and requires trusted input. There is no direct `eval` from user input in the core server logic. Remote code execution would be possible if the server is run by an untrusted user with configured passwordless sudo access.

Similar Servers

Stats

Interest Score29
Security Score7
Cost ClassHigh
Avg Tokens3000
Stars1
Forks0
Last Update2025-11-21

Tags

kernel-developmentLinuxtestingconfiguration-managementbuild-automationfilesystem-testingLVMvirtualizationAI-agent-tool