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.

コメント

「その他」の他のコンテンツ