Model Context Protocol
NexSpace exposes a JSON-RPC 2.0 MCP server athttps://mcp.nexspace365.com/mcp.
AI agents (Claude Code, Cursor, ChatGPT, Composio, custom) use this to discover
and invoke 16 workforce management tools.
Discovery
Protocol
All MCP communication happens viaPOST /mcp with JSON-RPC 2.0 messages.
Initialize
List Available Tools
Call a Tool
Streaming a Tool Call (Streamable HTTP)
SendAccept: text/event-stream on a tools/call POST /mcp to receive the
response as Server-Sent Events instead of a single JSON body. The stream carries
zero or more notifications/progress frames (only when you supply a
params._meta.progressToken) followed by the terminal JSON-RPC response, then
closes. Each SSE frame has a monotonic id.
The response includes an Mcp-Stream-Id header. If the connection drops before
the terminal response, reconnect to GET /mcp/stream/{streamId} with a
Last-Event-ID header to replay the frames you missed:
Accept: text/event-stream continue to get a single
JSON response, so this is fully backward-compatible.
Available Tools
Scheduling
Credentials
Staff
Payroll
Communications
CRM
Facilities
Error Codes
All error responses include a
suggestion field with recovery guidance and
a retryable boolean.
Best Practices
- Read before write. Call read tools to confirm scope before mutating.
- Confirm with the user before calling mutating tools.
- Respect
FORBIDDENerrors — the API key needs a broader scope. - Use
tools/listto discover available tools at runtime. - Check
isErrorin tool call results for handler-level failures.

