MCP.so
登录

command-executor MCP Server

@MCP-Mirror

关于 command-executor MCP Server

Mirror of

基本信息

分类

其他

运行时

node

传输方式

stdio

发布者

MCP-Mirror

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 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 status or ls to inspect a project
  • Enabling safe execution of npm install or python commands 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 服务器