This plugin adds MCP servers to AureusERP so AI clients (MCP Inspector, coding agents, ERP assistants) can use ERP tools securely.
Two MCP servers are exposed:
| Transport | Endpoint / Command | Auth |
|---|---|---|
| stdio (artisan) | php artisan mcp:dev |
None — local process |
| HTTP | POST /mcp/dev |
OAuth Bearer token |
Use the stdio transport for local AI coding agents (Cursor, Claude Code, GitHub Copilot, etc.) via .mcp.json. Use the HTTP transport for remote or OAuth-authenticated clients.
Tools: documentation search, plugin introspection, route discovery, model inspection, Filament resource listing, API resource discovery.
| Transport | Endpoint | Auth |
|---|---|---|
| HTTP | POST /mcp/erp |
OAuth Bearer token |
READ-ONLY business insights (34 tools across Sales, Purchases, Invoices, Accounting, Inventory, Projects). No stdio transport — this server requires authentication.
OAuth discovery + registration endpoints are also exposed (via Mcp::oauthRoutes()):
GET /.well-known/oauth-protected-resource/{path?}GET /.well-known/oauth-authorization-server/{path?}POST /oauth/register
- PHP
^8.2 - Laravel
^11 - Filament
^4 laravel/mcp^0.5laravel/passport^13- AureusERP plugin manager
First, require the package via Composer:
composer require aureuserp/mcpYou can then complete the installation in two ways:
Run:
php artisan mcp:installThis command does the setup automatically:
- publishes CORS config (
config/cors.php) if not already published - publishes MCP OAuth authorization view (
mcp-views) - runs Passport API install scaffold (
install:api --passport) - ensures
config/auth.phphas MCP API guard/provider - configures Passport authorization view from the MCP plugin service provider
- clears caches
Navigate to the Plugin Manager in your AureusERP admin panel and install the MCP plugin from there.
If you install via plugin manager or composer, setup is auto-triggered from the plugin install command.
Transport: streamable-http (HTTP) / stdio (artisan)
Available via stdio (php artisan mcp:dev) and HTTP (POST /mcp/dev).
For developers and coding agents. Always call search_docs first before writing any plugin or feature code.
search_docs— Search the official AureusERP developer documentation at devdocs.aureuserp.comlist_plugins— List all installed plugins with activation statusplugin_summary— Get plugin details, dependency graph, and installation stateroute_list— List registered routes filtered by plugin, HTTP method, or URI prefixfilament_resource_list— List Filament resources, pages, and widgets per panelplugin_model_list— Inspect Eloquent models: table, fillable, casts, relationships, soft deletesapi_resource_list— Discover JSON API resource classes per plugin and version (V1, V2, …)
DevGuideResource(erp://mcp/dev-guide) — Developer guidance and quick commands for building AureusERP plugins
DevCodingPrompt— Build a developer-oriented prompt payload for coding tasks targeting a specific plugin
Available via HTTP only (POST /mcp/erp, requires OAuth). For business users and AI assistants querying ERP data. All tools are READ-ONLY.
sales_order_insights— Recent orders, revenue, counts by period, top performerssales_order_fulfillment_status— Delivery status and overdue commitmentssales_pipeline_summary— Leads and opportunitiessales_team_performance— Team metricssales_quotation_conversion— Quote to order rates
purchase_orders_pending— Pending POspurchase_spend_summary— Spending analysispurchase_requisition_queue— Pending requisitionspurchase_supplier_delivery_risk— Delivery risks
invoice_list— All invoicesinvoice_overdue_summary— Overdue amountsinvoice_aging_buckets— 0–7, 8–30, 31+ daysinvoice_payment_followups— Follow-up candidatesinvoice_status_breakdown— States & payment statescredit_notes_overview— Customer credit notes and vendor refunds (counts, amounts, top partners)
account_receivable_summary— AR amountsaccount_payable_summary— AP amountsaccount_move_state_breakdown— Journal statesaccount_payment_state_breakdown— Payment statesaccounting_cashflow_snapshot— Cash flowaccounting_tax_liability_snapshot— Tax obligationsaccounting_journal_entry_health— Entry issuesaccounting_unposted_entries— Unposted entriesbank_statement_queue— Pending reconciliation
inventory_low_stock_alerts— Low stockinventory_out_of_stock_items— Out of stockinventory_replenishment_queue— Reorder itemsinventory_location_balance— Stock by locationinventory_operation_backlog— Pending opsinventory_warehouse_kpis— Warehouse metrics
project_status_overview— Active projectsproject_task_backlog— Tasks by statusproject_deadline_risk— Overdue tasksproject_timesheet_summary— Time logged
SalesSummaryPrompt— Guide for sales queriesPurchaseSummaryPrompt— Guide for purchase queriesInvoiceSummaryPrompt— Guide for invoice queriesInventorySummaryPrompt— Guide for inventory queriesProjectSummaryPrompt— Guide for project queries
All ERP Agent server tools are READ-ONLY. They only retrieve data — no create, update, or delete operations. This ensures AI assistants can query business data safely without making changes to the system.
Both servers can be registered in any MCP-compatible editor or AI agent that supports mcp.json / .mcp.json configuration (VS Code, Cursor, Claude Code, Windsurf, etc.).
File location — place this in
.vscode/mcp.json(VS Code / GitHub Copilot),.cursor/mcp.json(Cursor),.mcp.json(Claude Code / project root), or wherever your editor reads its MCP server config.
| Server | Key | Transport | Auth |
|---|---|---|---|
| Dev Agent | aureus-dev-mcp-server |
stdio — spawned via php artisan mcp:dev |
None — local process |
| ERP Agent | aureus-erp-mcp-server |
HTTP — POST /mcp/erp |
OAuth Bearer token |
The Dev server starts automatically as a subprocess — no OAuth setup required. The ERP server connects over HTTP using the URL of your running application; ensure it is authenticated via OAuth before use.
This is the same pattern used by Laravel Boost (boost:mcp).
Ask natural language questions:
- "How many orders did we get this week?"
- "What is our total accounts receivable?"
- "Which products are low on stock?"
- "Show me our active projects"
- "What are the overdue invoices?"
- "How do I create a new plugin?"
- "What routes does the Sales plugin expose?"
- "What are the fillable fields on the Order model?"
- "List all Filament resources for the Inventory plugin"
- "What API resource classes exist for accounts?"
# Test Dev Agent server (stdio)
php artisan mcp:inspector aureuserp-dev
# Test Dev Agent server (HTTP)
php artisan mcp:inspector mcp/dev
# Test ERP Agent server (HTTP)
php artisan mcp:inspector mcp/erpTransport: streamable-http (HTTP) / stdio (artisan)
{ "servers": { "aureus-dev-mcp-server": { "command": "php", "args": [ "artisan", "mcp:dev" ] }, "aureus-erp-mcp-server": { "url": "http://127.0.0.1:8000/mcp/erp", "type": "http" } } }