Back to blog
Guide : AI agents and orchestrationPrestaShop & e-commerceAgents IALLM & modelesMCPPrestaShop

PrestaShop 9: I'd Ask My Agent to Read the Docs Before Its First Diff

05 December 20263 minNicolas Dabène, développeur Full Stack & Orchestrateur IA chez Profileo, 77-24 e-commerce hosting et Zentria
The same robot looks lost among old manuals, then grins after finding the right page in the official documentation.

“Add the supplier reference to the Products grid.”

On a demo store with one supplier per product, the first diff might look fine. Give a product three suppliers and the questions start piling up. Which reference should appear? If the query returns one row per supplier, does the product show up three times? Does the result count still match the grid once you add a filter?

Contents

Ask the agent to work through those questions before it edits the module. Since December 1, it can look up the technical details in the official PrestaShop 9 documentation through DevDocs MCP.

DevDocs MCP reads the documentation

The server is free, read-only and requires neither an account nor an API key. It has three tools: search_docs searches by keyword, get_doc opens a page as Markdown, and list_sections lets you browse the documentation. To find a hook, give the agent the hook or grid name rather than a prompt like “customize my catalog.”

DevDocs MCP cannot read your store’s orders or inventory. If you already have a connector for your store, keep it: the two servers give the agent access to different sources.

Example: a supplier reference in the Products grid

The official guide to modifying a grid from a module separates the grid definition from data retrieval. Start with actionProductGridDefinitionModifier for the new column. Then look at actionProductGridQueryBuilderModifier, which exposes the search and count queries. If you add a filter, check that the result count and the returned rows still agree. You might only notice the bug on page two.

The documentation cannot tell you which supplier reference belongs in the column. For a grid with one row per product, the default supplier is a reasonable starting point. Test a product with no supplier and another with several. Then check the result count and move to the next page with the filter active.

Show the default supplier’s reference in the PrestaShop 9 Products grid. Use DevDocs MCP and cite the hook pages you’re relying on. Check where those hooks are called in the core version this project targets. Explain how you will keep one row per product and test pagination if the new column is filterable. Do not edit any files yet.

That gives you something quick to review. If the agent names the right hook but cannot explain where the reference comes from, settle that before it writes the diff.

Connect it to Claude Code or Codex

With Claude Code:

claude mcp add --transport http prestashop-devdocs https://devdocs-mcp.prestashop.com/mcp

With Codex, in ~/.codex/config.toml:

[mcp_servers.prestashop-devdocs]
url = "https://devdocs-mcp.prestashop.com/mcp"

Both configurations come from PrestaShop’s announcement. For a one-off lookup, the llms.txt index is another option.

On a PrestaShop 9 module, this is where DevDocs MCP earns its keep: any change that depends on a core hook or API. Still check the installed core and run the tests on a catalog that looks like the client’s. If the module also supports PrestaShop 8, verify that version separately.

Two minutes reviewing the proposal can save a round of acceptance testing spent chasing an assumption nobody discussed.

Sources

Nicolas Dabène

Author

Nicolas Dabène

Développeur Full Stack & Orchestrateur IA chez Profileo, 77-24 e-commerce hosting et Zentria

Senior PHP/Laravel developer with 12+ years of experience in e-commerce. Specialised in PrestaShop architecture, AI agents and automation.