I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

servidor de mcp-shell
3 years
Works with Finder
1
Github Watches
1
Github Forks
2
Github Stars
MCP Shell Server
A server that uses the Model Context Protocol (MCP) to execute shell commands. It functions as a bridge that allows AI agents to safely execute shell commands.
Features
- Execute shell commands (single-line and multi-line support)
- Support for various shells (bash, zsh, fish, powershell, cmd, etc.)
- Detailed error handling and logging
- MCP Inspector compatible
Installation
From npm (as a user)
# Using npm
npm install -g @mkusaka/mcp-shell-server
# Using yarn
yarn global add @mkusaka/mcp-shell-server
# Using pnpm
pnpm add -g @mkusaka/mcp-shell-server
From source (for development)
# Clone the repository
git clone https://github.com/mkusaka/mcp-shell-server.git
cd mcp-shell-server
# Install dependencies
pnpm install
# Build the project
pnpm build
MCP Configuration
Cursor Configuration
Add the following to your Cursor configuration file (~/.cursor/config.json
):
{
"mcpServers": {
"shell": {
"command": "npx",
"args": ["-y", "@mkusaka/mcp-shell-server"]
}
}
}
Rule Configuration
Add the following to your Cursor rules file:
You have tools at your disposal to solve the coding task. Follow these rules regarding tool calls:
1. ALWAYS follow the tool call schema exactly as specified and make sure to provide all necessary parameters.
2. The conversation may reference tools that are no longer available. NEVER call tools that are not explicitly provided.
3. **NEVER refer to tool names when speaking to the USER.** For example, instead of saying 'I need to use the shell_exec tool to execute your command', just say 'I will execute your command'.
4. Only calls tools when they are necessary. If the USER's task is general or you already know the answer, just respond without calling tools.
5. Before calling each tool, first explain to the USER why you are calling it.
Usage
Direct Execution
node dist/index.js
# or as an executable
./dist/index.js
Development Mode
pnpm dev
Testing with MCP Inspector
pnpm inspect
Command Line Arguments
-s, --shell <shell> Specify the path to the shell to use
-h, --help Display help message
-V, --version Display version information
Tool Reference
shell_exec
Executes commands in the specified shell.
Parameters:
-
command
(string, required): The shell command to execute
Resource Reference
The server provides the following system information as resources:
hostname
Returns the hostname of the system.
URI: hostname://
platform
Returns the operating system platform.
URI: platform://
shell
Returns the shell path being used by the server.
URI: shell://
username
Returns the current username.
URI: username://
system-info
Returns comprehensive system information in JSON format, including:
- hostname
- platform
- shell
- username
- CPU count
- Total memory
- Free memory
- System uptime
Usage Examples
Basic Command Execution
{
"name": "shell_exec",
"parameters": {
"command": "echo Hello, World!"
}
}
Multi-line Command (Heredoc) Execution
{
"name": "shell_exec",
"parameters": {
"command": "cat << EOF | grep 'example'\nThis is an example text.\nAnother line without the keyword.\nEOF"
}
}
Development
Project Structure
src/
├── index.ts # Main entry point
└── shell-server/
├── index.ts # Shell server implementation
└── lib/
└── logger.ts # Logging configuration
Logging
Logs are written to the mcp-shell.log
file.
License
MIT
相关推荐
Confidential guide on numerology and astrology, based of GG33 Public information
A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.
Converts Figma frames into front-end code for various mobile frameworks.
Therapist adept at identifying core issues and offering practical advice with images.
Advanced software engineer GPT that excels through nailing the basics.
A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!
Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.
Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx
Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.
Espejo de https: //github.com/suhail-ak-s/mcp-typesense-server
本项目是一个钉钉 MCP (Protocolo del conector de mensajes )服务 , 提供了与钉钉企业应用交互的 API 接口。项目基于 Go 语言开发 支持员工信息查询和消息发送等功能。 支持员工信息查询和消息发送等功能。
Un poderoso complemento Neovim para administrar servidores MCP (protocolo de contexto del modelo)
Reviews

user_Amh4YsSD
As an avid user of MCP Client by pinax-network, I am constantly impressed by its seamless integration and efficient performance. The user interface is intuitive, making navigation smooth and user-friendly. The tool significantly streamlines my workflow, offering robust features that cater to all my needs. I highly recommend checking out MCP Client at https://mcp.so/server/pinax-mcp/pinax-network for anyone looking to enhance their network management capabilities.