MCP Capabilities
Server printshop
Tools 14
list_automations
Description: List the automations configured for the current site, whether each is enabled, and when it last ran.
Handler: PrintShop\Mcp\AutomationTools::listAutomations()
Parameters
| Name | Type | Required | Default | Description |
|---|
Full Schema
array:2 [ "type" => "object" "properties" => {#1284} ] |
get_automation_run
Description: Fetch the recorded log for one automation run.
Handler: PrintShop\Mcp\AutomationTools::getAutomationRun()
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
runId |
string | Yes | - | - |
Full Schema
array:3 [ "type" => "object" "properties" => array:1 [ "runId" => array:1 [ "type" => "string" ] ] "required" => array:1 [ 0 => "runId" ] ] |
set_automation_enabled
Description: Enable or disable an automation at the current site.
Handler: PrintShop\Mcp\AutomationTools::setAutomationEnabled()
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
automationId |
string | Yes | - | - |
enabled |
boolean | Yes | - | - |
Full Schema
array:3 [ "type" => "object" "properties" => array:2 [ "automationId" => array:1 [ "type" => "string" ] "enabled" => array:1 [ "type" => "boolean" ] ] "required" => array:2 [ 0 => "automationId" 1 => "enabled" ] ] |
trigger_automation
Description: Run an automation now and return the resulting run record and its log. A manual run has no triggering event (no mail), so filters that need one will not match and an action that needs one will record an error.
Handler: PrintShop\Mcp\AutomationTools::triggerAutomation()
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
automationId |
string | Yes | - | - |
Full Schema
array:3 [ "type" => "object" "properties" => array:1 [ "automationId" => array:1 [ "type" => "string" ] ] "required" => array:1 [ 0 => "automationId" ] ] |
get_fleet_status
Description: List every printer at the current site with its live-ish state: machine state (Idle/Busy/Fix Me), andon lamp colour, whether it needs human attention, and the job it is currently running. Reflects the most recent background check-in, not a fresh poll.
Handler: PrintShop\Mcp\FleetTools::getFleetStatus()
Parameters
| Name | Type | Required | Default | Description |
|---|
Full Schema
array:2 [ "type" => "object" "properties" => {#1285} ] |
get_printer
Description: Detail for a single printer at the current site, including its recent event history. Use this to answer "why is printer X in this state?".
Handler: PrintShop\Mcp\FleetTools::getPrinter()
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
printerId |
string | Yes | - | - |
historyLimit |
integer | No |
20
|
- |
Full Schema
array:3 [ "type" => "object" "properties" => array:2 [ "printerId" => array:1 [ "type" => "string" ] "historyLimit" => array:2 [ "type" => "integer" "default" => 20 ] ] "required" => array:1 [ 0 => "printerId" ] ] |
list_attention
Description: List printers at the current site that need human attention, with the most recent events explaining why. The usual cause is a finished print whose bed has not been cleared yet.
Handler: PrintShop\Mcp\FleetTools::listAttention()
Parameters
| Name | Type | Required | Default | Description |
|---|
Full Schema
array:2 [ "type" => "object" "properties" => {#1286} ] |
dismiss_attention
Description: Clear the needs-attention flag on a printer, once a human has actually dealt with it (typically by clearing the bed). Does not touch the machine itself.
Handler: PrintShop\Mcp\FleetTools::dismissAttention()
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
printerId |
string | Yes | - | - |
Full Schema
array:3 [ "type" => "object" "properties" => array:1 [ "printerId" => array:1 [ "type" => "string" ] ] "required" => array:1 [ 0 => "printerId" ] ] |
cancel_print
Description: Abort the print currently running on a printer. This stops a real machine mid-job and the partial print is wasted; it cannot be undone.
Handler: PrintShop\Mcp\FleetTools::cancelPrint()
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
printerId |
string | Yes | - | - |
Full Schema
array:3 [ "type" => "object" "properties" => array:1 [ "printerId" => array:1 [ "type" => "string" ] ] "required" => array:1 [ 0 => "printerId" ] ] |
list_mail
Description: List ingested order emails for the current site, newest first. Set unreadOnly to see just the ones nobody has opened yet. Returns headers and a short preview, not full bodies. When next_cursor is set, pass it as cursor to get the next page.
Handler: PrintShop\Mcp\MailTools::listMail()
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
unreadOnly |
boolean | No |
|
- |
limit |
integer | No |
25
|
- |
cursor |
null|string | No |
|
- |
Full Schema
array:2 [ "type" => "object" "properties" => array:3 [ "unreadOnly" => array:2 [ "type" => "boolean" "default" => false ] "limit" => array:2 [ "type" => "integer" "default" => 25 ] "cursor" => array:2 [ "type" => array:2 [ 0 => "null" 1 => "string" ] "default" => null ] ] ] |
read_mail
Description: Read the full text body of one order email. Marks it as read, exactly as opening it in the mail centre would.
Handler: PrintShop\Mcp\MailTools::readMail()
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
mailId |
string | Yes | - | - |
Full Schema
array:3 [ "type" => "object" "properties" => array:1 [ "mailId" => array:1 [ "type" => "string" ] ] "required" => array:1 [ 0 => "mailId" ] ] |
get_dashboard_stats
Description: Headline counts for the current site: printers, how many need attention, queue depth, unread order emails, automations and products. One cheap call to size up the shop before drilling in.
Handler: PrintShop\Mcp\OverviewTools::getDashboardStats()
Parameters
| Name | Type | Required | Default | Description |
|---|
Full Schema
array:2 [ "type" => "object" "properties" => {#1287} ] |
list_queue
Description: The print queue grouped into pending, in-progress and completed. Note that pending jobs are shop-wide: a queued print has no site until the allocator assigns it to a printer, so pending items are not filtered by site while in-progress and completed ones are.
Handler: PrintShop\Mcp\QueueTools::listQueue()
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
limit |
integer | No |
25
|
- |
Full Schema
array:2 [ "type" => "object" "properties" => array:1 [ "limit" => array:2 [ "type" => "integer" "default" => 25 ] ] ] |
enqueue_print
Description: Queue a product to be printed, then run the allocator once. If a suitable idle printer is free the job starts on real hardware immediately; otherwise it waits in the queue. The allocator only ever starts one job per run, so a queued job may remain pending even when this returns successfully.
Handler: PrintShop\Mcp\QueueTools::enqueuePrint()
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
productId |
string | Yes | - | - |
Full Schema
array:3 [ "type" => "object" "properties" => array:1 [ "productId" => array:1 [ "type" => "string" ] ] "required" => array:1 [ 0 => "productId" ] ] |
Prompts 3
shop_check
Description: Summarise the state of the print shop: what needs attention, what is running, and what is queued.
Handler: PrintShop\Mcp\McpPrompts::shopCheck()
This prompt has no arguments.
diagnose_printer
Description: Find out why one printer needs attention, from its state and recent history.
Handler: PrintShop\Mcp\McpPrompts::diagnosePrinter()
Arguments
| Name | Required | Description |
|---|---|---|
printerId |
Yes | - |
triage_mail
Description: Sort the unread mail of the shop by what needs a reply or an action.
Handler: PrintShop\Mcp\McpPrompts::triageMail()
This prompt has no arguments.
Resources 4
site_stats
| URI | printshop://site/stats |
|---|---|
| Handler | PrintShop\Mcp\McpResources::siteStats() |
| Description | Headline counts for the current site: printers, printers needing attention, queue depth, unread mail, automations and products. |
| MIME Type | application/json |
fleet
| URI | printshop://fleet |
|---|---|
| Handler | PrintShop\Mcp\McpResources::fleet() |
| Description | Every printer at the current site with its last recorded state. Not a live poll. |
| MIME Type | application/json |
attention
| URI | printshop://attention |
|---|---|
| Handler | PrintShop\Mcp\McpResources::attention() |
| Description | Printers at the current site that wait for a human, with the recent events that explain why. |
| MIME Type | application/json |
queue
| URI | printshop://queue |
|---|---|
| Handler | PrintShop\Mcp\McpResources::queue() |
| Description | The print queue grouped into pending, in-progress and completed. Pending jobs are shop-wide because a queued print has no site until the allocator assigns a printer. |
| MIME Type | application/json |
Resource Templates 3
printer
| URI Template | printshop://printers/{printerId} |
|---|---|
| Handler | PrintShop\Mcp\McpResources::printer() |
| Description | One printer at the current site with its recent event history. |
| MIME Type | application/json |
| URI Template | printshop://mail/{mailId} |
|---|---|
| Handler | PrintShop\Mcp\McpResources::mail() |
| Description | The full text of one order email at the current site. Reading this resource does not mark the mail as read. |
| MIME Type | application/json |
automation_run
| URI Template | printshop://automation-runs/{runId} |
|---|---|
| Handler | PrintShop\Mcp\McpResources::automationRun() |
| Description | The recorded log of one automation run at the current site. |
| MIME Type | application/json |