AI assistant guide

Start here before building with DMBFrameworks.

1. Understand the job

The assistant should guide the human prompter toward framework-aware decisions.

This page is written for AI assistants and for the humans who prompt them. The goal is not to produce code quickly at any cost. The goal is to use DMBFrameworks correctly: first understand the solution, then query the MCP, then change the smallest useful surface.

2. Connect to the DMBFrameworks MCP

The assistant should ask the human to connect the MCP endpoint when it is not already available. The public Labs endpoint is the default source of framework context.

MCP server
{
  "mcpServers": {
    "dmbframeworks": {
      "url": "https://labs.idemobi.com/mcp"
    }
  }
}
Simple message to the prompter
I do not see the DMBFrameworks MCP connected yet.
Please add this MCP server to your AI client:

Name: dmbframeworks
URL: https://labs.idemobi.com/mcp

After it is connected, ask me to start with GetDMBFrameworksOverview.
This lets me use the official framework rules and documentation instead of guessing.

3. Call the tools in this order

Do not start with a broad source-code search. Start with the solution-level tools, then move to package context and exact documentation.

Recommended MCP sequence
1. GetDMBFrameworksTutorialIndex
2. GetDMBFrameworksTutorial("tutorials/00-start-here.md")
3. GetDMBFrameworksOverview
4. GetDefaultAgentInstructions
5. ListFrameworkPackages
6. GetFrameworkAgentInstructions(packageName)
7. GetWebsiteConstructionGuide
8. GetPageBuilderLayoutGuide
9. GetTraditionalSiteStructureGuide
10. GetNavigationProviderGuide
11. GetServerWebHelperLocalizationGuide
12. GetVisualComponentUsageGuide
13. GetDMBFrameworksTutorial("tutorials/08-vibe-coding-website-brief.md") for vague website requests
14. GetDMBFrameworksTutorial("tutorials/09-website-package-selection.md") before selecting implementation packages
15. GetDMBFrameworksTutorial("tutorials/10-website-blueprint-from-brief.md") before coding a website
16. GetDMBFrameworksTutorial("tutorials/11-security-and-compliance-review.md") before delivery
17. GetDMBFrameworksTutorial("tutorials/12-newbie-safe-delivery-workflow.md") when guiding a beginner end to end
18. GetNewModuleCreationGuide when the task is to create a module
19. GetDMBFrameworksCodeExample(examplePath) for the matching usage
20. PlanWebsiteFromBrief, GetCanonicalExample, BuildConciseWebsiteCodingContext, and ValidateDMBWebsiteCompliance for guided website work
21. SearchDocumentation, ListSourceFiles, GetSourceFile, GetSourceCode, BuildContextBundle, BuildCodingContext, or GetProjectContext for exact API work

Reviewable tutorial files

The general MCP answers are backed by Markdown files under wwwroot/mcp/ . Developers can review and correct these files directly.

Public Markdown sources
/mcp/README.md
/mcp/tutorials/00-start-here.md
/mcp/tutorials/01-connect-mcp.md
/mcp/tutorials/02-pagebuilder-layout.md
/mcp/tutorials/03-navigation-providers.md
/mcp/tutorials/04-serverwebhelper-localization.md
/mcp/tutorials/05-visual-components-and-customization.md
/mcp/tutorials/06-new-module-creation.md
/mcp/tutorials/07-traditional-site-structure.md
/mcp/tutorials/08-vibe-coding-website-brief.md
/mcp/tutorials/09-website-package-selection.md
/mcp/tutorials/10-website-blueprint-from-brief.md
/mcp/tutorials/11-security-and-compliance-review.md
/mcp/tutorials/12-newbie-safe-delivery-workflow.md
/mcp/examples/controller-pageinformation.md
/mcp/examples/traditional-site-page-structure.md
/mcp/examples/navbar-provider.md
/mcp/examples/sidebar-agent-and-filter.md
/mcp/examples/footerbar-provider.md
/mcp/examples/profile-browser-customization-provider.md
/mcp/examples/localization-resources.md
/mcp/examples/visual-component-page.md
/mcp/examples/logo-and-favicon-assets.md
/mcp/examples/new-module-file-tree.md
/mcp/examples/new-module-project-map.md

4. Guide the human prompter

When the request is vague, the assistant should help the human narrow the task without blocking progress. Ask for missing product intent, then translate that intent into DMBFrameworks concepts.

Ask for intent

Clarify the page, user workflow, data state, target package, and expected visual result.

Map to DMB

Choose the DMB packages, providers, builders, localization resources, and MCP docs that match the request.

5. Respect the website composition rules

DMBFrameworks websites are composed through PageBuilder, BootstrapBuilder, ServerWebHelper, package providers, and documented components. The assistant should preserve that composition instead of inventing a separate frontend style.

Composition checklist
Always use or create providers for page chrome:
- Navbar: IMenuBarSectionProvider. It owns the home icon on the left, user navigation menus in the center, and customization/localization/profile menus on the right.
- Sidebar: SideBarComponent plus sidebar agent or MVC action filter. Use it mainly for web applications, complex documentation, labs, and dense module workflows. Most pages do not need a sidebar.
- Footerbar: IFooterBarSectionProvider. It owns institutional, administrative, legal, support, contact, and secondary link lists.
- Profile/browser tools: IProfileBarSectionProvider when the action belongs near language, theme, debug, account, profile, or display controls.

Never add navbar, sidebar, footerbar, or global browser rendering controls directly inside a content view.

Configure PageInformation in the controller action before returning the view:
- SetTitle(...)
- SetDescription(...)
- SetKeywords(...)
- SetPageContainer(PageContainer.ContainerPage)
- SetPageContainerStyle(ContainerStyle.LandingPage, Fluid, Lg, Xl, or Xxl)
- SetPageContainerSwichable(false) when the page composition must stay fixed
- AddBreadcrumb(...)
- SetSidebar(...)
- register page scripts/styles only when the page needs them

Choose the page structure before writing Razor:
- Home page: landing-style sections, usually ContainerStyle.LandingPage or ContainerStyle.Fluid.
- Internal pages: ContainerPage with ContainerStyle.Lg, Xl, or Xxl.
- Special pages only: IndependentPage or PdfPage.

Localize resources through ServerWebHelper and WebLocalizer.
Prefer DMBBootstrapBuilder, DMBFormBuilder, DMBEffectBuilder, and DMBComponentBuilder components.
Limit custom CSS and custom markup to cases where no existing DMB helper fits.
Keep pages readable, responsive, consistent, and covered by normal, empty, error, and realistic examples when adding visual components.
PageInformation belongs in the controller action
public IActionResult MyPage()
{
    SetTitle("My page");
    SetDescription("Explain what this page does.");
    SetKeywords("DMBFrameworks", "PageBuilder", "My feature");
    SetPageContainer(PageContainer.ContainerPage);
    SetPageContainerStyle(ContainerStyle.Xl);
    SetPageContainerSwichable(false);
    AddBreadcrumb(
        ActionItemFactory.AspRoute("Home", "Index").SetTitle("Home"),
        ActionItemFactory.AspRoute("My", "MyPage").SetTitle("My page")
    );
    SetSidebar(MyModuleSidebarAgent.CreateSidebar("My", nameof(MyPage)));

    return View();
}
Wrong vs right
Wrong:
- Add a hard-coded <nav> in the Razor view.
- Add a hard-coded sidebar block in every page.
- Add footer links at the bottom of a content view.
- Add a browser rendering customization widget inside page content.
- Set title, description, keywords, or sidebar only inside the Razor view.

Right:
- Add or update an IMenuBarSectionProvider for navbar entries.
- Add or update a sidebar agent only when the page area needs deep local navigation, then attach it from the controller or action filter.
- Add or update an IFooterBarSectionProvider for footerbar columns.
- Add browser rendering customization through the existing DMB customization surface, usually a navbar or profile bar action.
- Configure PageInformation from the controller action before returning View().

6. Use this starter prompt

A human can paste this into an AI assistant before asking for implementation work.

Prompt for DMBFrameworks work
You are working in DMBFrameworks.
Before editing code, connect to the DMBFrameworks MCP and call the generalist tools first.
Explain which packages, layout rules, navigation providers, localization resources, and visual components apply.
Prefer DMBPageBuilder layout, provider-based navigation, ServerWebHelper localization, and documented DMB visual components.
Use or create providers for navbar, sidebar, footerbar, and profile/browser controls.
Configure PageInformation in the controller action before returning View().
Choose page structure explicitly: home pages are usually landing-style section pages; internal pages are usually controlled container pages.
If browser rendering customization is needed, look for DMBBootstrapLiveConfigurator and expose access through navbar/profile bar providers.
Check that logo and favicon assets exist at the expected sizes. If they are missing, ask for a source logo or approval to generate one, then use the DMB favicon/logo asset workflow.
Respect Light and Dark rendering modes as an absolute rule. Do not hard-code colors or styles that only work in one mode.
If asked to create a new module, call GetNewModuleCreationGuide and follow the existing DMB module structure: root AI/context/rules files, Source, UnitTests, Labs, Website, and documentation generation planning.
Do not invent framework APIs. If documentation is missing, say what is missing and inspect the nearest source context.
Keep changes minimal, localized, and consistent with the existing Labs website.

Start path

Connect MCP first.

Read global rules.

Find the package.

Use exact docs.

Human role

The human should describe the product intent, validate the result, and decide when a product-owned MCP is needed.

Next page

Connect the assistant to the MCP endpoint before the first code change.

Connect AI and MCP