get_mindmanager_version
Retrieve the current version of the MindManager application using the MCP server, enabling compatibility checks and version-specific operations without manual verification.
Instructions
Gets the version of the MindManager application.
Returns:
Union[str, Dict[str, str]]: The version of the MindManager application or error dictionary.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mindm_mcp/server.py:236-250 (handler)The primary handler function for the get_mindmanager_version tool. Decorated with @mcp.tool() which handles both implementation and registration in FastMCP. Retrieves MindManager version via mm.Mindmanager().get_version() and returns it or an error dict.@mcp.tool() async def get_mindmanager_version( ) -> Union[str, Dict[str, str]]: """ Gets the version of the MindManager application. Returns: Union[str, Dict[str, str]]: The version of the MindManager application or error dictionary. """ try: version = mm.Mindmanager().get_version() print(f"get_mindmanager_version() returned: {version}", file=sys.stderr) return version except Exception as e: return _handle_mindmanager_error("get_mindmanager_version", e)
- mindm_mcp/server.py:72-81 (helper)Helper function called in the tool's exception handler to standardize error responses for MindManager operations.def _handle_mindmanager_error(func_name: str, e: Exception) -> Dict[str, str]: """Formats MindManager errors for MCP response.""" error_message = f"Error during MindManager operation '{func_name}': {e}" print(f"ERROR: {error_message}", file=sys.stderr) # Check for specific known errors from mindm.mindmanager if possible if "No document found" in str(e): return {"error": "MindManager Error", "message": "No document found or MindManager not running."} # Add more specific error checks here based on mindm library return {"error": "MindManager Error", "message": f"An error occurred: {e}"}