by tinyzqh
mini_mcp is a lightweight plugin built with FastMCP that retrieves the list of all files located on the current macOS user's desktop.
It is recommended to use Conda to create an isolated environment:
conda create -n mcp python=3.12 conda activate mcp pip install fastmcp
If you want to install with the requirements.txt file, install dependencies with:
pip install -r requirements.txt
To invoke the list_desktop_files tool from an external MCP client, use the following configuration:
*Configuration content*
β οΈ Make sure to update the paths to match your local Python interpreter and project location.
list_desktop_files()
Purpose: Lists all files and folders on the current user's desktop.
Platform: macOS only
Returns: A list of strings, each representing a file or folder name.
Example output
*Configuration content*
mini_mcp/ βββ main.py # Main script that registers the FastMCP tool βββ README.md # This documentation file βββ requirements.txt # (Optional) Dependency definitions
This tool is implemented specifically for macOS due to the use of the ~/Desktop
path.
To adapt this tool for Windows or Linux, modify the desktop path accordingly in the main.py
script.
Ensure that fastmcp
is installed and compatible with your Python version.
This project is provided as-is without any warranty. For licensing terms, refer to FastMCPβs license if applicable.
No version information available