field-service
ServiceM8 MCP Gateway for AI Agents
Expose ServiceM8 tools to Claude Code, Cursor, Codex, and other MCP clients through the local KosmoKrator MCP gateway.
7 functions 6 read 1 write Manual OAuth token auth
ServiceM8 MCP Gateway
Expose ServiceM8 to MCP clients with `kosmokrator mcp:serve --integration=service_m8`.
If the client has never used KosmoKrator before, install it first, then register this integration as a stdio MCP server. The gateway exposes only the selected integration in the example below.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash kosmokrator mcp:gateway:install --integration=service_m8 --write=deny --json {
"mcpServers": {
"kosmokrator-service_m8": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=service_m8",
"--write=deny"
]
}
}
} Serve Manually
kosmokrator mcp:serve --integration=service_m8 --write=deny MCP Tool Names
KosmoKrator exposes integration tools through the gateway with stable names:
| MCP tool | Source function | Type |
|---|---|---|
integration__service_m8__servicem8_list_jobs | service_m8.servicem8_list_jobs | Read read |
integration__service_m8__servicem8_get_job | service_m8.servicem8_get_job | Read read |
integration__service_m8__servicem8_list_clients | service_m8.servicem8_list_clients | Read read |
integration__service_m8__servicem8_get_client | service_m8.servicem8_get_client | Read read |
integration__service_m8__servicem8_create_job | service_m8.servicem8_create_job | Write write |
integration__service_m8__servicem8_list_activities | service_m8.servicem8_list_activities | Read read |
integration__service_m8__servicem8_get_current_user | service_m8.servicem8_get_current_user | Read read |
Write Access
Start with --write=deny for read-only MCP clients. Use --write=ask or
--write=allow only when the client and workspace are trusted.