Skip to main content

Model Context Protocol

NexSpace exposes a JSON-RPC 2.0 MCP server at https://mcp.nexspace365.com/mcp. AI agents (Claude Code, Cursor, ChatGPT, Composio, custom) use this to discover and invoke 16 workforce management tools.

Discovery

Returns server metadata including protocol version, capabilities, and auth configuration.

Protocol

All MCP communication happens via POST /mcp with JSON-RPC 2.0 messages.

Initialize

List Available Tools

Returns all 16 tools with their names, descriptions, input schemas, and annotations (read-only, destructive, idempotent hints).

Call a Tool

Streaming a Tool Call (Streamable HTTP)

Send Accept: 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:
Clients that don’t send 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

  1. Read before write. Call read tools to confirm scope before mutating.
  2. Confirm with the user before calling mutating tools.
  3. Respect FORBIDDEN errors — the API key needs a broader scope.
  4. Use tools/list to discover available tools at runtime.
  5. Check isError in tool call results for handler-level failures.