KosmoKrator

sales

Freshsales MCP Integration for OpenAI Agents SDK

Connect Freshsales to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 6 read 1 write API key auth

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

Freshsales MCP Config for OpenAI Agents SDK

Use headless JSON commands for CI-style execution and MCP for agent tool discovery.

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

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

Freshsales Tools Visible to OpenAI Agents

OpenAI Agents sees stable MCP tool names generated from the Freshsales integration catalog.

MCP toolSource functionTypeDescription
integration__freshsales__freshsales_create_contact freshsales.freshsales_create_contact Write Create a new contact in Freshsales CRM with name, email, and phone details.
integration__freshsales__freshsales_get_contact freshsales.freshsales_get_contact Read Get full details for a specific Freshsales contact by ID.
integration__freshsales__freshsales_get_current_user freshsales.freshsales_get_current_user Read Get the profile of the currently authenticated Freshsales user. Useful for verifying the API connection.
integration__freshsales__freshsales_get_deal freshsales.freshsales_get_deal Read Get full details for a specific Freshsales deal by ID.
integration__freshsales__freshsales_list_accounts freshsales.freshsales_list_accounts Read List sales accounts (companies) from Freshsales CRM. Returns paginated results.
integration__freshsales__freshsales_list_contacts freshsales.freshsales_list_contacts Read List contacts from Freshsales CRM. Returns paginated results with optional sorting by field and direction.
integration__freshsales__freshsales_list_deals freshsales.freshsales_list_deals Read List deals from Freshsales CRM. Returns paginated results showing deal pipeline information.

Related Freshsales Pages