mcp_command-line_tool
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp_command-line_tool
使用spring ai框架,实现的mcp服务:用于在当前电脑执行本地命令,也可以连接远程ssh,执行远程命令
先决条件
MCP 服务器需要 Java 17 或更高版本。
安装
克隆此存储库: https://github.com/gengzi/mcp_command-line_tool
./mvn clean install特别注意
执行命令时,仅仅拦截了rm 删除等操作,其他命令都未拦截。 如果操作不可撤销的命令时,请谨慎操作,由于是大模型来操作工具,可能操作不可撤销的命令。(有些命令不允许执行,只能手动执行)
mcp服务配置
Cherry studio config:
{
"name": "命令行工具",
"type": "stdio",
"description": "",
"isActive": true,
"command": "java",
"args": [
"-jar",
"本地路径/mcp_command-line_tool-0.0.1-SNAPSHOT.jar"
]
}
ssh配置: 支持私钥登录,也支持密码登录
--ssh.passwd=密码
--ssh.privatekeypath=私钥文件路径"
{
"name": "命令行工具",
"type": "stdio",
"description": "",
"isActive": true,
"command": "java",
"args": [
"-jar",
"/Users/gengshuaijia/work/project/mcp/mcp_command-line_tool/target/mcp_command-line_tool-0.0.1-SNAPSHOT.jar",
"--ssh.host=ssh.xxx地址",
"--ssh.username=用户名",
"--ssh.privatekeypath=私钥文件路径",
"--ssh.port=22"
]
}提供的工具

使用示例:
本地命令行

远程命令行

Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Retired. Use Collimer's remote MCP server at https://app.collimer.com/mcp instead.
Related MCP Servers
- AlicenseBqualityDmaintenanceA command-line tool that enables the use of MCP with the Room protocol, allowing agents to create and interact in peer-to-peer virtual rooms for goal-oriented collaboration.56 npm23Apache 2.0
- MIT
- AlicenseNot gradedqualityDmaintenanceA command-line tool for managing MCP servers in Claude App, which can also act as an MCP server itself to enable package management and discovery.39 npm106AGPL 3.0
- AlicenseNot gradedqualityCmaintenanceThis MCP server is a zero-config CLI tool that lets developers tap into any stdio-based MCP server from their terminal, enabling them to list tools/resources/prompts, call tools with JSON arguments, and health-check servers without requiring a full AI client or browser setup.1MIT