get_library_folder
Retrieve the MindManager library folder path to access stored mind maps and templates for editing or exporting.
Instructions
Gets the path to the MindManager library folder.
Returns:
Union[str, Dict[str, str]]: The library folder path or error dictionary.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mindm_mcp/server.py:219-233 (handler)The primary handler for the 'get_library_folder' MCP tool. Registered via @mcp.tool() decorator. Calls internal helper to fetch the library folder path from MindManager and handles exceptions, providing schema via type hints and docstring.@mcp.tool() async def get_library_folder( ) -> Union[str, Dict[str, str]]: """ Gets the path to the MindManager library folder. Returns: Union[str, Dict[str, str]]: The library folder path or error dictionary. """ try: folder_path = _get_library_folder() print(f"get_library_folder() returned: {folder_path}", file=sys.stderr) return folder_path except Exception as e: return _handle_mindmanager_error("get_library_folder", e)
- mindm_mcp/server.py:161-164 (helper)Internal helper function that instantiates Mindmanager object and retrieves the library folder path, containing the core logic delegated from the tool handler.def _get_library_folder(): mindmanager_obj = mm.Mindmanager() library_folder = mindmanager_obj.get_library_folder() return library_folder