documents
API Template IO MCP Integration for OpenAI Agents SDK
Connect API Template IO to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect API Template IO 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.
API Template IO MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-apitemplateio": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=apitemplateio",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=apitemplateio --write=deny Why Use KosmoKrator Here
Expose only API Template IO 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.
API Template IO Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the API Template IO integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__apitemplateio__apitemplateio_create_pdf | apitemplateio.apitemplateio_create_pdf | Write | Generate a PDF document from an API Template IO template. Provide a template ID and the data to merge into the template. |
integration__apitemplateio__apitemplateio_create_image | apitemplateio.apitemplateio_create_image | Write | Generate an image (PNG or JPEG) from an API Template IO template. Provide a template ID, data, and the desired output format. |
integration__apitemplateio__apitemplateio_list_templates | apitemplateio.apitemplateio_list_templates | Read | List available templates in API Template IO. Returns a paginated list of template IDs, names, and metadata. |
integration__apitemplateio__apitemplateio_get_template | apitemplateio.apitemplateio_get_template | Read | Get details for a specific API Template IO template by ID. Returns the template definition, schema, and configuration. |
integration__apitemplateio__apitemplateio_get_current_user | apitemplateio.apitemplateio_get_current_user | Read | Get the current authenticated user's account information from API Template IO, including usage and subscription details. |