About Maid
Maid is an MCP server published by musa-labs in the Files category: aI Agent created with Mastra and MCP Filesystem to organize your files.
The repository has 12 stars and 2 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.
Install
git clone https://github.com/musa-labs/maidThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Maid
Powered by Claude · Grounded in docs
Security checks
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository ships documentation.
- !License declaredNo license file. Legally you have no right to use it in a product.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- !Dependencies pinnedNo lockfile. Installs can pull different code over time.
- ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
1 check has not been run yet.
README
Maid - AI-powered Directory Cleaner
Maid is an AI-driven agent, built using the Mastra framework, designed to clean specific directories on your filesystem. By interacting with the MCP (Mastra Communication Protocol) filesystem server, Maid intelligently identifies unnecessary files, organizes data, and ensures your directories are optimized according to the access rules you define.
Features
- AI-Powered Cleaning: Leverages the Mastra framework to analyze and manage files intelligently.
- Customizable Access: Clean only the directories you explicitly allow access to.
- MCP Integration: Utilizes the MCP filesystem server for file handling and communication.
- Safe and Non-intrusive: Ensures no files are removed or modified without rules-defined permissions.
Prerequisites
Before setting up Maid, make sure you have the following installed:
- Node.js: Version 18 or higher
- npm: Package manager for Node.js
- Mastra: Includes core, memory, and MCP functionality
- TypeScript: Version 5.8 or above
Installation
To get started with Maid, clone the repository and install the required dependencies. Run the following commands:
git clone https://github.com/musa-labs/maid.git
cd maid
npm install
Usage
-
Configure Directory Access Rules: Update the configuration file (
maid.config.ts) to specify which directories Maid can access for cleaning. -
Start MCP Filesystem Server: Ensure the MCP filesystem server is running to enable communication with Maid. For example:
npx mastra-mcp start -
Run Maid: Execute the Maid agent using:
npx tsx main.ts -
Observe File Cleaning: Maid will apply the defined rules to clean up the specified directory, organizing or removing unnecessary files.
Configuration
In src/mastra/agents/index.ts update the field on where npx sits and the directory you'd like the agent to access
const filesystem = new MastraMCPClient({
name: "file system",
server: {
command : "/Users/<User>/.nvm/versions/node/v20.9.0/bin/npx",
args : ["-y",
"@modelcontextprotocol/server-filesystem",
"<Your Document folder here>"
],
},
});
Development
To modify or contribute to Maid, follow these steps:
-
Clone the Repository:
git clone https://github.com/musa-labs/maid.git cd maid -
Install Dependencies:
npm install
Technologies Used
- Mastra Framework:
@mastra/core: Core framework for Mastra integrations.@mastra/memory: Memory management.@mastra/mcp: Communication protocol for filesystem interactions.
- TypeScript: Ensures type safety and maintainable code.
- Zod: Validation of configuration and input data.
License
Maid is licensed under the MIT License. See the LICENSE file for more details.
Acknowledgments
Thanks to the Mastra framework developers for providing robust and modular tools that make programs like Maid possible.
If you encounter an issue or have feature suggestions, feel free to open an issue on the GitHub repository. Let's keep your directories neat and clean with Maid!
README fetched from the repository 2 days ago. The original is authoritative.