Connect AI and MCP

Connect the assistant to our MCP before it codes with our tools.

1. The AI must connect to our MCP first

The framework MCP is the assistant's source of truth before code generation.

The AI assistant should not start by guessing class names, method chains, or package configuration. It should connect to the Game-Data-Forge MCP endpoint first. That endpoint gives it structured access to our generated documentation, source snapshots, namespace lists, project rules, and package context.

This is what makes Vibe coding clean: the human describes the product, the AI asks our MCP how the framework works, and only then does it write code using the documented tools.

2. Map our framework MCP endpoint

Service registration loads the MCP server and tool assembly. The runtime call maps the endpoint after the application is built.

MCP setup
DocumentationViewerConfiguration.LoadCommonConfig(builder);

WebApplication app = builder.Build();

DocumentationViewerConfiguration.UseApp(app);

3. Connect your AI client to our MCP

In the AI tool, add a remote MCP server that points to the hosted documentation endpoint. The exact UI depends on the client, but the mental model stays the same: the assistant receives a named documentation server and calls tools from it.

Remote MCP server concept
{
  "mcpServers": {
    "gdf-docs": {
      "url": "https://labs.idemobi.com/mcp"
    }
  }
}

4. Require MCP lookup before code changes

The assistant should use MCP before editing code that touches framework APIs. This is especially important for visual components, package configuration, sidebar registration, documentation rendering, and generated search behavior.

MCP usage instruction
Before changing code that uses Game-Data-Forge, query the Game-Data-Forge MCP server.
Look up the package, namespace, public type, builder, or configuration entry point that matches the task.
Use the returned API docs and project context as the source of truth.
If documentation is missing, say what is missing instead of inventing an API.

5. Keep AI context files close to the package

The framework packages carry files such as AGENTS.md , AI_CONTEXT.md , PROJECT_MAP.md , ARCHITECTURE_DECISIONS.md , and troubleshooting guides. MCP tools can expose that context so the assistant understands how each package wants to be used.

6. Then create the product with its own MCP

Once the AI has used our MCP to create the web product correctly, the next professional step is to expose the product's own MCP endpoint. That product MCP should describe the product routes, domain entities, public workflows, configuration, and safe operations so future AI sessions can work on the product without rediscovering everything from source files.

Useful MCP questions

Which objects exist in this namespace?

What does this builder method return?

Which project rules apply to this package?

Where is the related source snapshot?

Next step

Create the product-owned MCP after the web product starts taking shape.

Create product MCP