SkybuDocs

Agenter · Referanse

MCP-verktøy

57 verktøy på https://platform.skybu.no/api/mcp, gruppert etter tillatelsen brukeren gir agenten.

Verktøyene lages fra REST-API-et: hvert verktøy er et endepunkt, med samme kontroller, samme feilkoder og samme aktivitetslogg som når du bruker CLI-en. Agenten ser bare verktøyene tillatelsene den fikk gir (se Agenter og MCP). Beskrivelsene er på engelsk, slik agentene ser dem.

Alle verktøyene tar også organisationId, for å jobbe i en annen av brukerens organisasjoner enn den tilkoblingen ble godkjent for. Det står ikke i tabellene under.

Ferdigheter 2

Trenger ingen tillatelse. Samme innhold som MCP-ressursene skill://…, for klienter som ikke viser ressurser til modellen.

skills_listleser

List the skills: step-by-step guides for deploying apps, databases and migrations, files, domains, variables, previews and more on Skybu. Read the one that fits with skills_read before you start such a task. The same guides are MCP resources (resources/list).

Ingen argumenter.

skills_readleser

Read one skill's Markdown by its skill:// URI, as skills_list gives it.

ArgumentTypeBeskrivelse
uripåkrevdstringThe skill's URI, for example skill://apps/deploy-an-app

Se prosjekter 26

Tillatelsen projects:read: Apper, publiseringer, byggelogger, applogger, domener, navn på miljøvariabler og aktivitetsloggen.

get_appleser

An app with its latest deployments

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id

get_app_accessleser

Whether an app is public, needs sign-in with the organisation's accounts in front of it, or signs people in itself (with its client id, issuer and redirect URIs)

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id

get_app_egressleser

Which public addresses an app may reach, and what it tried to reach but was refused

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id

get_app_logsleser

The last 300 lines from the running app

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id

get_deploymentleser

Status and build log of one deployment (the log is live while building)

ArgumentTypeBeskrivelse
deploymentIdpåkrevdstringThe deployment's id

get_file_storageleser

The project's S3 bucket: name, endpoints, status, and use against the organisation's file quota

ArgumentTypeBeskrivelse
projectIdpåkrevdstringThe project's id

get_github_statusleser

Whether GitHub is set up, and the GitHub App installations connected to the caller's organisation

Ingen argumenter.

get_gitlab_statusleser

The GitLab connections of the caller's organisation, with the default GitLab address and the scope a token needs

Ingen argumenter.

list_app_domainsleser

Custom domains of one app

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id

list_app_guestsleser

People outside the organisation invited to sign in to this app as guests, with their end date

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id

list_app_registerleser

Every app and preview in the organisation with owner, department, data class, address, status, last deploy and last request

ArgumentTypeBeskrivelse
owneranyThe owner's email
dataClassanynone, internal, personal or sensitive
departmentanyA department's name, or none

list_audit_eventsleser

Audit log of the caller's organisation, including staff actions

Ingen argumenter.

list_database_fieldsleser

The database's tables and columns with the personal-data tag each has: name, contact, national_id (fødselsnummer), free_text, or none (not personal data). A column without a tag is treated as sensitive: query_database hides its values. Tags are set by people in the dashboard.

ArgumentTypeBeskrivelse
databaseIdpåkrevdstringThe database's id

list_departmentsleser

The organisation's departments, which apps belong to, with how many apps each has

Ingen argumenter.

list_domainsleser

Custom domains of every app in the caller's organisation

Ingen argumenter.

list_env_rolloutsleser

How the latest change to the app's variables rolled out, per environment: deploying, live, or failed with the error and the last lines from the app. A failed change was undone: the previous values are back.

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id

list_env_varsleser

The app's environment variables per environment (production, preview): names and when they changed, never the values

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id
environment"production" | "preview" | "both"

list_github_reposleser

Repositories the organisation's GitHub installations can access

Ingen argumenter.

list_gitlab_reposleser

GitLab projects the organisation's connections can link: those where the token's user has at least the Maintainer role

Ingen argumenter.

list_groupsleser

The organisation's groups from its identity provider (SCIM), with how many members each has, for limiting who may sign in to an app

Ingen argumenter.

list_previewsleser

The app's pull request previews with their address and latest deployment

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id

list_projectsleser

Projects with their apps, databases, file storage and storage use

Ingen argumenter.

list_restore_pointsleser

The database's named restore points, newest first, with the period it can be restored to (window) and the base backups in it (backups). state is pending until the changes up to it are archived (a few minutes), ready while the backups reach it, expired once they no longer do, and unavailable while the database is being restored or is not ready. A change of state is sent on the realtime channel as a change to restore_point.

ArgumentTypeBeskrivelse
databaseIdpåkrevdstringThe database's id

whoamileser

The signed-in user, the organisation in use (x-skybu-org, or the first one joined) and the organisations they can use here: every one they belong to, or only the one a connected app was approved for. limits names the projects and environments this key or connection is limited to (null: none)

Ingen argumenter.

Endre prosjekter 18

Tillatelsen projects:write: Lage prosjekter og databaser, legge til domener, sette miljøvariabler, koble repoer og bytte nøkler.

add_domainendrer

Add a custom domain. Prove you control it with a TXT record at _skybu-challenge.<domain>, then verify within 7 days, or it is removed and the hostname freed. At most 5 per app. A hostname held by a suspended domain is released to the new claimant.

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id
hostnamepåkrevdstring

create_app_from_gitendrer

Create an app from a GitHub repository or GitLab project and deploy the newest commit on its branch. Later pushes deploy too.

ArgumentTypeBeskrivelse
projectIdpåkrevdstringThe project's id
repopåkrevdstringowner/repo on GitHub, or the project's full path on GitLab (group/subgroup/project)
provider"github" | "gitlab"Where the repository is. Leave it out to find it among both; required when both have one with this name.
branchstringPushes to this branch deploy to production
rootDirstringBuild from this folder of the repository
ownerstringThe app's owner, when it has none yet
departmentstringThe app's department, when it has none yet
dataClass"none" | "internal" | "personal" | "sensitive"Required when the app has no data class yet
namepåkrevdstringThe app's name in the project
kind"server" | "static"server (the default) runs the built image; static serves the files in staticDir from Skybu's shared web server
staticDirstringFor a static app: the absolute folder inside the built image that holds the site
staticFallback"404" | "index"For a static app: 404 (the default) or index for single-page apps

create_databaseendrer

Create a Postgres database (CloudNativePG) in a project

ArgumentTypeBeskrivelse
projectIdpåkrevdstringThe project's id
namepåkrevdstring
supabaseobjectSet up the database for an import from Supabase: roles anon, authenticated and service_role, and app roles that bypass row-level security the way Supabase's service_role key does

create_projectendrer

Create a project

ArgumentTypeBeskrivelse
namepåkrevdstring

create_restore_pointendrer

Mark this moment with a name, for example before a migration, so the database can be restored to it later. Keeps up to 100 per database. Logged.

ArgumentTypeBeskrivelse
databaseIdpåkrevdstringThe database's id
namepåkrevdstring

invite_app_guestendrer

Invite someone outside the organisation to sign in to this app as a guest, until an optional end date (owners). They get an email; inviting again sends a new link.

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id
emailpåkrevdstringThe guest's email address; they sign in to Skybu with it
untilobjectThe last day the guest may sign in (an ISO date or time); leave out for no end

remove_app_guestendrer

Remove a guest from this app (owners). Their sign-ins to the app are revoked.

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id
guestIdpåkrevdstringThe guest's id

remove_domainsletter

Remove a custom domain; it stops serving the app and its certificate is deleted

ArgumentTypeBeskrivelse
domainIdpåkrevdstringThe domain's id

rotate_database_passwordsendrer

New passwords for all three roles; the old ones stop working

ArgumentTypeBeskrivelse
databaseIdpåkrevdstringThe database's id

rotate_file_storage_keyendrer

A new access key for the project's bucket; the old one stops working and apps restart with the new one

ArgumentTypeBeskrivelse
projectIdpåkrevdstringThe project's id

set_app_accessendrer

Make an app public, require sign-in in front of it, let it sign people in itself (app), or follow the organisation's default (owners). For app, also its callback paths and refresh tokens

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id
access"inherit" | "public" | "members" | "app"public: anyone with the address; members: Skybu asks for sign-in with the organisation's accounts in front of the app; app: the app signs people in itself with OpenID Connect (Sign in with your organisation), with SKYBU_OIDC_* variables; inherit follows the organisation
signInCallbacksstring[]For access app: the paths on the app's addresses Skybu may send people back to after sign-in (1 to 5; the first is SKYBU_OIDC_REDIRECT_URI). Default /auth/callback
offlineAccessbooleanFor access app: give refresh tokens (scope offline_access), each good for 12 hours after sign-in. Off by default
signInGroupsstring[]For members and app: only members in these groups (ids from GET /api/org/groups), or listed in signInPeople, may sign in. Empty or null: every member
signInPeoplestring[]For members and app: members (user ids) who may sign in besides the groups. Empty or null with no groups: every member

set_app_hostingendrer

Choose how an app is hosted: as a server (the built image runs as a container) or as a static site (the files in staticDir are served by Skybu, no container). Applies from the next deploy. Previews follow their app.

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id
kind"server" | "static"server runs the built image as a container; static serves the files in staticDir from Skybu's shared web server (no container, no project memory)
staticDirstringFor a static app: the absolute folder inside the built image that holds the site, with index.html at its top
staticFallback"404" | "index"For a static app: 404 answers unknown paths with the site's 404.html; index answers unknown paths without a file extension with /index.html (single-page apps)

set_env_varsendrer

Set one or more variables (encrypted by OpenBao Transit) for production (the default), preview or both. The app restarts with the change; no new build. Follow it with list_env_rollouts: if the app does not start with the new values, the change is marked failed, the previous values come back and the running version keeps serving.

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id
variablespåkrevdobject
environment"production" | "preview" | "both"Previews get only preview values
sensitivebooleanWrite-only: the app and its builds get the value, but no one can reveal it again; it can only be replaced

unset_env_varsletter

Remove a variable from production (the default), preview or both. The app restarts with the change; no new build. Follow it with list_env_rollouts: if the app does not start with the new values, the change is marked failed, the previous values come back and the running version keeps serving.

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id
namepåkrevdstring
environment"production" | "preview" | "both"

update_app_detailsendrer

Change an app's owner, department or data class (unset counts as sensitive). Previews follow their app.

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id
ownerstringThe owner's email; must be a member of the organisation
departmentstringOne of the organisation's departments, or null for none
dataClass"none" | "internal" | "personal" | "sensitive"What data the app handles: none (no personal data), internal, personal or sensitive. Unset counts as sensitive.

verify_domainendrer

Check the TXT record. On success the domain gets a certificate and starts serving the app. Skybu re-checks verified domains daily: the TXT record or a CNAME to the app's address must stay, or after 3 days of failed checks the domain is suspended. Verifying a suspended domain that passes brings it back.

ArgumentTypeBeskrivelse
domainIdpåkrevdstringThe domain's id

Publisere apper 7

Tillatelsen deployments:write: Publisere nye versjoner av apper fra filer eller Git, rulle tilbake, og koble til forhåndsvisningenes databaser.

create_uploadendrer

Get a one-time address to PUT the app folder to as a .tar.gz (Content-Type: application/gzip, at most 50 MB, within an hour), then deploy it with deploy_upload. For apps too large to send as files.

ArgumentTypeBeskrivelse
projectIdpåkrevdstringThe project's id
namepåkrevdstring

deploy_filesendrer

Deploy an app from its files, sent in the request. Creates the app on first deploy; returns the deployment to follow with get_deployment, which gives the address once it is live. For apps over a few MB, use create_upload instead.

ArgumentTypeBeskrivelse
projectIdpåkrevdstringThe project's id
namepåkrevdstring
kind"server" | "static"server runs the built image as a container; static serves the files in staticDir from Skybu's shared web server (no container, no project memory)
staticDirstringFor a static app: the absolute folder inside the built image that holds the site, with index.html at its top
staticFallback"404" | "index"For a static app: 404 answers unknown paths with the site's 404.html; index answers unknown paths without a file extension with /index.html (single-page apps)
dataClass"none" | "internal" | "personal" | "sensitive"Required for a new app: what data it handles. Ask the user; never guess personal data away.
departmentstringRequired for a new app when the organisation has departments (list_departments)
ownerstringThe owner's email; the signed-in user by default
filespåkrevdobject[]Every file of the app: source, package.json or requirements.txt, and a Dockerfile if it has one. Skybu detects how to build it (Railpack) or uses the Dockerfile.

deploy_latest_commitendrer

Deploy the newest commit on the linked branch now, without waiting for a push

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id

deploy_uploadendrer

Deploy what was uploaded with create_upload. Creates the app on first deploy.

ArgumentTypeBeskrivelse
uploadIdpåkrevdstringThe upload's id
kind"server" | "static"server runs the built image as a container; static serves the files in staticDir from Skybu's shared web server (no container, no project memory)
staticDirstringFor a static app: the absolute folder inside the built image that holds the site, with index.html at its top
staticFallback"404" | "index"For a static app: 404 answers unknown paths with the site's 404.html; index answers unknown paths without a file extension with /index.html (single-page apps)
dataClass"none" | "internal" | "personal" | "sensitive"Required for a new app: what data it handles. Ask the user; never guess personal data away.
departmentstringRequired for a new app when the organisation has departments (list_departments)
ownerstringThe owner's email; the signed-in user by default

get_preview_database_credentialsleser

Connection strings for a preview's own database. Every read is logged.

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id
numberpåkrevdnumber

reset_preview_databasesletter

Replace a preview's database with a new empty one; the preview restarts against it

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id
numberpåkrevdnumber

rollback_appendrer

Serve an earlier successful deployment again. When the organisation requires approval for the app, this asks the owners instead.

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id
deploymentIdpåkrevdstring

Lese hemmeligheter 3

Tillatelsen secrets:read: Databasepassord, S3-nøkler og verdiene i miljøvariablene. Hver lesing logges.

get_database_credentialsleser

Connection strings for the three roles. Every read is logged. Returns secrets; every call is written to the organisation's audit log.

ArgumentTypeBeskrivelse
databaseIdpåkrevdstringThe database's id

get_file_storage_credentialsleser

The project's S3 access key and the SKYBU_S3_* variables apps get. Every read is logged. Returns secrets; every call is written to the organisation's audit log.

ArgumentTypeBeskrivelse
projectIdpåkrevdstringThe project's id

reveal_env_varsendrer

The values of one environment (production by default), decrypted. Write-only variables are never returned; their names are listed under sensitive. Every reveal is logged. Returns secrets; every call is written to the organisation's audit log.

ArgumentTypeBeskrivelse
appIdpåkrevdstringThe app's id
namesstring[]Only these names; all when left out
environment"production" | "preview"

Lese data, maskert 1

Tillatelsen data:read: Spørringer som bare leser. Navn, fødselsnumre og e-post erstattes med koder, og felt uten merke skjules. Hver spørring logges.

query_databaseendrer

Run a read-only SELECT against the database and get at most 200 rows with personal data replaced by codes, so an AI tool can look at real data without seeing who it is about. Columns tagged name, national_id or contact become PERSON_n, FNR_n, EPOST_n or TLF_n (the same value gets the same code within one answer). Columns tagged free_text or none are shown, with email addresses, fødselsnumre (recognised by their check digits) and, in free text, phone numbers replaced. A column without a tag is hidden as SKJULT; a computed column shows numbers and hides text. Runs as the read-only role, in a read-only transaction, for at most 5s. Masking is an extra layer, not a guarantee: a name in free text can slip through. Logged. Returns rows from the database with personal data replaced by codes; every call is written to the organisation's audit log.

ArgumentTypeBeskrivelse
databaseIdpåkrevdstringThe database's id
sqlpåkrevdstring