AI development assistant toolkit with code review UI screenshot analysis and MCP server setup
The AI Development Assistant MCP Server, designed specifically for Cursor, serves as a crucial adapter to enable advanced, AI-driven coding and design assistance through the Model Context Protocol (MCP). This project, while largely a tutorial demo, paves the way for real-world applications by integrating custom AI tools directly into the development workflow. Its primary strengths lie in offering features like code architecture creation, UI screenshot analysis, and code review functionalities, making it an invaluable asset for developers looking to streamline their coding processes with intelligent tools.
The core of this server lies in its ability to leverage Model Context Protocol (MCP) for integrating AI into the development process. MCP serves as a standardized interface that allows various AI applications, such as Claude Desktop and Continue, to interact seamlessly with specific data sources and tools. This server includes three primary features:
These features not only enhance the functionality of AI tools but also improve the overall coding experience, ensuring developers can rely on intelligent AI to assist in their workflows.
The AI Development Assistant MCP Server is built using a modular architecture that adheres strictly to the Model Context Protocol (MCP). The protocol itself defines a series of standardized interactions between an MCP client and an MCP server. This project implements these standards through Node.js, providing a robust foundation for integration with various AI applications.
The MCP protocol flow can be visualized as follows:
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
This diagram illustrates how the MCP client initiates interactions, leveraging the protocol to communicate with the server and ultimately access or manipulate data sources or tools.
For instance, when using the Code Architect tool, an AI application (like Claude Desktop) can send a request through the MCP client, which then translates this into a command for node /path/to/your/project/build/index.js
. This command triggers the generation of architectural plans and instructions by the server's backend logic.
To begin, create an environment configuration file at src/env/keys.ts
, where you can store API keys for services like OpenAI:
export const OPENAI_API_KEY = "your_key_here";
// Add any other keys you need
It's important to note that storing API keys directly in source code is only suitable for local development and learning purposes. For production use, consider leveraging environment variables or secure vaults.
To install the dependencies, run one of the following commands:
npm install
# or
yarn install
For building and running the server in development mode:
# Build the server
npm run build-only
# Development mode (watch for changes)
npm run dev
# Run the server
npm run start
# Deploy with PM2
npm run pm2
# Other PM2 commands
npm run stop # Stop the server
npm run restart # Restart the server
npm run logs # View server logs
npm run status # Check server status
These commands provide a robust development environment and allow for smooth deployment using PM2, a production process manager that ensures your application runs continuously.
Imagine you're developing a web application. The Code Architect tool can be triggered to generate architectural plans based on the proposed feature or module. This automation not only speeds up the initial design phase but also ensures that the codebase is structured coherently from the start.
// Example invocation of Code Architect
const architectTool = new ArchitectTool();
architectTool.generatePlan(moduleName);
When working on a user interface, the Screenshot Buddy tool can analyze design screenshots to provide context-aware feedback. This integration ensures that designers receive relevant suggestions based on both static and dynamic UI elements.
// Example invocation of Screenshot Buddy
const screenshotTool = new ScreenshotTool();
screenshotTool.analyzeScreenshot(pathToScreenshot);
This project is designed to be used as a standard MCP server for Cursor. Here's how you can integrate it:
Cursor Settings > Features > MCP
.node /path/to/your/project/build/index.js
After adding the server, ensure it's listed under "Available Tools" in the MCP section. If not, refresh the page.
The AI Development Assistant MCP Server is compatible with a range of mainstream MCP clients. Here’s a compatibility matrix:
MCP Client | Resources | Tools | Prompts |
---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ |
Continue | ✅ | ✅ | ✅ |
Cursor | ❌ | ✅ | ❌ |
For integrating the server with your MCP client, you might need to update its configuration file. Here’s a sample configuration snippet:
{
"mcpServers": {
"[server-name]": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-[name]"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
This snippet ensures that your MCP client can access the necessary tools and data seamlessly.
It is crucial to securely manage API keys, especially in production environments. Avoid storing sensitive information such as OpenAI keys in source code or configuration files directly. Use environment variables, secure vaults, or other secure methods for handling API credentials.
Q: Can I use this server with other MCP clients?
A: Yes, while primarily tested with Cursor and Claude Desktop, the AI Development Assistant MCP Server should be compatible with most MCP clients that support stdio commands.
Q: How can I contribute to improving this project?
A: Contributions are always welcome! Submit a Pull Request or report any issues you encounter.
Q: Can I use different API keys for various tools?
A: Yes, configure multiple tools in your keys.ts
file with distinct API keys as needed.
Q: Are there best practices for using these AI tools?
A: Follow the instructions provided in .cursorrules
files and adhere to Cursor's guidelines for optimal use of tools like Code Architect and Screenshot Buddy.
Q: How does this server enhance my AI development workflow?
A: By integrating directly with your development environment, it streamlines tasks such as code generation, UI design, and automated reviews, making the overall process more efficient.
Contributions are highly encouraged! If you're interested in improving or extending this project, please fork the repository, make your changes, and submit a Pull Request. We appreciate any contributions that enhance the functionality and usability of this AI development toolkit.
For more information on Model Context Protocol (MCP) and compatible AI applications like Cursor and Claude Desktop, visit their official documentation:
The ecosystem of MCP tools is expanding rapidly, providing developers with ever more powerful ways to integrate advanced AI into their workflows. Stay tuned for updates and enhancements!
With its comprehensive support for Model Context Protocol (MCP) applications, the AI Development Assistant MCP Server stands as a significant step forward in integrating intelligent automation into modern development practices.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration