KosmoKrator

productivity

Nifty MCP Integration for Vercel AI SDK

Connect Nifty to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

6 functions 5 read 1 write Bearer token auth

Connect Nifty 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.

Nifty MCP Config for Vercel AI SDK

Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

Expose only Nifty 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.

Nifty Tools Visible to Vercel AI SDK

Vercel AI SDK sees stable MCP tool names generated from the Nifty integration catalog.

MCP toolSource functionTypeDescription
integration__nifty__nifty_list_projects nifty.nifty_list_projects Read List all projects in Nifty. Returns project IDs, names, and metadata that can be used to query tasks.
integration__nifty__nifty_get_project nifty.nifty_get_project Read Get details of a specific Nifty project by its ID, including name, description, status, and task lists.
integration__nifty__nifty_list_tasks nifty.nifty_list_tasks Read List tasks in Nifty with optional filters. Filter by project, status, assignee, or other criteria. Returns task IDs, titles, statuses, and assignees.
integration__nifty__nifty_get_task nifty.nifty_get_task Read Get details of a specific Nifty task by its ID, including title, description, status, assignee, and due date.
integration__nifty__nifty_create_task nifty.nifty_create_task Write Create a new task in a Nifty project. Requires a title and project ID. Optionally include a description, task list, assignee, and due date.
integration__nifty__nifty_get_current_user nifty.nifty_get_current_user Read Get the profile of the currently authenticated Nifty user, including name, email, and workspace membership.

Related Nifty Pages