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.
「その他」の他のコンテンツ

Sequential Thinking
modelcontextprotocolModel Context Protocol Servers
ICSS
chokcoco不止于 CSS
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
FastMCP v2 🚀
jlowin🚀 The fast, Pythonic way to build MCP servers and clients.
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
コメント