KosmoKrator

productivity

Bitly MCP, CLI, and Lua Integration for AI Agents

Bitly integration docs for AI agents: MCP gateway setup, Bitly CLI commands, Lua API reference, credentials, and function schemas.

Bitly for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Agent Surfaces

Machine-Readable Metadata

Function Catalog

FunctionTypeParametersDescription
bitly.bitly_shorten_link Write write 3 Shorten a long URL into a Bitlink. Returns the shortened URL and link details.
bitly.bitly_get_link Read read 1 Retrieve details for a Bitlink, including the long URL, title, tags, and timestamps.
bitly.bitly_update_link Write write 4 Update a Bitlink's metadata — set the title, archive/unarchive, or update tags.
bitly.bitly_get_clicks Read read 4 Get click metrics for a Bitlink. Returns click counts by time unit (minute, hour, day, week, month).
bitly.bitly_get_click_summary Read read 2 Get total click summary data for a Bitlink.
bitly.bitly_get_click_countries Read read 2 Get click counts grouped by country for a Bitlink.
bitly.bitly_get_click_referrers Read read 2 Get click counts grouped by referrer for a Bitlink.
bitly.bitly_list_groups Read read 0 List all groups in the Bitly account. Groups organize links and are used when creating new Bitlinks.
bitly.bitly_get_group Read read 1 Retrieve details for a specific Bitly group by its GUID.
bitly.bitly_list_group_bitlinks Read read 2 List Bitlinks in a Bitly group with optional filters.
bitly.bitly_create_bitlink Write write 5 Create a new Bitlink with title, tags, and optional custom domain. More full-featured than shorten — use this when you need metadata.
bitly.bitly_expand_bitlink Read read 1 Expand a Bitlink to retrieve its long URL.
bitly.bitly_add_custom_bitlink Write write 2 Add a custom back-half to an existing Bitlink on a custom domain.
bitly.bitly_create_qr_code Write write 1 Create a Bitly QR Code for a destination such as a Bitlink or long URL.
bitly.bitly_get_qr_code Read read 1 Get a Bitly QR Code by ID.
bitly.bitly_list_organization_webhooks Read read 1 List webhooks for a Bitly organization.
bitly.bitly_create_organization_webhook Write write 2 Create a webhook for a Bitly organization.
bitly.bitly_get_current_user Read read 0 Get the authenticated Bitly user's profile. Use this to verify the connection and see account info.
bitly.bitly_api_get Read read 2 Call any Bitly API v4 GET endpoint.
bitly.bitly_api_post Write write 2 Call any Bitly API v4 POST endpoint.
bitly.bitly_api_patch Write write 2 Call any Bitly API v4 PATCH endpoint.
bitly.bitly_api_delete Write write 2 Call any Bitly API v4 DELETE endpoint.