Skip to main content
Glama
jiahuidegit

SSH MCP Server

by jiahuidegit

exec_sudo

Execute remote commands with sudo privileges on specified servers. Requires confirmation for dangerous commands and supports target switching.

Instructions

以 sudo 权限执行命令。必须指定目标服务器:使用 alias(推荐)或 host。只有一个活跃连接时可省略目标。多服务器场景下切换目标时需确认。危险命令需要 confirmationToken。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYes要执行的命令(不需要加 sudo 前缀)
sudoPasswordYessudo 密码(必需)
aliasNo服务器别名(推荐)
hostNo服务器地址(多个活跃连接时必须指定 alias 或 host,单连接时可省略)
portNoSSH 端口(可选)
usernameNo用户名(可选,配合 host 使用)
timeoutNo命令超时时间(毫秒,最小 1000)
useLongTimeoutNo使用长超时(最长 30 分钟),设置后忽略 timeout 参数
confirmationTokenNo危险命令确认 token
targetConfirmationTokenNo服务器切换确认 token
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Discloses the sudo execution behavior, confirmation tokens, and timeout options, but lacks details on success/failure responses, error handling, or rate limits. With no annotations, the description carries the full burden but does not fully cover behavioral traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single paragraph that is relatively concise but lacks structured formatting (e.g., bullet points) to improve readability. It front-loads the main purpose but could be organized better.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (10 parameters, no output schema, no annotations), the description covers execution context and confirmation needs, but does not address return values, error handling, or examples, leaving gaps in completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with parameter descriptions. The tool description adds usage context (e.g., when to omit host), but does not significantly enhance meaning beyond the schema. Baseline of 3 is appropriate given high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool executes commands with sudo privileges, distinguishing it from siblings like 'exec' (without sudo) and 'exec_shell'. It specifies requirements for target server and mentions confirmation tokens for dangerous commands.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides clear guidance on specifying target via alias or host, when to omit target in single-connection scenarios, and confirmation for dangerous commands and target switching. However, it does not explicitly state when to use alternatives like 'exec' for non-sudo commands.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other 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/jiahuidegit/ssh-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server