version
Retrieve the current version details of the Frappe MCP Server to verify compatibility and access capabilities.
Instructions
Get version information for the Frappe MCP server.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/helpers.py:22-25 (handler)The handler function for the 'version' MCP tool. It returns a string with the Frappe MCP Server version information.@mcp.tool() def version() -> str: """Get version information for the Frappe MCP server.""" return f"Frappe MCP Server version {__version__}"
- src/server.py:38-42 (registration)Registration block in the MCP server creation where the helpers module (containing the 'version' tool) is registered via helpers.register_tools(mcp).# Register all tool modules helpers.register_tools(mcp) documents.register_tools(mcp) schema.register_tools(mcp) reports.register_tools(mcp)
- src/tools/helpers.py:14-30 (registration)The register_tools function in helpers.py that defines and registers the 'version' tool (along with ping and validate_auth) using @mcp.tool() decorators.def register_tools(mcp: Any) -> None: """Register helper tools with the MCP server.""" @mcp.tool() def ping() -> str: """A simple tool to check if the server is responding.""" return "pong" @mcp.tool() def version() -> str: """Get version information for the Frappe MCP server.""" return f"Frappe MCP Server version {__version__}" @mcp.tool() def validate_auth() -> Dict[str, Any]: """Validate API credentials and return authentication status.""" return validate_api_credentials()