How does the server handle dangerous commands?
Commands marked as `dangerous: true` trigger a warning and require explicit confirmation before execution, based on the `confirmationPrompt` and `consequences` fields defined in `commands.json`.
@HappyAny
基本情報
A robust command execution service with daily log rotation, designed to securely manage and execute system commands with safety checks and logging.
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"secure-command-executor-mcp-server": {
"command": "node",
"args": [
"index.js",
"--file",
"commands.json",
"--logs",
"logs",
"--port",
"3000"
]
}
}
}ツール一覧はまだありません
この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
A robust command execution MCP service with daily log rotation, designed to securely manage and execute system commands with safety checks and logging. It is intended for developers or system administrators who need controlled, auditable command execution through the Model Context Protocol.
Clone the repository, install dependencies (minimist, @modelcontextprotocol/sdk, zod), configure commands.json, and start the service with node index.js --file commands.json --logs logs --port 3000. Integrate it via MCP settings by specifying the script path and arguments. Use the provided HTTP API endpoints to execute, manage, and query commands and logs.
Commands marked as `dangerous: true` trigger a warning and require explicit confirmation before execution, based on the `confirmationPrompt` and `consequences` fields defined in `commands.json`.
Logs are stored in the directory specified by the `--logs` argument (default `logs`). Each day’s logs are saved in a separate file named `YYYY-MM-DD.json`, achieving daily rotation.
Modify the `commands.json` file to define command names, descriptions, examples, danger flags, and enabled status. Alternatively, use the `/manageCommand` API endpoint to add, update, or remove commands at runtime.
The server requires Node.js and the npm packages `minimist`, `@modelcontextprotocol/sdk`, and `zod`. These are installed via `npm install`.
Yes, use command-line arguments `--port` (default 3000), `--file` for commands path, and `--logs` for logs directory. Environment variables `PORT` and `NODE_ENV` are also supported.

Model Context Protocol Servers
YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
A 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!
🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
Free moving quotes for AI agents from Next Generation Movers, a licensed interstate mover (USDOT 3764697). US long-distance nationwide and local DC/MD/VA. Indicative ballpark price and booking options; optional $0.01 x40
コメント