KosmoKrator

field-service

ServiceM8 MCP Integration for Generic MCP Clients

Connect ServiceM8 to Generic MCP Clients through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 6 read 1 write Manual OAuth token auth

Connect ServiceM8 to Generic MCP Clients

Connect any stdio-compatible MCP client to local KosmoKrator integration tools.

Register kosmo mcp:serve as the command for a local stdio MCP server. The gateway is local, scoped to this integration, and starts with --write=deny so MCP clients can inspect read-capable tools without receiving write access by default.

ServiceM8 MCP Config for Generic MCP Clients

Start with read-only write policy and expand only for trusted projects.

{
  "mcpServers": {
    "kosmokrator-service_m8": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=service_m8",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=service_m8 --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only ServiceM8 instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

ServiceM8 Tools Visible to MCP clients

MCP clients sees stable MCP tool names generated from the ServiceM8 integration catalog.

MCP toolSource functionTypeDescription
integration__service_m8__servicem8_list_jobs service_m8.servicem8_list_jobs Read List jobs from ServiceM8. Returns job details including status, client, dates, and descriptions. Supports filtering by status and pagination.
integration__service_m8__servicem8_get_job service_m8.servicem8_get_job Read Get detailed information about a specific ServiceM8 job by its UUID. Returns full job details including status, client, description, dates, and assigned staff.
integration__service_m8__servicem8_list_clients service_m8.servicem8_list_clients Read List clients from ServiceM8. Returns client details including name, email, phone, and address. Supports pagination.
integration__service_m8__servicem8_get_client service_m8.servicem8_get_client Read Get detailed information about a specific ServiceM8 client by their UUID. Returns client details including name, email, phone, billing address, and notes.
integration__service_m8__servicem8_create_job service_m8.servicem8_create_job Write Create a new job in ServiceM8. Requires a client UUID. Optionally specify a job template and description to pre-populate the job.
integration__service_m8__servicem8_list_activities service_m8.servicem8_list_activities Read List activity records from ServiceM8. Returns a timeline of events such as job status changes, comments, and notes. Supports filtering by job and pagination.
integration__service_m8__servicem8_get_current_user service_m8.servicem8_get_current_user Read Get the profile of the currently authenticated ServiceM8 user. Returns name, email, role, and account details.

Related ServiceM8 Pages