Skip to content

MCP Server

XetaSuite exposes an MCP server (Model Context Protocol) that allows AI agents (Copilot, Claude, Cursor, etc.) to interact directly with your ERP data through structured tools.

The server is available at:

https://<your-domain>/mcp

MCP tools use Sanctum Bearer Token authentication (Personal Access Token). No web session is required.

Authorization: Bearer <your-token>

Each tool call is scoped to a site. The site is resolved using the following priority:

  1. The site_id parameter passed directly in the tool call
  2. The current_site_id configured on the authenticated user’s account

Spatie permissions are automatically activated for the resolved site — all operations remain subject to the user’s roles and permissions.


Each domain exposes five operations: list, get, create, update, delete.

ToolDescription
list-incidents-toolList site incidents with optional filters (material, status, severity, text search)
get-incident-toolRetrieve an incident by its ID
create-incident-toolCreate a new incident
update-incident-toolUpdate an existing incident
delete-incident-toolDelete an incident
ToolDescription
list-maintenances-toolList site maintenances
get-maintenance-toolRetrieve a maintenance by its ID
create-maintenance-toolCreate a new maintenance
update-maintenance-toolUpdate an existing maintenance
delete-maintenance-toolDelete a maintenance
ToolDescription
list-cleanings-toolList site cleanings
get-cleaning-toolRetrieve a cleaning by its ID
create-cleaning-toolCreate a new cleaning
update-cleaning-toolUpdate an existing cleaning
delete-cleaning-toolDelete a cleaning
ToolDescription
list-items-toolList site items
get-item-toolRetrieve an item by its ID
create-item-toolCreate a new item (with alert thresholds, supplier, linked materials)
update-item-toolUpdate an existing item
delete-item-toolDelete an item
ToolDescription
list-item-movements-toolList site item movements
get-item-movement-toolRetrieve a movement by its ID
create-item-movement-toolCreate a movement (stock in/out)
update-item-movement-toolUpdate an existing movement
delete-item-movement-toolDelete a movement
ToolDescription
list-materials-toolList site materials
get-material-toolRetrieve a material by its ID
create-material-toolCreate a new material
update-material-toolUpdate an existing material
delete-material-toolDelete a material
ToolDescription
list-calendar-events-toolList calendar events
get-calendar-event-toolRetrieve an event by its ID
create-calendar-event-toolCreate a new event
update-calendar-event-toolUpdate an existing event
delete-calendar-event-toolDelete an event

Add the MCP server in your .vscode/mcp.json file:

{
"servers": {
"xetasuite": {
"type": "http",
"url": "https://<your-domain>/mcp",
"headers": {
"Authorization": "Bearer <your-token>"
}
}
}
}