data
PlanetScale MCP Integration for OpenAI Agents SDK
Connect PlanetScale to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect PlanetScale 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.
PlanetScale MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-planetscale": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=planetscale",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=planetscale --write=deny Why Use KosmoKrator Here
Expose only PlanetScale 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.
PlanetScale Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the PlanetScale integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__planetscale__planetscale_list_databases | planetscale.planetscale_list_databases | Read | List databases in a PlanetScale organization. Returns a paginated list of databases with their names, regions, and states. |
integration__planetscale__planetscale_get_database | planetscale.planetscale_get_database | Read | Get details of a specific PlanetScale database, including its state, region, and branch count. |
integration__planetscale__planetscale_create_database | planetscale.planetscale_create_database | Write | Create a new database in a PlanetScale organization. Specify the database name and optionally a region and notes. |
integration__planetscale__planetscale_list_branches | planetscale.planetscale_list_branches | Read | List branches of a PlanetScale database. Returns a paginated list of branches with their names, roles, and states. |
integration__planetscale__planetscale_get_branch | planetscale.planetscale_get_branch | Read | Get details of a specific branch of a PlanetScale database, including its role, region, and readiness. |
integration__planetscale__planetscale_list_organizations | planetscale.planetscale_list_organizations | Read | List organizations the authenticated user belongs to. Useful for discovering organization names needed by other PlanetScale tools. |
integration__planetscale__planetscale_get_current_user | planetscale.planetscale_get_current_user | Read | Get the profile of the currently authenticated PlanetScale user. Useful for verifying API credentials and retrieving account information. |