This lightweight MCP server implements a MANUS-inspired workflow for RBAC dashboard applications with browser automation capabilities. It's designed to run locally and integrate with Cursor IDE to provide a structured development approach through a 5-step workflow.
Setting up the MCP server is straightforward:
# Clone the repository
git clone https://github.com/your-org/aerith-admin.git
cd aerith-admin/mcp
# Run the installation script (creates virtual environment and installs dependencies)
./bin/install.sh
# Activate the virtual environment
source bin/activate_venv.sh
The standard mode starts the server with a REST API and Server-Sent Events (SSE):
python server.py --port 8090
This mode enables integration with other tools using JSON-RPC protocol:
python server.py --stdio
For extended operation, resilient mode provides automatic health monitoring and restart capabilities:
# Using the convenient script
./bin/start_cursor_server.sh --resilient
# Or directly using the resilient server script
./bin/run_resilient_server.sh --mode http --port 8090
Check server health or force a restart:
# Check if the server is running and healthy
./bin/monitor_server.py --check-only
# Force restart the server
./bin/monitor_server.py --force-restart
Start the MCP server in HTTP mode:
python server.py --port 8090
Ensure your project contains a proper .cursor/mcp.json
configuration:
{
"mcpServers": {
"aerith-admin-mcp": {
"url": "http://localhost:8090/sse"
}
}
}
Open the Aerith Admin project in Cursor IDE
Access the MCP integration through Cursor's UI
The server implements a 5-step workflow:
Execute browser-based operations:
# Example of running a browser agent
run_browser_agent(goal="Log into the admin dashboard and verify user permissions")
Access project files and directories:
# Generate a directory tree structure
tree_directory(directory_path="./src", max_depth=3, show_files=True)
Manage your git repository directly:
# Show git status
git_status(detailed=True)
# View commit history
git_log(count=5, show_stats=True)
# Add and commit changes
git_add(paths=["modified_file.js"])
git_commit(message="Update feature implementation", all_changes=False)
Configure server behavior with environment variables:
MCP_DEBUG=true
- Enable detailed debug logging (set automatically by activate_venv.sh)The server stores all instructions and related data in JSON files within the .aerith/instructions
directory, with logs available in .aerith/logs/mcp_server.log
.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.