KosmoKrator

analytics

Opsgenie MCP Integration for OpenAI Agents SDK

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

Opsgenie MCP Config for OpenAI Agents SDK

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

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

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

Opsgenie Tools Visible to OpenAI Agents

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

MCP toolSource functionTypeDescription
integration__opsgenie__opsgenie_list_alerts opsgenie.opsgenie_list_alerts Read List Opsgenie alerts. Optionally filter by query, status, or priority. Returns alert IDs, messages, statuses, and priorities.
integration__opsgenie__opsgenie_get_alert opsgenie.opsgenie_get_alert Read Get full details of a specific Opsgenie alert by its ID. Returns message, description, priority, status, tags, and recipients.
integration__opsgenie__opsgenie_create_alert opsgenie.opsgenie_create_alert Write Create a new Opsgenie alert. Specify message, priority (P1–P5), and optional description, alias, tags, teams, or recipients.
integration__opsgenie__opsgenie_list_incidents opsgenie.opsgenie_list_incidents Read List Opsgenie incidents. Optionally filter by query, status, or priority. Returns incident IDs, messages, statuses, and priorities.
integration__opsgenie__opsgenie_get_incident opsgenie.opsgenie_get_incident Read Get full details of a specific Opsgenie incident by its ID. Returns message, description, priority, status, impacted services, and responders.
integration__opsgenie__opsgenie_list_teams opsgenie.opsgenie_list_teams Read List all Opsgenie teams. Returns team IDs, names, and descriptions.
integration__opsgenie__opsgenie_get_current_user opsgenie.opsgenie_get_current_user Read Get the currently authenticated Opsgenie user. Useful for verifying credentials and identifying the connected account.

Related Opsgenie Pages