Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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'

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/sfncat/mcp-joern'

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