command-executor MCP Server
@MCP-Mirror
关于 command-executor MCP Server
Mirror of
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is command-executor MCP Server?
A Model Context Protocol server for executing pre-approved commands securely. It allows AI assistants (like Claude) to run whitelisted system commands through a controlled interface, preventing arbitrary command execution while enabling useful operations.
How to use command-executor MCP Server?
Install with npm install, then build with npm run build. Configure by setting the ALLOWED_COMMANDS environment variable to a comma-separated list of allowed commands. For use with Claude Desktop, add the path to the built index.js in the MCP server configuration file. The server exposes a single tool execute_command that takes a command string parameter.
Key features of command-executor MCP Server
- Secure command execution via a pre-approved command list
- Configurable allowed commands through environment variables
- Built with TypeScript and the MCP SDK
- Communication over stdio for seamless integration
- Error handling and security validations
- Real-time command output streaming
Use cases of command-executor MCP Server
- Allowing an AI assistant to run
git statusorlsto inspect a project - Enabling safe execution of
npm installorpythoncommands under AI guidance - Providing controlled command-line access without exposing a full shell
FAQ from command-executor MCP Server
How do I customize which commands are allowed?
Set the ALLOWED_COMMANDS environment variable to a comma-separated list, e.g., export ALLOWED_COMMANDS=git,ls,mkdir,python.
What commands are allowed by default?
The default allowed commands are git, ls, mkdir, cd, npm, npx, and python.
What are the runtime requirements?
The server requires Node.js and npm for installation and building. It is written in TypeScript and runs as a compiled JavaScript file.
How is security enforced?
Only explicitly allowed commands can be executed. Commands are validated by prefix to prevent injection, and shell execution is avoided. Environment variables are sanitized, and failed commands do not crash the server.
How do I debug the server?
Use the MCP Inspector tool by running npm run inspector in the project directory. This provides a URL for browser-based debugging of stdio communication.
其他 分类下的更多 MCP 服务器
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
Unity MCP ✨
justinpbarnettUnity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
Blender
ahujasidOpen-source MCP to use Blender with any LLM
ICSS
chokcoco不止于 CSS
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
评论