ping
Verify the responsiveness of the Joern MCP Server by querying its version; returns the version if active or 'Query Failed' if unresponsive.
Instructions
Checks if the Joern server is running and responsive by querying its version
@return: The Joern server version if successful, 'Query Failed' if the server is not responding
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server_tools.py:9-19 (handler)The handler function for the 'ping' tool. It queries the Joern server for its version using the joern_remote helper and returns the version string or 'Query Failed' if unsuccessful. The @joern_mcp.tool() decorator registers it as an MCP tool named 'ping'.@joern_mcp.tool() def ping()->str: """Checks if the Joern server is running and responsive by querying its version @return: The Joern server version if successful, 'Query Failed' if the server is not responding """ response = joern_remote('version') if response: return extract_value(response) else: return 'Query Failed'