KosmoKrator

ai

Anthropic MCP Integration for OpenAI Agents SDK

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

Anthropic MCP Config for OpenAI Agents SDK

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

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

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

Anthropic Tools Visible to OpenAI Agents

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

MCP toolSource functionTypeDescription
integration__anthropic__anthropic_list_messages anthropic.anthropic_list_messages Read List messages in the Anthropic conversation history. Returns paginated message resources with optional filtering by model, date, and ID.
integration__anthropic__anthropic_create_message anthropic.anthropic_create_message Write Send a prompt to Claude and receive an AI-generated response. Supports multi-turn conversations, system prompts, temperature control, and configurable output length.
integration__anthropic__anthropic_list_models anthropic.anthropic_list_models Read List available Anthropic AI models. Returns model identifiers, creation dates, and display names.
integration__anthropic__anthropic_get_model anthropic.anthropic_get_model Read Get detailed information about a specific Anthropic model, including its display name, creation date, and capabilities.
integration__anthropic__anthropic_list_workspaces anthropic.anthropic_list_workspaces Read List Anthropic workspaces. Returns workspace identifiers, names, and configuration details.
integration__anthropic__anthropic_get_workspace anthropic.anthropic_get_workspace Read Get detailed information about a specific Anthropic workspace, including its name, configuration, and usage settings.
integration__anthropic__anthropic_get_current_user anthropic.anthropic_get_current_user Read Get the authenticated user's profile and account information.

Related Anthropic Pages