A Model Context Protocol (MCP) server for Syncro MSP, implementing a decision tree architecture for efficient tool navigation.
Operator note — GitHub Packages authentication (required for one-click deploys). This server depends on the private
@wyre-ai/node-syncroSDK, which is hosted on GitHub Packages. GitHub Packages requires an authentication token on every install (no anonymous reads, even for public packages), so the cloud builders fail duringnpm installwith401 Unauthorizedunless you supply a token. Create a GitHub Personal Access Token with theread:packagesscope and provide it to the builder:
- Cloudflare Workers — set a build/environment variable named
NODE_AUTH_TOKENto your PAT.- DigitalOcean App Platform — set a build-time secret named
GITHUB_TOKENto your PAT.For local
npm install, runexport NODE_AUTH_TOKEN=$(gh auth token)first.
- Decision Tree Architecture: Tools are organized by domain and loaded lazily
- Domain Navigation: Navigate between customers, tickets, assets, contacts, and invoices
- Lazy Loading: Domain handlers and the Syncro client are loaded on-demand
- Full Syncro API Coverage: Access to key Syncro MSP functionality
- Interactive Ticket Card (MCP Apps):
syncro_tickets_getrenders as an interactive card in MCP Apps hosts (Claude Desktop/web) with an in-card "Add comment" round-trip viasyncro_tickets_add_comment(internal-only by default); plain-JSON behavior is unchanged in other hosts. The card is neutral by default, brandable viawindow.__BRAND__injection orMCP_BRAND_*env vars (MCP_BRAND_NAME,MCP_BRAND_LOGO_URL,MCP_BRAND_PRIMARY_COLOR,MCP_BRAND_ACCENT_COLOR,MCP_BRAND_BG,MCP_BRAND_TEXT) — no rebuild needed.
WYRE MCP servers are distributed via OCI/GHCR images and (where available) MCPB bundles. The npm package
@wyre-ai/syncro-mcpis also published to GitHub Packages (npm.pkg.github.com); installing it requires an authenticated.npmrcwithread:packagesscope (runexport NODE_AUTH_TOKEN=$(gh auth token)locally).
Use the hosted gateway at mcp.wyre.ai — paste your Syncro API key into the gateway UI and you're done.
{
"mcpServers": {
"syncro": {
"type": "http",
"url": "https://mcp.wyre.ai/v1/syncro/mcp",
"headers": {
"X-Syncro-Api-Key": "${SYNCRO_API_KEY}"
}
}
}
}claude mcp add syncro \
-e SYNCRO_API_KEY=your-api-key \
-e SYNCRO_SUBDOMAIN=your-subdomain \
-- npx -y github:WYRE-AI/syncro-mcpThe image listens on 0.0.0.0 inside the container and defaults to AUTH_MODE=gateway. Publish the port on loopback and pass the service-to-service secret. In gateway mode, Syncro credentials arrive on each request as headers; they are not read from the environment.
docker run --rm \
-e CONDUIT_S2S_SECRET=your-s2s-secret \
-p 127.0.0.1:8080:8080 \
ghcr.io/wyre-ai/syncro-mcp:latestCompose refuses to start when CONDUIT_S2S_SECRET is unset, runs AUTH_MODE=gateway with no static SYNCRO_* credentials, and publishes 127.0.0.1:8080:8080:
CONDUIT_S2S_SECRET=your-s2s-secret docker compose upSingle-tenant HTTP (AUTH_MODE=env) still requires the S2S secret, then uses SYNCRO_API_KEY:
docker run --rm \
-e CONDUIT_S2S_SECRET=your-s2s-secret \
-e AUTH_MODE=env \
-e SYNCRO_API_KEY=your-api-key \
-e SYNCRO_SUBDOMAIN=your-subdomain \
-p 127.0.0.1:8080:8080 \
ghcr.io/wyre-ai/syncro-mcp:latestgit clone https://github.com/WYRE-AI/syncro-mcp.git
cd syncro-mcp
npm ci
npm run build
node dist/index.jsCopy .env.example and set the variables below.
| Variable | Required | Description |
|---|---|---|
SYNCRO_API_KEY |
For stdio and AUTH_MODE=env |
Your Syncro API key |
SYNCRO_SUBDOMAIN |
No | Your Syncro subdomain, for example acme for acme.syncromsp.com. Letters, digits and hyphens only; a host name or URL is rejected before any request is sent. |
MCP_TRANSPORT |
No | stdio (default) or http |
AUTH_MODE |
No | gateway (Docker image and Compose default) or env. Gateway mode requires X-Syncro-API-Key on each /mcp request and never falls back to SYNCRO_*. env uses those variables only after S2S auth succeeds. |
CONDUIT_S2S_SECRET |
Yes for HTTP | Service-to-service secret. The HTTP server logs an error and exits non-zero when this is empty or a known placeholder (changeme, your-s2s-secret, replace-with-a-real-secret, secret, an unresolved ${...} value, and the other example strings). Compose will not start without it. Never commit a real value. Generate one with openssl rand -hex 32. |
MCP_ALLOW_INSECURE_DEV |
No | Set to exactly 1 only for local development to start HTTP without CONDUIT_S2S_SECRET. The process logs a warning, does not enforce X-Gateway-S2S, and binds 127.0.0.1 only. A wider MCP_HTTP_HOST (including 0.0.0.0) is ignored and the override is logged. A known placeholder secret still refuses to start. |
MCP_HTTP_HOST |
No | Bind address when MCP_TRANSPORT=http and CONDUIT_S2S_SECRET is set. Defaults to 127.0.0.1 when unset. The container image sets 0.0.0.0. |
MCP_HTTP_PORT |
No | HTTP port. Defaults to 8080. |
/health stays unauthenticated and does not read credentials. The stdio transport does not use CONDUIT_S2S_SECRET.
With MCP_TRANSPORT=http and CONDUIT_S2S_SECRET set, every /mcp request must include X-Gateway-S2S. The value is t=<unix seconds>,v1=<hex>, where the hex is HMAC-SHA256 of the literal string t=<unix seconds> keyed with CONDUIT_S2S_SECRET (64 lowercase hex characters). The timestamp must be within 300 seconds of the server clock. A missing or invalid header returns 401 before vendor credentials are read. The secret is never logged.
TS=$(date +%s)
SIG=$(printf 't=%s' "$TS" | openssl dgst -sha256 -hmac "$CONDUIT_S2S_SECRET" -hex | awk '{print $NF}')
curl -sS http://127.0.0.1:8080/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H "X-Gateway-S2S: t=${TS},v1=${SIG}" \
-H "X-Syncro-API-Key: $SYNCRO_API_KEY" \
-H "X-Syncro-Subdomain: $SYNCRO_SUBDOMAIN" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'In AUTH_MODE=gateway, /mcp also requires X-Syncro-API-Key (X-Syncro-Subdomain is optional). Those headers are the only credential source for that request. A request missing the API key returns 401 and does not fall back to SYNCRO_API_KEY in the process environment.
In AUTH_MODE=env, /mcp still requires a valid X-Gateway-S2S header. Vendor credentials come from SYNCRO_API_KEY and SYNCRO_SUBDOMAIN when the request does not carry X-Syncro-API-Key.
Local HTTP without a secret is development-only. It binds 127.0.0.1 and logs a warning:
MCP_TRANSPORT=http MCP_ALLOW_INSECURE_DEV=1 npm start- Log in to your Syncro MSP account
- Navigate to Settings > API Tokens
- Generate a new API token with appropriate permissions
The server uses a hierarchical approach to tool discovery:
- Initial State: Only navigation and status tools are exposed
- After Navigation: Domain-specific tools become available
- Back Navigation: Return to the main menu to switch domains
This reduces cognitive load and improves LLM tool selection accuracy.
| Domain | Description | Tools |
|---|---|---|
customers |
Manage customer accounts | list, get, create, search |
tickets |
Manage support tickets | list, get, create, update, add_comment, add_line_item |
assets |
Manage assets and RMM actions | list, get, search, get_patches, list_installed_applications, list_policy_folders, set_policy_folder, run_script |
contacts |
Manage customer contacts | list, get, create |
invoices |
View and manage billing | list, get, create, email |
time |
Ticket time entries | list_entries, log_entry, set_billable |
Four writes deserve particular care:
| Tool | What it does that you may not expect | Confirmation |
|---|---|---|
syncro_tickets_add_comment |
Unless hidden: true, the comment is public and Syncro emails it to the customer. do_not_email: true stops the email but a public comment stays visible. |
Not confirm-gated: no prompt and no confirm flag on any transport. |
syncro_tickets_create |
With comment_body, creates a comment that may be visible to the customer and emailed to them; this tool cannot mark it hidden. |
Not confirm-gated, as above. |
syncro_assets_set_policy_folder |
Changes which RMM policies (patch schedule, monitoring, automation, scripts) apply to a managed device. | Prompts over stdio with an elicitation-capable client; otherwise runs with no confirmation. |
syncro_invoices_email |
Emails the invoice to the customer and cannot be undone. | Destructive: requires confirm: true when there is no prompt. |
Every tool carries MCP annotations (readOnlyHint, destructiveHint, idempotentHint) that classify it as read, write, or destructive. The annotations are hints for MCP clients, not enforcement. See docs/WYREAI-464-capability-diff.md for how this server and the official Syncro MCP split coverage.
How a write is confirmed depends on the transport.
- stdio, client supports elicitation: the new write tools (
syncro_time_log_entry,syncro_time_set_billable,syncro_tickets_add_line_item,syncro_assets_set_policy_folder,syncro_assets_run_script) andsyncro_invoices_emailask the user through MCP elicitation. A client that declares an emptyelicitationcapability counts as supporting it, because the MCP specification defines that as form support. A declined or cancelled prompt stops the call, and a prompt that fails stops it too. - stdio, client cannot elicit: the ordinary writes proceed without a prompt. The two destructive tools,
syncro_assets_run_scriptandsyncro_invoices_email, requireconfirm: true. - HTTP, including behind the gateway: there is no prompt. The HTTP transport builds a new server for every request, so the server never learns whether the client can elicit. Ordinary writes proceed with no confirmation.
syncro_assets_run_scriptandsyncro_invoices_emailrequireconfirm: true, but the calling model supplies that flag itself, so it is a convention the model is asked to honour after asking the user, not an enforcement boundary. This server has no other confirmation step.
On the gateway, the enforcement boundary is the gateway's per-tool tier policy (read, write, admin). Restrict syncro_assets_run_script, which runs code on a managed device, to the gateway's admin tier.
What a prompt shows. The same text is returned in the "Confirmation required" message when confirm: true is needed.
- Ids. Every id that any tool puts in a request path, SDK-backed or not, is checked first:
ticket_id,customer_id,contact_id,asset_id,invoice_id,script_id,policy_folder_idandtimer_id, and the id of a time entry that Syncro returns, must be positive integers. Anything else is rejected with an error before a prompt is built or a request is sent. An id that is only a query filter or a JSON body field (for examplecustomer_idonsyncro_tickets_list) cannot change the endpoint and is passed through as given. - Other values.
user_idandproduct_idmust be positive integers,duration_minutesa positive whole number (Syncro's schema is an integer),quantitya number above 0,price_retailandprice_costfinite numbers,billableandtaxabletrue or false (a string such as"false"is rejected), andrun_at,start_atandend_atreal ISO 8601 date-times withZor an offset, such as2026-11-07T02:00:00Z. A date without an offset is rejected because its time zone would be ambiguous. - Every free-text value that is sent is shown exactly as sent, or the call is refused. This covers
notesonsyncro_time_log_entry,nameanddescriptiononsyncro_tickets_add_line_item,run_asand every script variable name and value onsyncro_assets_run_script, andcc_emails,subjectandmessageonsyncro_invoices_email. What you approve is what is sent: nothing is trimmed, cut or cleaned between the prompt and the request. The call is refused, with no prompt and no request, if the value is not a string; contains a control character other than newline, carriage return and tab (so CRLF line endings are accepted, and a lone\rtoo); a format character (zero-width, direction-changing), a private-use, unassigned or surrogate code point; any space or separator other than the plain space (no-break and other wide or narrow spaces, line and paragraph separators); or a character that draws nothing (variation selectors, for example U+FE0F; Hangul and Khmer fillers; U+034F; U+2800); or is too long. The limit is 200 characters (1000 for time entrynotes, a line itemdescription, an emailmessage, and for the script variables together as listed), counted on the raw value, so a run of newlines counts and a CRLF is two characters. The prompt shows the raw value as a JSON string: a newline appears as\n, a carriage return as\r, a tab as\tand a quote as\". A line item name or description that was not given is shown as "not set" (the request omits it).
Only a 4xx response (including a 429) means Syncro rejected a write, and it is reported as a plain rejection. A write that ends any other way may still have been applied: a network error, a timeout, or a 5xx or other non-4xx status. Its error says "The change may or may not have been applied; check Syncro before retrying." This holds for the writes made through the REST helper (syncro_time_log_entry, syncro_time_set_billable, syncro_tickets_add_line_item, syncro_assets_set_policy_folder, syncro_assets_run_script) and for the SDK-backed writes (syncro_tickets_create, syncro_tickets_update, syncro_tickets_add_comment, syncro_customers_create, syncro_contacts_create, syncro_invoices_create, syncro_invoices_email). One more case holds for the REST helper only: a 2xx whose body is not a JSON object (HTML, null, an array) is reported as an error with the same note. An SDK-backed write that gets a 2xx with an array or a bare value is returned to the caller as a success, without the note; this server does not check the shape of an SDK response. Reads never carry the note.
Every write is sent exactly once. The REST helper never retries, and SDK-backed writes use a client with retries turned off, so a create, comment or email is not repeated after a 5xx or 429. Reads keep the SDK's retries. Only the REST helper sets a timeout (30 seconds per call); the SDK has no timeout and this server does not add one, so an SDK-backed write that never receives a response does not end on its own.
Navigate to a domain to access its tools.
{
"domain": "customers" | "tickets" | "assets" | "contacts" | "invoices" | "time"
}Return to the main menu from any domain.
Show current navigation state and credential status.
List customers with optional filters.
{
"query": "search term",
"business_name": "Company Inc",
"email": "contact@example.com",
"include_disabled": false,
"page": 1,
"per_page": 25
}Get a specific customer by ID.
{
"customer_id": 123
}Create a new customer.
{
"business_name": "Acme Corp",
"firstname": "John",
"lastname": "Doe",
"email": "john@acme.com"
}Search customers by query string.
{
"query": "acme",
"limit": 25
}List tickets with optional filters.
{
"customer_id": 123,
"status": "Open",
"user_id": 456,
"resolved": false
}Get a specific ticket by ID.
{
"ticket_id": 789
}Create a new ticket. comment_body creates an initial comment that may be visible to the customer, and Syncro may email it to them. This tool cannot mark that comment hidden; to leave an internal note, omit comment_body and call syncro_tickets_add_comment with hidden: true.
{
"customer_id": 123,
"subject": "Network Issue",
"problem_type": "Network",
"comment_body": "Initial description"
}Update an existing ticket.
{
"ticket_id": 789,
"status": "Resolved",
"user_id": 456
}Add a comment to a ticket. Unless hidden is true, the comment is public: the customer can see it and Syncro emails it to them. Use hidden: true for an internal note, and do_not_email: true to stop the notification email. This tool does not set either flag for you.
{
"ticket_id": 789,
"body": "Comment text",
"hidden": false
}Add a billable line item to a ticket (write; see Write confirmation). The prompt shows name and description exactly as sent, so the call is refused if one is not a string, contains a character the prompt cannot show, or is over its limit (200 characters for name, 1000 for description).
{
"ticket_id": 789,
"name": "Onsite labor",
"description": "1h onsite",
"quantity": 1,
"price_retail": 150
}List assets with optional filters.
{
"customer_id": 123,
"asset_type": "Desktop"
}Get a specific asset by ID.
{
"asset_id": 456
}Search assets by query or serial number.
{
"query": "workstation",
"asset_serial": "SN12345"
}Windows patch status for an RMM-managed asset (installed, missing, failed, rejected).
{
"asset_id": 456
}Software installed on an RMM-managed asset, e.g. to confirm a backup agent is present.
{
"asset_id": 456
}A customer's RMM policy folders.
{
"customer_id": 123
}Move an asset into a policy folder, which changes its RMM and patch policy. Moving a device into a policy folder can apply that folder's policies and scripts to it (write; see Write confirmation).
{
"asset_id": 456,
"policy_folder_id": 2
}Run an existing Syncro RMM script once on an asset, now or at run_at (destructive; requires confirm: true without a prompt, see Write confirmation). script_id must be a positive integer and run_at an ISO 8601 date-time with Z or an offset. The prompt shows run_as and every variable exactly as sent, so the call is refused if run_as or a variable name or value is not a string, contains a control or invisible character (newline, carriage return and tab are allowed) or a space other than the plain space (such as a non-breaking space), or is over 200 characters, or if the variables together are over 1000 when listed. Restrict it to the gateway's admin tier.
{
"asset_id": 456,
"script_id": 77,
"run_at": "2026-11-07T02:00:00Z",
"confirm": true
}List contacts with optional filters.
{
"customer_id": 123,
"query": "john"
}Get a specific contact by ID.
{
"contact_id": 789
}Create a new contact.
{
"customer_id": 123,
"name": "Jane Smith",
"email": "jane@example.com"
}List invoices with optional filters.
{
"customer_id": 123,
"status": "sent",
"since_date": "2024-01-01"
}Get a specific invoice by ID.
{
"invoice_id": 456
}Create a new invoice.
{
"customer_id": 123,
"due_date": "2024-02-01"
}Email an invoice to the customer (destructive; requires confirm: true without a prompt, see Write confirmation). The prompt shows cc_emails, subject and message exactly as sent, so the call is refused if one is not a string, contains a control or invisible character (newline, carriage return and tab are allowed) or a space other than the plain space (such as a non-breaking space), or is over its limit (200 characters for cc_emails and subject, 1000 for message).
{
"invoice_id": 456,
"subject": "Your Invoice",
"confirm": true
}List ticket time entries. billing_status: "unbilled" finds billable work not yet charged.
{
"customer_id": 123,
"billing_status": "unbilled",
"created_after": "2026-10-01"
}Log completed time on a ticket with a billable flag (write; see Write confirmation). The prompt shows notes exactly as sent, so the call is refused if it is not a string, contains a character the prompt cannot show, or is over 1000 characters.
{
"ticket_id": 789,
"start_at": "2026-11-05T14:00:00Z",
"duration_minutes": 30,
"billable": true,
"notes": "Reset MFA"
}Mark an existing time entry billable or non-billable (write; see Write confirmation).
{
"timer_id": 11,
"billable": false
}Syncro API has a rate limit of 180 requests per minute. How a tool copes depends on how it calls Syncro:
- SDK-backed tools (customers, contacts, ticket list, get, create, update and comment, asset list, get and search, invoices): the
@wyre-ai/node-syncroclient slows itself down near the limit and retries a read after a 429 or 5xx, up to three times with backoff. Writes are never retried, see Write failures. The server uses one client for reads and another for writes, and the SDK counts requests per client, so each counts against its own budget. - REST-helper tools (
syncro_time_*,syncro_tickets_add_line_item,syncro_assets_get_patches,syncro_assets_list_installed_applications,syncro_assets_list_policy_folders,syncro_assets_set_policy_folder,syncro_assets_run_script): these call Syncro directly withfetch. They do not throttle or retry, so a 429 is returned to the caller as an error.
# Install dependencies. The @wyre-ai/node-syncro SDK lives on GitHub
# Packages, so authenticate first:
export NODE_AUTH_TOKEN=$(gh auth token)
npm install
# Build
npm run build
# Run in development (stdio)
npm run dev
# HTTP refuses to start until CONDUIT_S2S_SECRET is a real secret
CONDUIT_S2S_SECRET="$CONDUIT_S2S_SECRET" MCP_TRANSPORT=http npm start
# Local HTTP only, without a service-to-service secret (always binds 127.0.0.1)
MCP_ALLOW_INSECURE_DEV=1 MCP_TRANSPORT=http npm start
# Type check
npm run typecheck
# Lint
npm run lintApache-2.0