# arnavbits26/urumi-mcp-platform architecture

> Architecture diagram of the GitHub repository arnavbits26/urumi-mcp-platform, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/arnavbits26/urumi-mcp-platform
- Repository: https://github.com/arnavbits26/urumi-mcp-platform

## Overview

Urumi is a team MCP gateway for WooCommerce and other MCP servers, managed through a dashboard and usable by external AI clients. Admins register upstreams and manage team access; members sign in, chat with an AI agent or use API keys, and invoke tools through a shared gateway. Tool calls are routed to upstream servers and audited. The README documents the product capabilities; source evidence is strongest for the gateway, dashboard, and WooCommerce adapter, while some upstream links are documented rather than shown in sampled call paths.

Main entry points: [`services/dashboard/src/App.jsx`](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/dashboard/src/App.jsx) (Dashboard shell), [`services/gateway-backend/app/registry.py`](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/registry.py) (Upstream registry), [`services/gateway-backend/app/main.py`](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/main.py) (HTTP and MCP entry), [`services/dashboard/src/api.js`](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/dashboard/src/api.js) (Dashboard API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard"]
  node_dashboard_app["Dashboard shell<br/>[App.jsx]"]
  node_login["Sign-in<br/>[Login.jsx]"]
  node_server_admin["Server management<br/>[Servers.jsx]"]
  node_team_admin["Team management<br/>[Team.jsx]"]
  node_key_admin["API keys<br/>[Keys.jsx]"]
  node_activity["Audit activity<br/>[Activity.jsx]"]
  node_chat_ui["Chat interface<br/>[Chat.jsx]"]
  node_dashboard_api["Dashboard API client<br/>[api.js]"]
end

subgraph group_gateway["Gateway backend"]
  node_gateway_entry["HTTP and MCP entry<br/>[main.py]"]
  node_api_routes["Management API<br/>[api.py]"]
  node_authentication["Authentication<br/>[auth.py]"]
  node_registry["Upstream registry<br/>[registry.py]"]
  node_tool_service["Tool routing and audit<br/>[toolservice.py]"]
  node_chat_agent["Chat tool loop<br/>[chat.py]"]
  node_llm_client["AI provider client<br/>[llm.py]"]
  node_security["Credential and URL security<br/>[security.py]"]
  node_database[("Gateway database<br/>[db.py]")]
end

subgraph group_upstreams["MCP upstreams"]
  node_wc_server["WooCommerce MCP server<br/>[server.py]"]
  node_wc_tools["WooCommerce tools<br/>[tools.py]"]
  node_wc_client["WooCommerce REST client<br/>[wc_client.py]"]
  node_notes_server["Notes MCP server<br/>[server.py]"]
  node_notes_store["Notes store<br/>[store.py]"]
  node_utils_server["Utilities MCP server<br/>[server.py]"]
  node_calculator["Calculator tools<br/>[calc.py]"]
end

subgraph group_store["WooCommerce store"]
  node_woocommerce["WooCommerce REST API"]
end

node_admin(("Admin"))
node_member(("Team member"))
node_external_client(("MCP client"))
node_ai_provider["OpenAI-compatible AI service"]

node_admin -->|"manages"| node_dashboard_app
node_member -->|"uses"| node_dashboard_app
node_dashboard_app -->|"renders"| node_login
node_dashboard_app -->|"renders"| node_server_admin
node_dashboard_app -->|"renders"| node_team_admin
node_dashboard_app -->|"renders"| node_key_admin
node_dashboard_app -->|"renders"| node_activity
node_dashboard_app -->|"renders"| node_chat_ui
node_login -->|"calls"| node_dashboard_api
node_server_admin -->|"calls"| node_dashboard_api
node_team_admin -->|"calls"| node_dashboard_api
node_key_admin -->|"calls"| node_dashboard_api
node_activity -->|"calls"| node_dashboard_api
node_chat_ui -->|"calls"| node_dashboard_api
node_dashboard_api -->|"requests"| node_gateway_entry
node_external_client -->|"invokes MCP"| node_gateway_entry
node_gateway_entry -->|"routes API"| node_api_routes
node_gateway_entry -->|"routes chat"| node_chat_agent
node_gateway_entry -->|"builds service"| node_tool_service
node_gateway_entry -->|"starts registry"| node_registry
node_gateway_entry -->|"connects"| node_database
node_api_routes -->|"authenticates"| node_authentication
node_api_routes -->|"manages servers"| node_registry
node_api_routes -->|"validates URLs"| node_security
node_authentication -->|"reads identities"| node_database
node_authentication -->|"checks hashes"| node_security
node_registry -->|"loads server config"| node_database
node_registry -->|"decrypts credentials"| node_security
node_tool_service -->|"lists and calls tools"| node_registry
node_tool_service -->|"writes audit log"| node_database
node_chat_agent -->|"authenticates"| node_authentication
node_chat_agent -->|"requests completions"| node_llm_client
node_chat_agent -->|"runs tool calls"| node_tool_service
node_llm_client -->|"sends prompts"| node_ai_provider
node_registry -.->|"connects MCP"| node_wc_server
node_registry -.->|"connects MCP"| node_notes_server
node_registry -.->|"connects MCP"| node_utils_server
node_wc_server -->|"registers tools"| node_wc_tools
node_wc_tools -->|"calls REST client"| node_wc_client
node_wc_client -.->|"REST requests"| node_woocommerce
node_notes_server -->|"uses store"| node_notes_store
node_utils_server -->|"uses calculations"| node_calculator

click node_dashboard_app "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/dashboard/src/App.jsx"
click node_login "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/dashboard/src/pages/Login.jsx"
click node_server_admin "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/dashboard/src/pages/Servers.jsx"
click node_team_admin "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/dashboard/src/pages/Team.jsx"
click node_key_admin "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/dashboard/src/pages/Keys.jsx"
click node_activity "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/dashboard/src/pages/Activity.jsx"
click node_chat_ui "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/dashboard/src/pages/Chat.jsx"
click node_dashboard_api "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/dashboard/src/api.js"
click node_gateway_entry "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/main.py"
click node_api_routes "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/api.py"
click node_authentication "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/auth.py"
click node_registry "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/registry.py"
click node_tool_service "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/toolservice.py"
click node_chat_agent "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/chat.py"
click node_llm_client "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/llm.py"
click node_security "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/security.py"
click node_database "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/db.py"
click node_wc_server "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/wc-mcp-server/app/server.py"
click node_wc_tools "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/wc-mcp-server/app/tools.py"
click node_wc_client "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/wc-mcp-server/app/wc_client.py"
click node_notes_server "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/mcp-notes/app/server.py"
click node_notes_store "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/mcp-notes/app/store.py"
click node_utils_server "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/mcp-utils/app/server.py"
click node_calculator "https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/mcp-utils/app/calc.py"

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_dashboard_app,node_login,node_server_admin,node_team_admin,node_key_admin,node_activity,node_chat_ui,node_dashboard_api,node_external_client toneBlue
class node_gateway_entry,node_api_routes,node_authentication,node_registry,node_tool_service,node_chat_agent,node_llm_client,node_security,node_database toneAmber
class node_wc_server,node_wc_tools,node_wc_client,node_notes_server,node_notes_store,node_utils_server,node_calculator toneMint
class node_woocommerce toneRose
class node_admin,node_member,node_ai_provider toneIndigo
```

## Components

### Dashboard

- [Dashboard shell](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/dashboard/src/App.jsx): `services/dashboard/src/App.jsx`
- [Sign-in](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/dashboard/src/pages/Login.jsx): `services/dashboard/src/pages/Login.jsx`
- [Server management](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/dashboard/src/pages/Servers.jsx): `services/dashboard/src/pages/Servers.jsx`
- [Team management](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/dashboard/src/pages/Team.jsx): `services/dashboard/src/pages/Team.jsx`
- [API keys](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/dashboard/src/pages/Keys.jsx): `services/dashboard/src/pages/Keys.jsx`
- [Audit activity](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/dashboard/src/pages/Activity.jsx): `services/dashboard/src/pages/Activity.jsx`
- [Chat interface](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/dashboard/src/pages/Chat.jsx): `services/dashboard/src/pages/Chat.jsx`
- [Dashboard API client](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/dashboard/src/api.js): `services/dashboard/src/api.js`

### Gateway backend

- [HTTP and MCP entry](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/main.py): `services/gateway-backend/app/main.py`
- [Management API](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/api.py): `services/gateway-backend/app/api.py`
- [Authentication](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/auth.py): `services/gateway-backend/app/auth.py`
- [Upstream registry](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/registry.py): `services/gateway-backend/app/registry.py`
- [Tool routing and audit](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/toolservice.py): `services/gateway-backend/app/toolservice.py`
- [Chat tool loop](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/chat.py): `services/gateway-backend/app/chat.py`
- [AI provider client](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/llm.py): `services/gateway-backend/app/llm.py`
- [Credential and URL security](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/security.py): `services/gateway-backend/app/security.py`
- [Gateway database](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/gateway-backend/app/db.py): `services/gateway-backend/app/db.py`

### MCP upstreams

- [WooCommerce MCP server](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/wc-mcp-server/app/server.py): `services/wc-mcp-server/app/server.py`
- [WooCommerce tools](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/wc-mcp-server/app/tools.py): `services/wc-mcp-server/app/tools.py`
- [WooCommerce REST client](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/wc-mcp-server/app/wc_client.py): `services/wc-mcp-server/app/wc_client.py`
- [Notes MCP server](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/mcp-notes/app/server.py): `services/mcp-notes/app/server.py`
- [Notes store](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/mcp-notes/app/store.py): `services/mcp-notes/app/store.py`
- [Utilities MCP server](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/mcp-utils/app/server.py): `services/mcp-utils/app/server.py`
- [Calculator tools](https://github.com/arnavbits26/urumi-mcp-platform/blob/main/services/mcp-utils/app/calc.py): `services/mcp-utils/app/calc.py`

### WooCommerce store

- **WooCommerce REST API**

### Other components

- **Admin**
- **Team member**
- **MCP client**
- **OpenAI-compatible AI service**

## Connections

- Admin → Dashboard shell: manages
- Team member → Dashboard shell: uses
- Dashboard shell → Sign-in: renders (evidence: `services/dashboard/src/App.jsx`)
- Dashboard shell → Server management: renders (evidence: `services/dashboard/src/App.jsx`)
- Dashboard shell → Team management: renders (evidence: `services/dashboard/src/App.jsx`)
- Dashboard shell → API keys: renders (evidence: `services/dashboard/src/App.jsx`)
- Dashboard shell → Audit activity: renders (evidence: `services/dashboard/src/App.jsx`)
- Dashboard shell → Chat interface: renders (evidence: `services/dashboard/src/App.jsx`)
- Sign-in → Dashboard API client: calls (evidence: `services/dashboard/src/pages/Login.jsx`)
- Server management → Dashboard API client: calls (evidence: `services/dashboard/src/pages/Servers.jsx`)
- Team management → Dashboard API client: calls (evidence: `services/dashboard/src/pages/Team.jsx`)
- API keys → Dashboard API client: calls (evidence: `services/dashboard/src/pages/Keys.jsx`)
- Audit activity → Dashboard API client: calls (evidence: `services/dashboard/src/pages/Activity.jsx`)
- Chat interface → Dashboard API client: calls (evidence: `services/dashboard/src/pages/Chat.jsx`)
- Dashboard API client → HTTP and MCP entry: requests (evidence: `services/dashboard/src/api.js`)
- MCP client → HTTP and MCP entry: invokes MCP
- HTTP and MCP entry → Management API: routes API (evidence: `services/gateway-backend/app/main.py`)
- HTTP and MCP entry → Chat tool loop: routes chat (evidence: `services/gateway-backend/app/main.py`)
- HTTP and MCP entry → Tool routing and audit: builds service (evidence: `services/gateway-backend/app/main.py`)
- HTTP and MCP entry → Upstream registry: starts registry (evidence: `services/gateway-backend/app/main.py`)
- HTTP and MCP entry → Gateway database: connects (evidence: `services/gateway-backend/app/main.py`)
- Management API → Authentication: authenticates (evidence: `services/gateway-backend/app/api.py`)
- Management API → Upstream registry: manages servers (evidence: `services/gateway-backend/app/api.py`)
- Management API → Credential and URL security: validates URLs (evidence: `services/gateway-backend/app/api.py`)
- Authentication → Gateway database: reads identities (evidence: `services/gateway-backend/app/auth.py`)
- Authentication → Credential and URL security: checks hashes (evidence: `services/gateway-backend/app/auth.py`)
- Upstream registry → Gateway database: loads server config (evidence: `services/gateway-backend/app/registry.py`)
- Upstream registry → Credential and URL security: decrypts credentials (evidence: `services/gateway-backend/app/registry.py`)
- Tool routing and audit → Upstream registry: lists and calls tools (evidence: `services/gateway-backend/app/toolservice.py`)
- Tool routing and audit → Gateway database: writes audit log (evidence: `services/gateway-backend/app/toolservice.py`)
- Chat tool loop → Authentication: authenticates (evidence: `services/gateway-backend/app/chat.py`)
- Chat tool loop → AI provider client: requests completions (evidence: `services/gateway-backend/app/chat.py`)
- Chat tool loop → Tool routing and audit: runs tool calls (evidence: `services/gateway-backend/app/chat.py`)
- AI provider client → OpenAI-compatible AI service: sends prompts (evidence: `services/gateway-backend/app/llm.py`)
- Upstream registry → WooCommerce MCP server: connects MCP
- Upstream registry → Notes MCP server: connects MCP
- Upstream registry → Utilities MCP server: connects MCP
- WooCommerce MCP server → WooCommerce tools: registers tools (evidence: `services/wc-mcp-server/app/server.py`)
- WooCommerce tools → WooCommerce REST client: calls REST client (evidence: `services/wc-mcp-server/app/tools.py`)
- WooCommerce REST client → WooCommerce REST API: REST requests
- Notes MCP server → Notes store: uses store (evidence: `services/mcp-notes/app/server.py`)
- Utilities MCP server → Calculator tools: uses calculations (evidence: `services/mcp-utils/app/server.py`)
