Usa koigrid desde ChatGPT, Claude o cualquier cliente MCP
koigrid tiene un servidor MCP remoto. Conéctalo una vez y tu asistente podrá desplegar apps, crear bases de datos, leer logs y consultar tu gasto, actuando como tú y sólo con los permisos que apruebes.
URL del servidor
Añade esta URL como conector personalizado (servidor MCP remoto) en tu asistente:
https://koigrid.com/mcp
Conectar
La primera vez, tu asistente abre una ventana de koigrid: entras (o creas una cuenta) y apruebas qué puede hacer y en qué organización. No hay que copiar ninguna clave. Tu asistente recibe un token de corta duración que se renueva solo.
Pruébalo
Una vez conectado, pídeselo a tu asistente con tus palabras. Por ejemplo:
“¿Qué tengo funcionando en koigrid?”
list_resources: tus apps con su estado y URL, tus bases de datos y tus cachés.
“Despliega https://github.com/yo/mi-app como una app nueva llamada mi-app y avísame cuando esté en marcha.”
deploy_app, y luego get_app_status hasta que el despliegue esté en marcha o falle.
“Mi último despliegue ha fallado. ¿Por qué?”
get_app_status para ver el error, y después get_app_logs con el log de build.
“Crea una base de datos Postgres llamada mi-db y conéctala a mi-app.”
create_database, get_database_connection y set_env_vars con una referencia: la contraseña nunca pasa por el chat.
“¿Cuánto he gastado este mes? Ponle un tope de 20 $ y avísame al 80 %.”
get_spend y después set_spend_limit (tu asistente te pide confirmación).
O usa una clave de API
Los clientes que admiten una cabecera fija (Claude Code, Cursor y otros) pueden enviar un token de API de koigrid en vez de iniciar sesión:
claude mcp add --transport http koigrid https://koigrid.com/mcp --header "Authorization: Bearer koi_YOUR_KEY"
Qué puede hacer
Un conjunto pequeño de herramientas con forma de tarea, cada una con su propio permiso. Las de sólo lectura van marcadas para que tu asistente pueda usarlas sin preguntar.
list_resourcessólo lecturaapps:read · databases:read · redis:readLists the apps (with status and public URL), databases and caches in the user's koigrid organization. Databases and caches carry pendingMaintenance when something is scheduled (for example host_reboot: the reboot of the machine of a single-node database or cache, with its date and deferrableUntil). Start here to find the id of an app or database before acting on it. Each kind is listed only if the token can read it (apps:read, databases:read, redis:read): a token for databases alone sees its databases.
deploy_appapps:write · apps:deployDeploys an app to koigrid. Pass appId to redeploy an existing app; or pass name plus a public Git repo URL (built automatically, Dockerfile or auto-detected) or a container image to create and deploy a new one. Pass env to deploy with its environment variables in the same deploy. Returns at once with the deployment id: the build runs in the background, so poll get_app_status until it is live or failed.
get_app_statussólo lecturaapps:readShows an app's status, public URL, its latest deployments with their state and error, and how many times the running process died and was restarted in the last 24 h with the cause (restarts). Use it to follow a deploy, and when something fails read the error here first.
get_app_logssólo lecturaapps:readReturns an app's logs: type "build" for the last deployment's build log (why a deploy failed), or "runtime" for what the running app prints (why it errors in production), from ALL its replicas and across restarts and deploys (since/until/replica/runner/q to narrow it down), or "requests" for the requests the edge served per minute split by path, section, user-agent, IP, visitor or status (what hit the app and from where, 30 days).
set_env_varspide confirmaciónapps:writeSets environment variables on an app and redeploys it. Values are stored encrypted. To wire a koigrid database without pasting its password, use a reference such as ${{db.<database-name>.DATABASE_URL}}.
rollback_apppide confirmaciónapps:deployPuts a previous deployment of an app live again, without rebuilding. Pass the deploymentId from get_app_status; without it, rolls back to the previous live deployment.
create_databasedatabases:writeCreates a managed Postgres database with the default size (the free one: 512 MB RAM, 1 GB disk, no replicas; resize it later through the API). Provisioning takes a few minutes: call get_database_connection afterwards to get the connection string once it is ready.
get_database_connectionsólo lecturadatabases:readReturns the connection details of a database (host, port, user, database) and the reference to wire it into an app with set_env_vars. The password is never returned: the reference is resolved by koigrid at deploy time. Also reports the disaster-recovery copy (a replica in another provider that is never promoted automatically): null if the database has none. With includeExtensions:true it also reads, live, which Postgres extensions each database really has installed (name and version, also those created with CREATE EXTENSION).
set_network_accesspide confirmacióndatabases:write · redis:writeSets which IPs can connect to a database or a cache, like a security group: allowedIps null = public (any IP; password and TLS still required), a list of IPv4/CIDR = only those, [] = only from koigrid. The koigrid fleet (apps hosted here) is always allowed. Applied immediately; the result says if it was applied everywhere and warns when the IP of this request is not in the list. Existing connections are not cut.
set_database_parameterspide confirmacióndatabases:read · databases:writeReads and sets database parameters, like an RDS parameter group: idleInTransactionTimeoutMs (cuts a session left idle inside an open transaction; without it one frozen client can fill the connection pool), statementTimeoutMs and lockTimeoutMs, in milliseconds; 0 = no limit; null = remove; and planCacheMode. Call with only databaseId to read the current values and the pooler. Use this instead of connection options: through the pooler, timeouts sent when connecting do not reach Postgres. Applied at once, also to connections already in the pool. roleOverrides lists a role that sets its own value in this database (it wins). poolSize sets how many server connections the pooler opens (null = automatic; the ceiling is in pooler.limits.maxPoolSize) and poolRoles gives an app role its own share, so one app cannot leave another without connections; queryWaitTimeoutS is how long a client waits for a pooler connection before an error (null = the default 120 s); applied live, without dropping connections.
manage_database_maintenancepide confirmacióndatabases:writeApplies now or defers a maintenance that is waiting for the database's maintenance window, like "Apply now" in RDS. What is pending is in pendingMaintenance of list_resources. op "apply" runs it now: resize, replication_verify_ca, minor_upgrade, host_move (moves the database to another machine before its machine reboots, same address) or dcs_tls (it restarts or moves members, with a short cut on a single-node database), or ca_rotation (applied live, no restart), or pooler_image (recreates the connection pooler on an updated image: a few seconds without connections). op "defer" only for host_reboot (the machine is shared and cannot be rebooted early) and host_move: until is an ISO 8601 date, at most 14 days after the notice; without until it goes to that limit. Errors: not_pending (nothing to do), defer_only (host_reboot cannot be applied), cannot_defer_urgent (it fixes an exploited kernel flaw), beyond_deadline and before_scheduled (the date does not fit).
get_migration_statussólo lecturadatabases:readFor a database receiving a live migration (logical replication from an external Postgres): each subscription with its initial-copy progress (tables done of total), replication lag and a cutover verdict saying whether the app can be switched to koigrid yet, plus the remaining cutover steps. Never call the cutover done from lag alone: a subscription still copying tables can show zero lag. After the cutover (cutoverDone) it says which disabled subscriptions still hold a slot on the source that keeps growing its disk, and how to drop them.
get_database_queriessólo lecturadatabases:readShows which SQL statements took the most execution time on a database in a time window (default: the last hour; hours up to 168, or since/until), with calls, total and mean time and their share of the database total, from pg_stat_statements sampled every ~2 min. Use it when a database or an app is slow, before guessing at indexes. Statement texts are normalized ($1, $2): no parameter values.
get_spendsólo lecturausage:read · spend:read · billing:readShows what the organization has reserved and spent this month, its spend limit if any, whether it has a card on file, its prepaid balance (wallet: balance, koigrid credit, automatic top-up, grace period) and the public price list (koigrid charges for reserved RAM and disk by the hour, shared vCPU and bandwidth included). To price something before creating it, POST /api/v1/pricing/quote needs no credentials.
set_spend_limitpide confirmaciónspend:writeSets a monthly spend limit for the organization, with optional alert thresholds and a hard stop that blocks creating new paid resources when it is reached.
create_vmsandboxes:writeCreates a full Linux VM for an agent (sizes small 2 vCPU/4 GB, medium 4/8, large 8/16, xlarge 16/32), running and reachable by run_in_vm, and by SSH with the sshPublicKeys you give it (the result has the ssh command and the ~/.ssh/config block for VS Code / Cursor). It pauses on its own after autoPauseMin idle minutes (default 15, 0 = never) keeping its memory, and a paused VM pays no compute. Billed per second while running: medium $0.02/h (launch price; GET /pricing → agentVms for every size). Needs a card on file (add_payment_method). With fromSnapshot it is born from a named snapshot (a template) or a share code from another organization (koisnap_…): its disk, memory and size.
run_in_vmpide confirmaciónsandboxes:writeRuns a shell command in a VM (by id or name) and returns exit code, stdout and stderr (timeoutSec up to 600). If the VM is paused it is resumed first, with its memory and processes intact (resumed: true in the result); if it is still booting, the call waits up to 60 s. With detached: true it runs in the background with no time limit and returns a commandId at once (read it with manage_vm command_status).
manage_vmpide confirmaciónsandboxes:read · sandboxes:writeLifecycle of a VM (by id or name). action: pause (keeps memory, stops compute billing), resume, stop (keeps only the disk), start (cold boot from disk), fork (new VM that is an exact copy, needs name), snapshot (named, with memory, needs name; it outlives the VM and create_vm fromSnapshot boots new VMs from it), delete (removes the VM and its disk: cannot be undone; its named snapshots stay), or status. Omit vm to list the VMs of the project; snapshots lists the named snapshots, snapshot_files / snapshot_read (snapshot, path) look inside one without booting it, delete_snapshot (snapshot) deletes one, and share_snapshot / snapshot_shares / revoke_share give, list and revoke a code another organization uses as create_vm fromSnapshot. Background commands: command_status (with commandId: its state and output from stdoutOffset/stderrOffset, up to 256 KB; without it: the list) and command_stop (SIGTERM to its process group, SIGKILL after 5 s). set_ssh_keys (sshPublicKeys) replaces the keys allowed to SSH in; the VM's ssh field has the command and the ~/.ssh/config block for VS Code / Cursor, and connecting wakes a paused VM. history lists the commands run in the VM (90 days, never their output) and processes what runs now. Ports over HTTPS: ports lists them, expose_port (port, public?) exposes one (private by default), set_port_public, unexpose_port, and port_url / port_urls / revoke_port_url give, list and revoke a signed URL https://<port>-<token>.<domain> for one port.
add_payment_methodbilling:writeReturns a link for the user to pay koigrid. With amountUsd (10-10000) it is a top-up of the prepaid balance: the user pays that amount on the provider page, gets an invoice, and the card is saved for automatic top-ups. Without amountUsd it only saves a card and charges nothing. The organization pays for the RAM and disk it reserves by the hour, shared vCPU and bandwidth included (prices: GET /api/v1/pricing). Use it when the free tier is not enough, the account is on the free-tier waitlist or the balance is low. Nothing is charged by this call: give the link to the user. billingMode chooses how reserved resources are paid: prepaid (default, each hour from the balance) or monthly (invoice to the saved card at the end of the month); pass it alone to only change the mode. Owner or admin only.
contact_supportsupport:writeSends a message to the koigrid team: opens a support conversation, or replies in one when you pass its conversationId. Use it when something in koigrid fails and the error does not say how to fix it, when you are blocked, or when the user asks to talk to koigrid. Say what you tried and paste the exact error; pass appId or deploymentId if it is about one. A person answers; read the reply later with get_support_conversations.
get_support_conversationssólo lecturasupport:readLists the user's support conversations with koigrid and how many have an unread reply from the team; pass a conversationId to read all its messages. Use it to see whether koigrid has answered.
mark_support_readsupport:writeMarks a support conversation as read, after you have read the koigrid team's reply with get_support_conversations and told the user. It stops the unread-reply notice that koigrid adds to other tool results.
Modo código: toda la API con dos herramientas
Conecta a https://koigrid.com/mcp?mode=code y tu asistente tendrá dos herramientas para toda la API (todas las operaciones, unos 700 tokens): search_api ejecuta una función JavaScript sobre la especificación de la API, y execute_api ejecuta una que llama a koigrid.request({ method, path, query, body }), encadenando y paginando en una sola ejecución. El código corre en un sandbox sin red, sin ficheros y sin variables de entorno; las llamadas llevan los permisos, el proyecto y el tope de gasto de esta conexión, y la credencial nunca entra en el sandbox. Usa el mismo recurso OAuth que https://koigrid.com/mcp; al conectar, pide acceso a toda la API y no sólo a las herramientas de arriba.
claude mcp add --transport http koigrid-code "https://koigrid.com/mcp?mode=code" --header "Authorization: Bearer koi_YOUR_KEY"
Seguridad
Cada conexión aparece en Ajustes → API tokens como app conectada. Revocarla la desconecta al instante, incluido su token de refresco. Cada acción queda en tu registro de auditoría, y una conexión acotada a un proyecto no puede tocar recursos de otro. Los secretos nunca pasan por el chat: el asistente recibe el host y el usuario de tu base, pero no su contraseña, y la conecta a una app con una referencia que koigrid resuelve al desplegar.
Soporte
Dudas o problemas con el conector: [email protected] · Política de privacidad · Términos