التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
shell-exec-mcpclaude mcp add shell-exec -- npx -y shell-exec-mcp@1.2.0
{
"mcpServers": {
"shell-exec": {
"command": "npx",
"args": [
"-y",
"shell-exec-mcp@1.2.0"
]
}
}
}
shell-exec-mcpclaude mcp add shell-exec -e 'MCP_TRANSPORT=<MCP_TRANSPORT>' -- npx -y shell-exec-mcp@1.2.0
{
"mcpServers": {
"shell-exec": {
"command": "npx",
"args": [
"-y",
"shell-exec-mcp@1.2.0"
],
"env": {
"MCP_TRANSPORT": "<MCP_TRANSPORT>"
}
}
}
}
متغيرات البيئة
MCP_TRANSPORTإلزامي Transport type.
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
shell-exec-mcp
MCP server for executing bash commands with background job support.
Use Cases
Run build commands: Execute npm run build, make, or other build tools and get the output.
File operations: Use find, grep, mv, rm, mkdir -p, stat etc. for file management.
Long-running tasks: Start servers or watch processes in background mode, check on them later.
System info: Run df -h, ps aux, env etc. to inspect the system state.
Setup
Follow the instructions on install-mcp, which generates the right config for your MCP client (Claude Code, Claude Desktop, Cursor, Cline, VS Code, and more).
Tools
| Tool | Description |
|---|---|
execute | Run a bash command (with optional timeout and background mode) |
get_job_status | Check status of a background job |
Contributing
Pull requests are welcomed on GitHub! To get started:
- Install Git and Node.js
- Clone the repository
- Install dependencies with
npm install - Run
npm run testto run tests - Build with
npm run build
Releases
Versions follow the semantic versioning spec.
To release:
- Use
npm version <major | minor | patch>to bump the version - Run
git push --follow-tagsto push with tags - Wait for GitHub Actions to publish to the NPM registry.
الأسئلة الشائعة
ما هو Shell Exec؟
Execute bash commands with background job support.
كيف أثبّت Shell Exec؟
يعمل على جهازك. في Claude Code: claude mcp add shell-exec -- npx -y shell-exec-mcp@1.2.0. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج Shell Exec إلى مفتاح API؟
نعم. يتطلب MCP_TRANSPORT، وتضبطها في إعداداته.
هل Shell Exec مفتوح المصدر؟
شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.
من يصون Shell Exec؟
ينشره domdomegg. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.