MCP Overview

The Print Hive MCP server lets AI assistants and automation clients connect to authorized print farm context through the Model Context Protocol. The current server registers 57 tools: 36 Hex-visible read tools, 9 Hex-visible approval-gated actions, and 12 broader server tools that are available only to appropriately scoped non-Hex MCP clients.

Why MCP for Print Farms?

  • Current farm context — Hex can re-read printers, jobs, queues, materials, network health, and recommendation receipts before answering.
  • Operator-safe actions — Hex can request narrow actions such as guided filament rotation only after explicit operator approval.
  • Scoped integrations — API keys can be limited to read, control, or dangerous tool tiers.
  • Developer workflows — Claude Code, Cursor, ChatGPT, and custom MCP clients can use the same documented endpoint.

Base URL

https://api.printhiv3d.com/v1/mcp

The server uses the Streamable HTTP transport (MCP spec 2025-03-26). All communication happens on the single endpoint above via POST, GET, and DELETE.

Authentication and Scopes

The MCP server supports two authentication methods:

  • API Key — Send the x-api-key header with your organization API key. API keys are evaluated against read, control, and dangerous scopes. Empty or legacy scope arrays default to read.
  • Bearer Token — Send Authorization: Bearer <token> with a valid Supabase JWT. User sessions are revalidated against the active organization.

Hex Agent uses a user-scoped Bearer connection plus an allow-list. Read tools dispatch immediately. The five mutating tools visible to Hex are parked behind per-action approval. Broad printer control, hardware control, file write, raw G-code, temperature, and stop-print tools are not exposed to Hex.

Tool Reference

Current registered tools, grouped by operational area. The Scope column is the MCP server authorization tier. The Hex access column shows what the Print Hive Smart Assistant can see.

Fleet and printer state

Read printer inventory, live state, AMS/extruder state, local files, and temperature telemetry.

printers_listRead-only
read

List printers in the organization, including connectivity (`offline` / `is_connected`) and print activity (`status`).

printers_queryRead-only
read

Select printers by safe criteria such as status, ready verification, bed-clear verification, no AMS, and not locked.

printer_live_statusRead-only
read

Get real-time printer state including temperatures, progress, speeds, fans, and AMS data.

printer_amsRead-only
read

Get Bambu AMS tray state or Snapmaker/Klipper toolchanger extruder state, including material, color, and remaining amount.

printer_filament_stateRead-only
read

Read the current Guided Filament Rotation lifecycle state for a printer.

narrated_filament_load_previewRead-only
read

Resolve narrated filament assignment intent to a visible printer, Bambu AMS slot, and existing catalog candidate without changing Hive or claiming physical loading.

printer_filesRead-only
read

List 3MF files stored on a connected printer and available for printing.

printer_file_task_statusRead-only
read

Check the status of an asynchronous printer file upload or delete task.

telemetry_temperaturesRead-only
read

Get temperature telemetry for a specific print job.

Jobs, queue, compatibility, and risk

Read print job records, history, schedulability, risk, and model-file printer compatibility.

jobs_listRead-only
read

List print jobs in the organization, optionally filtered by status or printer.

jobs_getRead-only
read

Get detailed information about a specific print job.

jobs_historyRead-only
read

Get event history for a specific print job.

queue_healthRead-only
read

Summarize queued jobs, schedulable jobs, and idle or soon-available printers with nothing compatible queued.

jobs_at_riskRead-only
read

Find active print jobs that are busy but not productively progressing, such as paused, failed, stalled, or overrunning jobs.

model_file_compatible_printersRead-only
read

Rank printers by how well each can run a given model file, including model and filament compatibility evidence.

production_promise_advisorRead-only
read

Forecast whether proposed or existing production work is safe to promise using capacity, queue, material, printer, and risk evidence without mutating production state.

smart_queue_intervention_planRead-only
read

Return ranked observe-mode Smart Queue intervention bundles with operator actions, evidence, and expected impact without mutating farm state.

failure_patternsRead-only
read

Analyze recurring print failures by printer, job, model file, material, spool, and reason so Hex can answer reliability and root-cause questions without implying automatic controls.

print_job_resource_searchRead-only
read

Search safe, organization-scoped resources needed to create queued print jobs, such as model files, printers, materials, and job context.

Farm intelligence

Higher-level operating summaries for utilization, downtime, throughput, maintenance, material runway, network health, and session review.

farm_utilizationRead-only
read

Report fleet and per-printer utilization over a time window with idle-reason attribution.

farm_playbookRead-only
read

Return a prioritized action list that synthesizes utilization, risk, queue health, and network health.

printer_downtimeRead-only
read

Show per-printer idle gaps between jobs, ordered worst-first by idle time.

material_runwayRead-only
read

Predict filament runout risk by comparing loaded AMS material against upcoming job requirements.

throughput_reportRead-only
read

Report per-printer and fleet throughput, completed jobs, success rate, duration, filament use, and failure reasons.

session_summaryRead-only
read

Summarize a bounded operator session or shift, including starts, resumes, cleared errors, and utilization change.

network_healthRead-only
read

Diagnose why printers are unreachable on the local network, including host-side evidence and possible IP drift.

maintenance_debtRead-only
read

Summarize due and overdue maintenance tasks by printer, priority, severity, task definition, current condition, health signals, freshness, and warnings.

maintenance_service_planRead-only
read

Plan downtime-aware maintenance service windows for what to service now, next idle window, or defer cautiously without mutating production state.

Assistant and operator context

Read Hex-related settings, recommendation follow-through, and human-authored shop-floor annotations.

assistant_settings_statusRead-only
read

Read sanitized briefing and at-risk alert settings, schedules, thresholds, notification runs, and recent delivery failures.

assistant_capabilities_statusRead-only
read

Read sanitized Hex capability statuses, reason codes, remediation targets, and prompt suggestions for the active organization.

assistant_recommendation_receiptsRead-only
read

Read durable recommendation receipts so Hex can answer what is still open, completed, assigned, or dismissed.

operator_annotationsRead-only
read

Read active human-authored operational context such as avoided printers, reservations, suspect spools, and handoff notes.

operator_annotation_previewRead-only
read

Resolve and preview one temporary farm, printer, print-job, or material annotation without changing active operating context.

action_items_listRead-only
read

Read the prioritized operator action feed (the same ActionItem envelope the web feed uses) to answer "what should I do next?", render Hex action cards, or inspect current blockers.

operator_dispatch_queueRead-only
read

Read the operator-aware dispatch queue, including personal assignments, unassigned work, stale assignments, and blocked task eligibility.

Hex approval-gated actions

Narrow production actions that Hex may request only behind explicit operator approval.

eve_operation_proposeRead-only
read

Store a server-owned, versioned Hex operation proposal without executing it or returning its private normalized payload. The app later verifies and decides by proposal id/version only.

operator_annotation_applyApproval-gated
control

Create, revise, or resolve one server-stored temporary operator annotation proposal after explicit approval; replay returns the same receipt.

narrated_filament_load_confirmApproval-gated
control

Record one narrated filament assignment intent in Hive after explicit operator approval. It updates assignment metadata only and does not physically load filament or move hardware.

filament_loadApproval-gated
control

Load filament from an AMS tray into the extruder after re-validating printer eligibility.

filament_unloadApproval-gated
control

Unload the currently loaded filament from the extruder after eligibility checks and explicit confirmation.

filament_acknowledgeApproval-gated
control

Send the Bambu acknowledgment that completes a Guided Filament Rotation load prompt.

filament_assign_slotsApproval-gated
control

Sync Hive filament slot assignments to a printer's AMS metadata — the control action behind filament-blocked action cards; records the loaded spool mapping and sends AMS settings to the printer.

job_createApproval-gated
control

Create a queued Hive print job after explicit approval. This queues the job record only; it does not start physical printing.

job_duplicate_last_on_printerApproval-gated
control

Duplicate the latest terminal Hive Cloud print job assigned to a printer and queue it for the same printer.

printers_set_readyApproval-gated
control

Mark one or more printers ready as an operator override, using named printers or safe criteria.

Server control tools not exposed to Hex

These are registered by the MCP server for scoped integrations, but Hex intentionally cannot see them.

print_pauseNot exposed to Hex
control

Pause the currently running print job.

print_resumeNot exposed to Hex
control

Resume a paused print job.

print_set_speedNot exposed to Hex
control

Set print speed to silent, normal, sport, or ludicrous.

hardware_lightNot exposed to Hex
control

Turn the chamber or work light on or off.

hardware_fanNot exposed to Hex
control

Set part cooling, auxiliary, or chamber fan speed from 0 to 100 percent.

hardware_homeNot exposed to Hex
control

Home all axes. This should not be used while printing.

hardware_auto_levelNot exposed to Hex
control

Run automatic bed leveling. This should not be used while printing.

printer_file_uploadNot exposed to Hex
control

Upload a model file from the library to a printer as an asynchronous task.

printer_file_deleteNot exposed to Hex
control

Delete a file from a printer as an asynchronous task.

Dangerous server tools not exposed to Hex

These require dangerous scope for non-Hex MCP clients and are intentionally absent from Hex.

print_stopNot exposed to Hex
dangerous

Cancel or stop the current print job. This action cannot be undone.

temperature_setNot exposed to Hex
dangerous

Set nozzle or bed temperature directly, including an extruder selector for multi-extruder printers.

gcode_sendNot exposed to Hex
dangerous

Execute raw G-code commands on the printer.

Client Setup Guides

How It Works

When a client connects to the Print Hive MCP server, it receives the tools available to that connection and their schemas. Tool handlers authenticate the request, bind it to the active organization, enforce the required scope, and then execute through the same Print Hive API and Pulse/HiveLink trust boundary used by the product.

Live printer operations are routed through the Pulse WebSocket relay to the local HiveLink instance, which communicates with printers on the local network. Database-backed reads such as jobs, queue state, recommendation receipts, operator annotations, and telemetry are read through org-scoped backend services.