# onasusweb/ps_mcp_boilerplate-prestashop architecture

> Architecture diagram of the GitHub repository onasusweb/ps_mcp_boilerplate-prestashop, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/onasusweb/ps_mcp_boilerplate-prestashop
- Repository: https://github.com/onasusweb/ps_mcp_boilerplate-prestashop

## Overview

This is a minimal PrestaShop MCP tool boilerplate. Its sole demonstrated workflow accepts a username in the annotated `say_hello` tool and returns a greeting. The module class declares PrestaShop metadata and MCP compliance, but the sampled code does not show how the tool is registered or dispatched, so that wiring is omitted.

Main entry points: [`src/HelloWorld.php`](https://github.com/onasusweb/ps_mcp_boilerplate-prestashop/blob/main/src/HelloWorld.php) (HelloWorld tool)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_mcp_client(("MCP caller"))
node_hello_world["HelloWorld tool<br/>[HelloWorld.php]"]
node_module["PrestaShop module"]

node_mcp_client -->|"invokes say_hello"| node_hello_world
node_hello_world -->|"returns greeting"| node_mcp_client

click node_hello_world "https://github.com/onasusweb/ps_mcp_boilerplate-prestashop/blob/main/src/HelloWorld.php"
click node_module "https://github.com/onasusweb/ps_mcp_boilerplate-prestashop/blob/main/ps_mcp_boilerplate.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_mcp_client toneIndigo
class node_hello_world,node_module toneTeal
```

## Components

### Other components

- **MCP caller**
- [HelloWorld tool](https://github.com/onasusweb/ps_mcp_boilerplate-prestashop/blob/main/src/HelloWorld.php): `src/HelloWorld.php`
- [PrestaShop module](https://github.com/onasusweb/ps_mcp_boilerplate-prestashop/blob/main/ps_mcp_boilerplate.php): `ps_mcp_boilerplate.php`

## Connections

- MCP caller → HelloWorld tool: invokes say_hello
- HelloWorld tool → MCP caller: returns greeting
