marketing
Dub.co MCP Integration for OpenAI Agents SDK
Connect Dub.co to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Dub.co to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
Dub.co MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-dub": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=dub",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=dub --write=deny Why Use KosmoKrator Here
Expose only Dub.co 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.
Dub.co Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Dub.co integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__dub__dub_list_links | dub.dub_list_links | Read | List short links from Dub.co. Supports pagination, searching, and filtering by domain or tag. |
integration__dub__dub_get_link | dub.dub_get_link | Read | Get details of a specific short link by its ID. |
integration__dub__dub_create_link | dub.dub_create_link | Write | Create a new short link in Dub.co. Provide a destination URL and optionally a custom domain, key (back-half), title, description, and tags. |
integration__dub__dub_list_domains | dub.dub_list_domains | Read | List all domains configured in your Dub.co workspace. |
integration__dub__dub_get_domain | dub.dub_get_domain | Read | Get details of a specific domain by its ID or slug. |
integration__dub__dub_list_tags | dub.dub_list_tags | Read | List link tags in your Dub.co workspace. Supports pagination and search. |
integration__dub__dub_get_current_user | dub.dub_get_current_user | Read | Get the profile of the currently authenticated Dub.co user. Useful for verifying the connection and checking workspace membership. |