KosmoKrator

communication

Lark Suite MCP Integration for OpenAI Agents SDK

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

7 functions 5 read 2 write Bearer token auth

Connect Lark Suite 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.

Lark Suite MCP Config for OpenAI Agents SDK

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

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

Expose only Lark Suite 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.

Lark Suite Tools Visible to OpenAI Agents

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

MCP toolSource functionTypeDescription
integration__lark__lark_list_chats lark.lark_list_chats Read List chats the current authenticated user belongs to in Lark. Returns chat IDs, names, and metadata for use with other Lark tools.
integration__lark__lark_get_chat lark.lark_get_chat Read Get detailed information about a specific Lark chat, including its name, description, owner, and member count.
integration__lark__lark_create_chat lark.lark_create_chat Write Create a new group chat in Lark. Specify a chat ID and name for the new chat.
integration__lark__lark_list_messages lark.lark_list_messages Read List messages in a specific Lark chat. Returns message IDs, sender info, content, and timestamps.
integration__lark__lark_send_message lark.lark_send_message Write Send a message to a specific Lark chat. Supports text and rich message types.
integration__lark__lark_list_members lark.lark_list_members Read List members of a specific Lark chat. Returns member IDs, names, and roles.
integration__lark__lark_get_current_user lark.lark_get_current_user Read Get information about the currently authenticated Lark user, including name, user ID, and avatar.

Related Lark Suite Pages