Closeout Copilot
Muse connector
Closeout Copilot exposes its assistant actions as a stateless MCP server. Muse calls that server with an API key, and each tool runs as the shop user who owns the key.
Connect Muse
- Sign in to Closeout Copilot. Office staff open Settings. Technicians open Muse.
- Create a Muse key and copy it. The full key is shown once. Replacing or revoking it disables the previous key.
- Point Muse at
http://localhost:3000/api/mcp. Choose API keys as the authentication method and paste the key as a Bearer token. - Muse runs in Meta's cloud, so localhost is unreachable. The app has to be on a public HTTPS URL before Muse can call it.
The connector URL accepts GET, POST, and DELETE for stateless Streamable HTTP. A request without Authorization: Bearer <key> is rejected.
Access requirements
A Closeout Copilot account and a Muse key are required. The key acts as that shop user inside their organization. A technician key can only touch assigned jobs.
The Free plan includes 1 customer, 1 job, 1 technician, 1 invoice, and 1 route. Solo is $29 a month for 1 technician, with unlimited customers, jobs, invoices, and routes. Team is $49 a month for up to 5 technicians. Unlimited is $129 a month for any number of technicians.
There is no regional restriction and no rate limit. The connector URL must be public HTTPS.
Example prompts
What jobs do I have today? On the brake job, add two front brake pads at $74 each and 45 minutes of labor at $125 an hour. Then draft the invoice and a review request. Do not send anything.
What's on my route today, and what's my next stop?
I just got to the battery job. Mark me arrived and add a work note that the old battery tested at 11.8 volts.
Mark the oil-change job complete. Save a service report: customer said it was due, I changed the oil and filter, and I recommend tires at the next visit. Draft the completion text. Do not send it.
Reorder today's route for the shortest drive time, but leave the 2 PM appointment where it is. Don't notify anyone.
For the brake job, create a maintenance reminder for a brake inspection in six months. Don't message the customer.
Pull up the Smith job. If more than one matches, list them and wait for me to pick.
Endpoint
The same actions are also available to a signed-in browser session at POST /api/assistant/actions.
{
"action": "add_part",
"idempotencyKey": "brake-pads-idem-01",
"input": { "jobId": "…", "name": "Front brake pads", "quantity": 2, "unitPrice": 74 }
}GET /api/assistant/actions returns the action catalog. POST /api/assistant/keys issues a Muse key for the signed-in user, GET returns only the prefix, and DELETE revokes it.
The browser caller must already have a Closeout Copilot session cookie. In demo mode that cookie is cc_session. With Supabase configured, the session is the Supabase auth cookie. The action runs as that user, inside that user's organization. A technician can only touch assigned jobs. A Muse key resolves to the same kind of session.
Actions
| Action | Writes | Notes |
|---|---|---|
| list_todays_jobs | No | Today's jobs for the caller, or one technician |
| get_job_details | No | By job id or a short query |
| open_job | No | Returns the in-app path |
| update_job_status | Yes | Follows the status machine |
| add_job_note | Yes | Internal, customer, voice, or work note |
| add_labor_entry | Yes | Description, minutes, rate |
| add_part | Yes | Name, quantity, price |
| create_service_report_draft | Yes | Draft only |
| create_invoice_draft | Yes | Draft only. Does not send |
| create_customer_message_draft | Yes | Draft only. Does not send |
| create_maintenance_reminder | Yes | Reminder only. Does not message |
| get_daily_route | No | Stop count for the day |
| optimize_daily_route | Yes | Saves the plan. Does not notify |
| reorder_route_stop | Yes | Saves the manual order |
| get_next_route_stop | No | Next unfinished stop |
| mark_arrived | Yes | Sets status to arrived |
| mark_job_complete | Yes | Sets status to completed |
MCP tools
Each action is one MCP tool. Write tools take an optional idempotency key. Reusing a key with the same body returns the first result. Reusing a key with a different body returns a conflict. A vague job query that matches more than one job returns the candidates instead of guessing. Tool descriptions for invoices, messages, and reminders repeat the draft-only rule.
Approval and safety
These actions never send SMS, email, an invoice, a payment charge, or a route push. Message and invoice tools create drafts. A person still has to approve and then send from the review screen. Every write records an audit log row. Technician limits still come from the session checks in the app.