productivity
Kimai MCP Integration for Vercel AI SDK
Connect Kimai to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Kimai to Vercel AI SDK
Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.
Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with
--write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.
Kimai MCP Config for Vercel AI SDK
Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.
{
"mcpServers": {
"kosmokrator-kimai": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=kimai",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=kimai --write=deny Why Use KosmoKrator Here
Expose only Kimai instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Kimai Tools Visible to Vercel AI SDK
Vercel AI SDK sees stable MCP tool names generated from the Kimai integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__kimai__kimai_list_timesheets | kimai.kimai_list_timesheets | Read | List time-tracking entries from Kimai. Supports filtering by user, project, date range, and state. Returns paginated results with timesheet details including duration, description, and associated project/activity. |
integration__kimai__kimai_get_timesheet | kimai.kimai_get_timesheet | Read | Get details of a specific timesheet entry from Kimai. Returns the full timesheet record including begin/end timestamps, duration, description, project, activity, and user information. |
integration__kimai__kimai_create_timesheet | kimai.kimai_create_timesheet | Write | Create a new time-tracking entry in Kimai. Requires a begin timestamp and at least a project ID. Optionally specify an end time, activity, and description to categorize the time entry. |
integration__kimai__kimai_list_projects | kimai.kimai_list_projects | Read | List projects from Kimai. Supports filtering by customer and visibility. Returns project details including name, customer, budget, and time budget information. |
integration__kimai__kimai_get_project | kimai.kimai_get_project | Read | Get details of a specific project from Kimai. Returns the full project record including name, customer, comment, budget, time budget, and visibility status. |
integration__kimai__kimai_list_customers | kimai.kimai_list_customers | Read | List customers from Kimai. Supports filtering by visibility. Returns customer details including name, company, contact information, and associated project count. |
integration__kimai__kimai_get_current_user | kimai.kimai_get_current_user | Read | Get the profile of the currently authenticated Kimai user. Returns user details including username, display name, email, timezone, and language preferences. |