AM

aureuserp/mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

2 stars 3 forks 质量 51 趋势 8

MCP Servers

概览

This plugin adds MCP servers to AureusERP so AI clients (MCP Inspector, coding agents, ERP assistants) can use ERP tools securely. 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. 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.5 - laravel/passport ^13 - AureusERP plugin manager First, require the package via Composer:

README

以下为原文 README 节选,完整内容请查看原文。

AureusERP MCP Plugin

This plugin adds MCP servers to AureusERP so AI clients (MCP Inspector, coding agents, ERP assistants) can use ERP tools securely.

What this plugin provides

Two MCP servers are exposed:

Dev Agent Server

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.

ERP Agent Server

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

Requirements

  • PHP ^8.2
  • Laravel ^11
  • Filament ^4
  • laravel/mcp ^0.5
  • laravel/passport ^13
  • AureusERP plugin manager

Install

First, require the package via Composer:

composer require aureuserp/mcp

You can then complete the installation in two ways:

Option 1: Via Command Line

Run:

php artisan mcp:install

This 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.php has MCP API guard/provider
  • configures Passport authorization view from the MCP plugin service provider
  • clears caches

Option 2: Via Web Plugin Manager

Navigate to the Plugin Manager in your AureusERP admin panel and install the MCP plugin from there.

Plugin install hook

If you install via plugin manager or composer, setup is auto-triggered from the plugin install command.

Transport: streamable-http (HTTP) / stdio (artisan)

Tool catalog

Dev Agent server

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.

Tools (7)

  • search_docs — Search the official AureusERP developer documentation at devdocs.aureuserp.com
  • list_plugins — List all installed plugins with activation status
  • plugin_summary — Get plugin details, dependency graph, and installation state
  • route_list — List registered routes filtered by plugin, HTTP method, or URI prefix
  • filament_resource_list — List Filament resources, pages, and widgets per panel
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →