communication
Knock MCP Integration for OpenAI Agents SDK
Connect Knock to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Knock 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.
Knock MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-knock": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=knock",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=knock --write=deny Why Use KosmoKrator Here
Expose only Knock 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.
Knock Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Knock integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__knock__knock_list_workflows | knock.knock_list_workflows | Read | List notification workflows from Knock. Returns workflow IDs and details you can use to trigger or inspect workflows. |
integration__knock__knock_get_workflow | knock.knock_get_workflow | Read | Get details of a specific notification workflow in Knock, including its steps and configuration. |
integration__knock__knock_trigger_workflow | knock.knock_trigger_workflow | Write | Trigger a notification workflow in Knock for one or more recipients. The workflow will execute its configured steps (email, Slack, in-app, etc.) for each recipient. |
integration__knock__knock_list_messages | knock.knock_list_messages | Read | List notification messages from Knock. Optionally filter by delivery status (e.g., sent, delivered, undelivered). |
integration__knock__knock_get_message | knock.knock_get_message | Read | Get details of a specific notification message in Knock, including its content, delivery status, and channel. |
integration__knock__knock_list_recipients | knock.knock_list_recipients | Read | List notification recipients from Knock. Returns recipient identifiers and their preferences. |
integration__knock__knock_get_current_user | knock.knock_get_current_user | Read | Get the currently authenticated Knock user. Useful for verifying API credentials and inspecting account details. |