๐ฅ๏ธ ์ ธ MCP ์๋ฒ
๐ PyPI ๋ฒ์
๐ ๋ผ์ด์ผ์ค: MIT
๐ ํ์ด์ฌ
๐ ์ฝ๋ ์คํ์ผ: ๊ฒ์ ์
๐ Shell MCP ์๋ฒ๋ฅผ ์ฌ์ฉํ์ฌ AI ์ ํ๋ฆฌ์ผ์ด์ ์ ๋ณด์ ์ ธ ๋ช ๋ น ์คํ ๊ธฐ๋ฅ์ ์ถ๊ฐํ์ธ์! ๋ชจ๋ธ ์ปจํ ์คํธ ํ๋กํ ์ฝ(MCP)์ ์ํด ์ค๊ณ๋์์ต๋๋ค.
โจ ํน์ง
๐ ์์ ํ ์คํ - ๋ช ๋ น์ ์ง์ ๋ ๋๋ ํ ๋ฆฌ์์๋ง ์คํ๋ฉ๋๋ค.
๐ ๋ค์ค ์ ธ - bash, sh, cmd, powershell ์ง์
โฑ๏ธ ์๊ฐ ์ด๊ณผ ์ ์ด - ์ฅ๊ธฐ ์คํ ๋ช ๋ น์ ์๋ ์ข ๋ฃ
๐ ํฌ๋ก์ค ํ๋ซํผ - Unix ๋ฐ Windows ์์คํ ๋ชจ๋์์ ์๋ํฉ๋๋ค.
๐ก๏ธ ๊ธฐ๋ณธ์ ์ผ๋ก ์์ ํจ - ๋ด์ฅ๋ ๋๋ ํ ๋ฆฌ ๋ฐ ์ ธ ๊ฒ์ฆ
Related MCP server: Terminal MCP Server
๐ ๋น ๋ฅธ ์์
์ค์น
์ง์์คํผ1
๐ Claude ๋ฐ์คํฌํฑ ํตํฉ
์ ธ ๋ช ๋ น ์คํ์ ํ์ฑํํ๋ ค๋ฉด Claude Desktop ๊ตฌ์ฑ์ ๋ค์์ ์ถ๊ฐํ์ธ์.
{
"mcpServers": {
"shell-mcp-server": {
"command": "uv",
"args": [
"--directory",
"/path/to/shell-mcp-server",
"run",
"shell-mcp-server",
"/path/to/allowed/dir1",
"/path/to/allowed/dir2",
"--shell", "bash", "/bin/bash",
"--shell", "zsh", "/bin/zsh"
]
}
}
}๐ฎ ์ฌ์ฉ ์์
๊ธฐ๋ณธ ํ์ผ ์์
# List directory contents
result = execute_command(
command="ls -la",
shell="bash",
cwd="/path/to/project"
)
# Find files by pattern
result = execute_command(
command="find . -name '*.py'",
shell="bash",
cwd="/path/to/project"
)ํ๋ก์ ํธ ๊ด๋ฆฌ
# Git operations
result = execute_command(
command="git status && git diff",
shell="bash",
cwd="/path/to/repo"
)
# Package management
result = execute_command(
command="pip list --outdated",
shell="bash",
cwd="/path/to/python/project"
)์์คํ ์ ๋ณด
# Resource usage
result = execute_command(
command="df -h && free -h",
shell="bash",
cwd="/path/to/dir"
)
# Process monitoring
result = execute_command(
command="ps aux | grep python",
shell="bash",
cwd="/path/to/dir"
)ํ์ผ ์ฒ๋ฆฌ
# Search file content
result = execute_command(
command="grep -r 'TODO' .",
shell="bash",
cwd="/path/to/project"
)
# File manipulation
result = execute_command(
command="awk '{print $1}' data.csv | sort | uniq -c",
shell="bash",
cwd="/path/to/data"
)Windows ๊ด๋ จ ์์
# List processes
result = execute_command(
command="Get-Process | Where-Object {$_.CPU -gt 10}",
shell="powershell",
cwd="C:\\path\\to\\dir"
)
# System information
result = execute_command(
command="systeminfo | findstr /B /C:'OS'",
shell="cmd",
cwd="C:\\path\\to\\dir"
)โ๏ธ ๊ตฌ์ฑ
๋ช ๋ น์ค ์ธ์๋ฅผ ์ฌ์ฉํ์ฌ ๋์์ ๊ตฌ์ฑํฉ๋๋ค.
๋ ผ์ | ์ค๋ช |
| ๐ ํ์ฉ๋ ๋๋ ํ ๋ฆฌ ๋ชฉ๋ก |
| ๐ ์ ธ ์ฌ์(์ด๋ฆ ๋ฐ ๊ฒฝ๋ก) |
ํ๊ฒฝ ๋ณ์:
COMMAND_TIMEOUT: โฑ๏ธ ์ต๋ ์คํ ์๊ฐ(์ด) (๊ธฐ๋ณธ๊ฐ: 30)
๐ก๏ธ ๋ณด์ ๊ธฐ๋ฅ
๐ ๋๋ ํ ๋ฆฌ ๊ฒฉ๋ฆฌ : ๋ช ๋ น์ ์ง์ ๋ ๋๋ ํ ๋ฆฌ์์๋ง ์คํ๋ ์ ์์ต๋๋ค.
๐ ์ ธ ์ ์ด : ๊ตฌ์ฑ๋ ์ ธ๋ง ํ์ฉ๋ฉ๋๋ค.
โฐ ์๊ฐ ์ด๊ณผ ๋ณดํธ : ๋ชจ๋ ๋ช ๋ น์๋ ๊ตฌ์ฑ ๊ฐ๋ฅํ ์๊ฐ ์ด๊ณผ๊ฐ ์์ต๋๋ค.
๐ ๊ฒฝ๋ก ๊ฒ์ฆ : ์์ ๋๋ ํฐ๋ฆฌ ๊ฒ์ฆ์ ํธ๋๋ฒ์ค ๊ณต๊ฒฉ์ ๋ฐฉ์งํฉ๋๋ค.
๐ค ๊ถํ ๊ฒฉ๋ฆฌ : ๋ช ๋ น์ ์๋ฒ ํ๋ก์ธ์ค์ ๋์ผํ ๊ถํ์ผ๋ก ์คํ๋ฉ๋๋ค.
๐ ๏ธ ๊ฐ๋ฐ
๊ฐ๋ฐ ํ๊ฒฝ์ ์ค์ ํ์ธ์.
# Create and activate virtual environment
uv venv
source .venv/bin/activate
# Install development dependencies
uv pip install -e ".[test]"
# Run tests
python -m pytest
# Run tests with coverage
python -m pytest --cov=shell_mcp_server๐ค ๊ธฐ์ฌํ๊ธฐ
์ฌ๋ฌ๋ถ์ ์ฐธ์ฌ๋ฅผ ํ์ํฉ๋๋ค! ์์ ๋กญ๊ฒ ์ฐธ์ฌํด ์ฃผ์ธ์:
๐ ๋ฒ๊ทธ ์ ๊ณ
๐ก ๊ธฐ๋ฅ ์ ์
๐ง ํ ๋ฆฌํ์คํธ ์ ์ถ
๐ ๋ฌธ์ ๊ฐ์
๐ ๋ผ์ด์ผ์ค
MIT ๋ผ์ด์ผ์ค - ์์ธํ ๋ด์ฉ์ ๋ผ์ด์ผ์ค๋ฅผ ์ฐธ์กฐํ์ธ์.
๐ Secure Shell Access๋ก AI๋ฅผ ๊ฐํํ์ธ์! ๐
๋ชจ๋ธ ์ปจํ ์คํธ ํ๋กํ ์ฝ ์ฉ์ผ๋ก ์ ์ | MCP ์ปค๋ฎค๋ํฐ์์ โค๏ธ๋ก ์ ์
Maintenance
Tools
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/blazickjp/shell-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
