productivity
Toggl MCP Integration for Vercel AI SDK
Connect Toggl to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Toggl 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.
Toggl MCP Config for Vercel AI SDK
Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.
{
"mcpServers": {
"kosmokrator-toggl": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=toggl",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=toggl --write=deny Why Use KosmoKrator Here
Expose only Toggl 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.
Toggl Tools Visible to Vercel AI SDK
Vercel AI SDK sees stable MCP tool names generated from the Toggl integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__toggl__toggl_create_time_entry | toggl.toggl_create_time_entry | Write | Create a new time entry in a Toggl workspace. Provide a description, start time, and optionally a project and stop time. |
integration__toggl__toggl_get_current_user | toggl.toggl_get_current_user | Read | Get the authenticated Toggl user profile. Use this to verify your API token is working. |
integration__toggl__toggl_get_project | toggl.toggl_get_project | Read | Get details for a single Toggl project by ID. |
integration__toggl__toggl_get_time_entry | toggl.toggl_get_time_entry | Read | Get details for a single Toggl time entry by ID. |
integration__toggl__toggl_list_projects | toggl.toggl_list_projects | Read | List projects in a Toggl workspace. Optionally filter for active projects only. |
integration__toggl__toggl_list_time_entries | toggl.toggl_list_time_entries | Read | List recent Toggl time entries. Optionally filter by date range. |
integration__toggl__toggl_list_workspaces | toggl.toggl_list_workspaces | Read | List all Toggl workspaces the authenticated user belongs to. Returns workspace IDs and names needed for other Toggl tools. |