Balena MCP by usefulapi
Read applications, devices, health and releases; rename devices and set notes in Balena.
¿Debería usar esto?
Calidad y seguridad
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"balena": {
"url": "https://balena.usefulapi.io/mcp"
}
}
}Puntos de conexión remotos
https://balena.usefulapi.io/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (10)
🟢balena_get_current_user
Return the Balena user that the configured API key belongs to. Use it to confirm which account the tools act for. Balena API: GET /user/v1/whoami.
Esquema de entrada
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢balena_list_applications(organization, limit, skip)
List the applications (fleets) the key can access, optionally only those in one organization (by handle). Each row has id, app_name, slug and the device type. Returns { d: [...] }. Balena API: GET /v7/application.
Esquema de entrada
{
"type": "object",
"properties": {
"organization": {
"description": "Organization handle to filter by, for example acme.",
"type": "string"
},
"limit": {
"description": "Maximum rows to return (OData $top).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 500
},
"skip": {
"description": "Rows to skip, for paging (OData $skip).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢balena_get_application(application)
Get one application by numeric id or by slug (org/app), with the devices it owns (expanded). Balena API: GET /v7/application(<id>) or GET /v7/application?$filter=slug eq '<slug>'.
Esquema de entrada
{
"type": "object",
"properties": {
"application": {
"type": "string",
"minLength": 1,
"description": "Application id (number) or slug in org/app form, for example acme/my-app."
}
},
"required": [
"application"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢balena_list_devices(application, online, limit, skip)
List devices, optionally only those in one application and/or only online or offline devices. Returns id, uuid, device_name, is_online, overall_status, status, last_connectivity_event and version fields. Balena API: GET /v7/device.
Esquema de entrada
{
"type": "object",
"properties": {
"application": {
"description": "Application id or slug to list devices for.",
"type": "string",
"minLength": 1
},
"online": {
"description": "true = only online devices, false = only offline devices.",
"type": "boolean"
},
"limit": {
"description": "Maximum rows to return (OData $top).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 500
},
"skip": {
"description": "Rows to skip, for paging (OData $skip).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢balena_get_device(uuid, id)
Get one device by uuid or numeric id, with its application expanded. Balena API: GET /v7/device(uuid='<uuid>')?$expand=belongs_to__application or GET /v7/device(<id>).
Esquema de entrada
{
"type": "object",
"properties": {
"uuid": {
"type": "string",
"pattern": "^[A-Za-z0-9]+$",
"description": "Device uuid."
},
"id": {
"description": "Numeric device id, if no uuid is given.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢balena_get_device_health(uuid, id)
Get one device's online state, overall_status, last connectivity event, CPU, memory and storage figures. Balena API: GET /v7/device(uuid='<uuid>')?$select=....
Esquema de entrada
{
"type": "object",
"properties": {
"uuid": {
"type": "string",
"pattern": "^[A-Za-z0-9]+$",
"description": "Device uuid."
},
"id": {
"description": "Numeric device id, if no uuid is given.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢balena_list_releases(application, commit, limit, skip)
List the releases (builds) of one application, optionally only the release with one commit hash. Returns id, commit, raw_version, status and is_invalidated. Balena API: GET /v7/release.
Esquema de entrada
{
"type": "object",
"properties": {
"application": {
"type": "string",
"minLength": 1,
"description": "Application id (number) or slug in org/app form, for example acme/my-app."
},
"commit": {
"description": "Only the release with this commit hash.",
"type": "string",
"pattern": "^[0-9a-f]{7,40}$"
},
"limit": {
"description": "Maximum rows to return (OData $top).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 500
},
"skip": {
"description": "Rows to skip, for paging (OData $skip).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"application"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢balena_get_release(release_id)
Get one release by its numeric id. Balena API: GET /v7/release(<id>).
Esquema de entrada
{
"type": "object",
"properties": {
"release_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Release id (from balena_list_releases)."
}
},
"required": [
"release_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡balena_rename_device(uuid, device_name)
Set the display name of one device. It changes only the name; it does not touch the running software. Balena API: PATCH /v7/device(uuid='<uuid>') with { device_name }.
Esquema de entrada
{
"type": "object",
"properties": {
"uuid": {
"type": "string",
"pattern": "^[A-Za-z0-9]+$",
"description": "Device uuid."
},
"device_name": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "The new device name."
}
},
"required": [
"uuid",
"device_name"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡balena_add_device_note(uuid, note)
Replace the free-text note on one device, for example an owner or a location reminder. It does not touch the running software. Balena API: PATCH /v7/device(uuid='<uuid>') with { note }.
Esquema de entrada
{
"type": "object",
"properties": {
"uuid": {
"type": "string",
"pattern": "^[A-Za-z0-9]+$",
"description": "Device uuid."
},
"note": {
"type": "string",
"maxLength": 5000,
"description": "The new note text (replaces the old note)."
}
},
"required": [
"uuid",
"note"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Comunidad
Evidencia