ssh_ping
Check SSH connection health to verify server accessibility and network status for infrastructure management.
Instructions
Health check.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp_ssh/mcp_server.py:856-860 (handler)The implementation of the ssh_ping tool. This is a simple health check function decorated with @mcp.tool() for registration in the MCP server. It takes no parameters and returns a JSON response indicating the server is alive.@mcp.tool() def ssh_ping() -> ToolResult: """Health check.""" return {"status": "pong"}
- src/mcp_ssh/mcp_server.py:856-856 (registration)The @mcp.tool() decorator registers the ssh_ping function as an MCP tool.@mcp.tool()