ssh_ping
Verify the health and connectivity of SSH servers before executing commands, ensuring reliable and secure infrastructure management.
Instructions
Health check.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/mcp_ssh/mcp_server.py:856-859 (handler)The actual implementation of the 'ssh_ping' tool. It is a simple health check decorated with @mcp.tool() that returns {'status': 'pong'}.
@mcp.tool() def ssh_ping() -> ToolResult: """Health check.""" return {"status": "pong"} - src/mcp_ssh/mcp_server.py:856-856 (registration)The tool is registered using the @mcp.tool() decorator on the ssh_ping() function in mcp_server.py, which uses FastMCP's tool registration mechanism.
@mcp.tool()