GenMB Code
AI coding assistant for precise, tool-based file edits — describe what you want changed and the AI implements it across your project.
GenMB Code requires the Pro plan or higher.
What is GenMB Code
GenMB Code is an AI coding assistant built into the app editor. Unlike chat refinement which regenerates entire files, GenMB Code makes precise, targeted edits to individual files using a tool-based approach — reading, editing, and writing files exactly where changes are needed.
It understands your entire project structure and can navigate across files, making surgical edits instead of regenerating everything from scratch. Every set of changes creates a new version so you can review diffs and rollback if needed. It works with all supported frameworks: Vanilla JS, React, and React + TypeScript.
Pro feature
GenMB Code requires the Pro plan or higher. Free plan users can use chat refinement for broader code changes.How to Use
Open GenMB Code from the sidebar in the app editor. Describe the changes you want in the chat input, and the AI will use tools to implement them across your project files.
Open the GenMB Code panel
Describe your change
AI plans and executes edits
Review the changes
Continue the conversation
Available Tools
GenMB Code uses a set of file-operation tools to implement changes precisely. The AI decides which tools to use based on your request — you do not need to invoke them manually.
- ●list_files — Lists all files in your project so the AI can understand the project structure.
- ●read_file — Reads the full content of a specific file to understand existing code before editing.
- ●edit_file — Makes targeted edits to a file by replacing specific code sections. The most commonly used tool.
- ●write_file — Creates a new file or completely replaces an existing file when a full rewrite is needed.
- ●report_done — Signals that all changes are complete and summarizes what was modified.
MCP Tool Integration
Connect external MCP (Model Context Protocol) servers to give GenMB Code access to additional tools and capabilities beyond file editing. This lets the AI interact with databases, APIs, and code analysis tools directly from your editing session.
- ●Add MCP servers in the app settings to extend the tools available to GenMB Code.
- ●External MCP servers can provide tools for database queries, API calls, code analysis, and more.
- ●Each app can connect up to 10 MCP servers. Tools from all connected servers are available in the same session.
- ●MCP servers must use HTTPS and are validated against SSRF protections for security.
Extend your AI toolkit
MCP integration turns GenMB Code into a general-purpose AI agent. Connect a database MCP server to let the AI query your data, or a testing MCP server to validate changes automatically.GenMB Code vs Chat Refinement
Both features let you modify your app with natural language, but they work differently and are suited to different tasks.
- ●Chat Refinement regenerates files based on your prompt. Best for broad changes like "redesign the landing page" or "add a new section."
- ●GenMB Code edits specific lines in specific files. Best for targeted changes like "fix the bug in the login handler" or "add error handling to the API call."
- ●Chat Refinement works on Free plans. GenMB Code requires Pro or higher.
- ●GenMB Code maintains a conversation history within a session, so you can iterate on changes with full context.
Tips
Get the most out of GenMB Code with these best practices.
Be specific
Mention file names, component names, or function names when you know them. The more specific your request, the more accurate the AI's edits will be.Start small
Start with small, focused edits to build confidence before making large changes across multiple files. This helps you understand how the AI interprets your requests.Review diffs
Review changes in the diff view after each edit session. If something looks wrong, rollback via Version History and try a more specific prompt.Break down complex changes
For complex changes, break them into multiple steps. Ask for one change at a time and verify before moving on.If the AI misunderstands your intent, clarify in the follow-up message — it retains the full conversation context and can adjust based on your feedback.
FAQs
What plan do I need to use GenMB Code?▾
Does GenMB Code work with all frameworks?▾
Can GenMB Code create new files?▾
What happens if GenMB Code makes a mistake?▾
How is GenMB Code different from Agent Mode?▾
Ready to build?
Create your first app for free — no credit card required.