Balena MCP by usefulapi
Read applications, devices, health and releases; rename devices and set notes in Balena.
Sollte ich dies verwenden
Qualität und Sicherheit
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"balena": {
"url": "https://balena.usefulapi.io/mcp"
}
}
}Remote-Endpunkte
https://balena.usefulapi.io/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (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.
Eingabe-Schema
{
"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.
Eingabe-Schema
{
"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>'.
Eingabe-Schema
{
"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.
Eingabe-Schema
{
"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>).
Eingabe-Schema
{
"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=....
Eingabe-Schema
{
"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.
Eingabe-Schema
{
"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>).
Eingabe-Schema
{
"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 }.
Eingabe-Schema
{
"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 }.
Eingabe-Schema
{
"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"
}Community
Nachweis