mcp_command-line_tool

Apache 2.0
1

Integrations

  • Provides integration with GitHub for repository cloning, allowing users to download the MCP tool from its GitHub repository.

  • Utilizes the Spring AI framework to create a service that executes local commands on the host computer, with safety measures for potentially destructive operations.

mcp_command-line_tool

使用spring ai框架,实现的mcp服务:用于在当前电脑执行本地命令

先决条件

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" ] }

提供的工具

使用示例:

-
security - not tested
A
license - permissive license
-
quality - not tested

mcp_command-line_tool

  1. 先决条件
    1. 安装
      1. 特别注意
        1. mcp服务配置
          1. 提供的工具
            1. 使用示例:
              ID: k4cazo07ku