Back to MCP directory
publicPublicdnsLocal runtime

linux-mcp-server

基于Spring AI框架实现的Linux命令代理服务,支持本地及SSH远程执行Shell命令

article

README

🚀 MCP 服务器

该 MCP 服务器基于 Spring AI 框架构建,专为在 Linux 系统上执行 Shell 命令而设计。它支持本地执行,也能通过 SSH 协议进行远程执行。配置文件 host.config 用于存储主机授权信息。

🚀 快速开始

本 MCP 服务器可快速在 Linux 系统中搭建,利用 Spring AI 框架的特性,实现 Shell 命令的本地或远程执行。你只需配置好 host.config 文件中的主机授权信息,即可开启使用。

✨ 主要特性

  • 框架优势:基于 Spring AI 框架构建,具备该框架的高效性与稳定性。
  • 执行方式多样:支持在 Linux 系统上进行本地 Shell 命令执行,同时也能通过 SSH 协议进行远程执行。
  • 配置便捷:使用 host.config 配置文件存储主机授权信息,方便管理与维护。
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client