sc-workorders-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
sc-workorders-mcp
A local, read-only MCP server that lets an LLM query ServiceChannel work orders, locations, trades, provider assignments, and invoice status through typed tool calls instead of constructing raw API requests itself.
Nine tools: search_work_orders, count_work_orders, get_work_order, get_work_order_notes, get_work_order_assets, get_work_order_activities, get_work_order_context, search_locations, search_trades. All read-only — no writes, no mutations.
For everything else — how it works end to end, the auth model, ServiceChannel API quirks discovered along the way, design decisions, and how to rebuild it from scratch — see ARCHITECTURE.md. For what's shipped, planned, proposed, or rejected — see BACKLOG.md.
Quickstart
npm install
cp .env.example .env # fill in your ServiceChannel sandbox credentials
npm run check-auth # confirms your credentials work before you wire anything upnpm start runs the server directly (it speaks MCP over stdio, so you normally let your MCP client launch it instead — see below).
Required environment variables (see .env.example):
Variable | Required | Notes |
| yes | Must be registered in the target environment itself — a client synced from another environment won't authenticate. See ARCHITECTURE.md's auth quirks. |
| yes | |
| yes | |
| yes | |
| no | Defaults to ServiceChannel's Sandbox2 login host |
| no | Defaults to ServiceChannel's Sandbox2 API host |
Related MCP server: Express REST API and MCP Server Framework
Getting credentials
You need four values, all created in the same ServiceChannel environment you point the server at (Sandbox2 by default):
SC_CLIENT_ID/SC_CLIENT_SECRET— an OAuth "API Integration" created in that environment's own web UI. A client created in production, or synced over from it, does not work in the sandbox (the token call just redirects to a login page). See ARCHITECTURE.md's auth quirks.SC_USERNAME/SC_PASSWORD— a user account in that environment. Results are scoped to what that user can see.
Put them in .env (gitignored) and run npm run check-auth. It prints OK: authenticated as <user> against <host> on success. On failure the message says which pair to fix: a redirect (302) means the client ID/secret was rejected, a 400 means the username/password was.
Changing credentials or users
The server reads its credentials once at startup, so a change needs a re-register and a restart:
Update
.envand re-runnpm run check-authuntil it saysOK.claude mcp remove sc-workorders, then re-run theclaude mcp addcommand below with the new values.Restart your Claude session so the new server process starts.
This is also how you log out (claude mcp remove sc-workorders) and how you switch users. To use two identities side by side, register two entries with different names (e.g. sc-workorders-alice and sc-workorders-bob), each with its own -e values. There is no in-session login or user switching.
Wiring into an MCP client
claude mcp add sc-workorders -s user \
-e SC_CLIENT_ID=... -e SC_CLIENT_SECRET=... -e SC_USERNAME=... -e SC_PASSWORD=... \
-- node /absolute/path/to/dist/src/index.jsclaude mcp add -e stores those values in your local Claude config in plain text, and .env is only as private as your machine. Don't paste real values into issues, PRs, or screenshots, and rotate the client secret in ServiceChannel if one ever leaks.
Measuring latency and token cost
This prototype exists to put real numbers on a ServiceChannel workflow. Set SC_METRICS_FILE (add -e SC_METRICS_FILE=/path/metrics.jsonl to claude mcp add, or put it in .env for npm start) and every tool call appends one JSON line: {ts, tool, ms, apiCalls, bytes, estTokens, error}. apiCalls is ServiceChannel requests made by that call, bytes is the result text handed to the LLM, and estTokens is bytes / 4, a rough estimate rather than a real tokenizer count. Off by default.
jq -s 'group_by(.tool) | map({tool: .[0].tool, calls: length, avgMs: (map(.ms) | add / length | floor), avgEstTokens: (map(.estTokens) | add / length | floor)})' "$SC_METRICS_FILE"Testing
npm test runs a live smoke test (test.ts) directly against a real ServiceChannel sandbox — no mocking. This means it requires real credentials and live sandbox data to pass, and is not runnable in CI. npm run test:unit covers the pure logic (filter builders, response mappers) with no credentials needed — this is the one CI runs, alongside npm run lint and npm run format:check. See ARCHITECTURE.md's Testing section for exactly what each one checks.
Status
Working prototype, not a production integration. See ARCHITECTURE.md's "Explicitly out of scope" section for what this deliberately does not do.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Provides access to Civic Plus - See Click Fix, allowing you to interact with your data via an LLM.…
A read-only verified record of agent-operable GTM tools: search, fetch, compare, track changes.
Search and read published GoVisit destination and local business data through 22 read-only tools.
Read and write Sage Intacct from Claude or ChatGPT. Write tools are flagged for approval.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides read-only tools to search, read, and look up Natural API documentation from an AI agent, enabling documentation lookup without credentials.4MIT
- AlicenseNot gradedqualityAmaintenanceEnables LLMs to discover and invoke CRUD tools and read-only resources for generated services, allowing direct interaction with the same data exposed by the REST API.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI integrations to access typed service-catalog, quote, and job-status tools using synthetic records and a fictional price catalog.MIT
- AlicenseNot gradedqualityCmaintenanceEnables coding agents to query OpenTelemetry traces, logs, metrics, and account usage from running services through read-only tools for trace lookup, verification, and usage inspection.MIT