LLM integrations Backstage: a model of services
Backstage: a model of services
Backstage is an open-source framework for developer portals, made at Spotify: its software catalog keeps services, APIs and databases as entities with owners and relations, and its templates create new services from a skeleton.
My work
I implemented modules for Backstage, an integration with it that builds the models and modules of the topology of services, and MCP integrations with it.
How it is built
A generalised layout from Backstage’s documentation, version 1.57, not my installation. One service and one database stand for a whole topology.
While the catalog is down
unavailable
- The agent’s questions come back as tool errors: until the catalog is back, what it read before may already be stale.
- If a template publishes the repository and then cannot register it, the repository is there and the entity is not.
- The services themselves run on, unless they query the catalog at run time: it describes the topology, it does not carry its traffic. 1
Components
Press a component to read what it does.
Repositories catalog files
A repository can describe what it holds in a YAML file beside its code, catalog-info.yaml by convention: what it is, who owns it, what it depends on.
Catalog modules sources, checks
Backend modules that extend the catalog: entity providers feed it from other systems, processors read and check what comes in.
Software Catalog entities, links
Keeps every entity and the relations between them: the model of the services, their APIs and their databases.
Component a service
A piece of software, such as a service: it has an owner, and can belong to a system and depend on resources.
Resource a database
Infrastructure a component needs at runtime: a database, a topic, a bucket.
Software Template a new service
Creates a new component from a template: it asks for input variables and runs steps, such as publishing the repository and registering it in the catalog.
MCP actions chosen actions
A backend plugin that serves Backstage’s actions as MCP tools: its default server serves them all, a named server only those its configuration chooses.
Agent asks questions
An MCP client: an agent that asks who owns a service, or what depends on a database.
-
The catalog
Usually each repository describes itself in a YAML file, catalog-info.yaml by convention, and the catalog reads those files into entities; providers can bring more from other systems.
In detail
An entity file has apiVersion, kind, metadata and spec. The kinds of the system model are Component, API, Resource, System and Domain, with Group and User for the teams and people who own them. The files are found and read by the catalog’s providers and processors, and what they say becomes the entities and their relations. The New York Times moved off its old service catalog this way: a script turned each repository’s old metadata file into catalog-info.yaml and opened a pull request, which the team could fill in with owners, systems and documentation links before merging, and a GitHub provider then reads the merged files on a schedule. 1
3 22 23 Where it breaks The catalog is only as true as its sources: a service that no file and no provider describes is not in it, and an owner who has left stays until the source changes. In August 2023 Zalando reported more than 40,000 entities, among them applications, teams and users, synced daily with the services that are their source of truth, so a change in those services could wait until the next sync to show in the catalog.
-
The model
A service is a Component, a database it needs is a Resource, and here both belong to one System: the topology is the graph of their relations.
My part An integration with Backstage that builds models and modules for the topology of services.
In detail
A Resource is the infrastructure a component needs to operate at runtime, such as a database; a System is a collection of components and resources behind its public APIs, and a Domain groups systems. The relations come in pairs, ownedBy and ownerOf, dependsOn and dependencyOf, providesApi and apiProvidedBy, consumesApi and apiConsumedBy, partOf and hasPart, and they are derived from fields of the spec such as spec.owner, spec.system and spec.dependsOn. 1
2 20 21 Where it breaks In Backstage, dependsOn knows only what was recorded, by hand in a file or by a provider from another system: a dependency nobody recorded is missing from the graph. Backstage’s documentation itself says the catalog may not be the ideal solution for tracking dynamic relationships between components and services in real time. Observed dependencies are drawn elsewhere: engineers at Cvent wrote a plugin that syncs the catalog into Datadog, which shows the dependencies it detects in live traffic beside the declared relations.
-
Modules
Backstage’s backend is built from plugins and the modules that extend them. The catalog takes entities from providers and runs them through processors, which check and change them.
My part I implemented modules for Backstage.
In detail
A module works with its target plugin through the extension points that plugin registers. An entity provider sits at the edge of the catalog as an original source of entities: it can take them from another system instead of from files in repositories. A processor runs inside the catalog’s processing loop and enriches, checks and transforms what comes in. Two such providers: TeraSky’s Kubernetes ingestor creates catalog entities from Deployments, StatefulSets and other workloads of a cluster, reading owner, system and dependsOn from their annotations; BackToStage’s GCP module creates Resources from Cloud SQL and Memorystore Redis instances, taking the owner, the system and the component that depends on each from labels, and sets the owner to unknown when the owner label is absent. 4
10 18 19 Where it breaks A catalog module is trusted code inside the backend: a bug in it can break the processing of entities, or the start of the backend itself. A provider can also remove what it brought: in TeraSky’s ingestor, a cluster provider slow to register can make a cluster look absent, so a configurable grace period delays removing that cluster’s entities.
-
Templates
A Software Template creates a new component from a template: a person fills in its variables, one step publishes the repository, and another registers it in the catalog.
In detail
Templates are the tool for creating components inside Backstage. Each asks for input variables, which a person fills in, and runs a set of steps, which can publish the new repository, for example to GitHub or GitLab, and register it in the catalog: the scaffolder has built-in actions for both. A team can add scaffolder actions of its own. Backstage 1.54 added a refresh-catalog-entity action: after a template run, an agent can re-queue the new entity and read fresh data at once, without waiting for the next scheduled processing loop. 5
11 14 24 Where it breaks Publishing and registering are two writes, and they can fail apart: an agent that may run a template gets whatever its steps do, with their credentials. In the disclosed vulnerability CVE-2026-24046, anyone able to create and run templates could use symbolic links to read arbitrary files through the debug:log action, delete arbitrary files through fs:delete and write outside the workspace when an archive was extracted; patched versions of the affected packages fix it.
-
MCP
A backend plugin serves Backstage’s actions to agents as MCP tools; a named server in its configuration says which: here, only the catalog’s reads.
My part MCP integrations with Backstage.
In detail
The MCP actions backend serves actions from Backstage’s Actions Registry as MCP tools over Streamable HTTP. Its default server, at /api/mcp-actions/v1, serves every action the Actions Service lets through: the actions of the plugins its pluginSources allows, minus those its include and exclude filters or the permission policy leave out. Named servers, each at its own path such as /api/mcp-actions/v1/catalog, are subsets of the default one, chosen by include and exclude rules, and an exclusion wins. Backstage’s non-exhaustive list of seventeen well-known actions includes three that write: catalog.register-entity, catalog.unregister-entity and scaffolder.execute-template. Backstage 1.49 added an optional permission that controls access to an action, and Backstage 1.54 added audit events for MCP connections, tool discovery and tool calls. 6
7 8 9 12 13 14 25 Where it breaks A named server does not narrow the default one: an agent pointed at /api/mcp-actions/v1 gets every action the Actions Service lets through, the scaffolder’s too unless that service’s plugin sources, filters or permissions leave them out. Spotify Portal’s documentation warns that with third-party MCP servers, AI agents execute the servers’ actions without asking the user to confirm. The registry and its MCP integration came in Backstage 1.40 as highly experimental, and the registry is still imported from an alpha entry point.
-
Vendors’ limits
Spotify Portal’s six built-in MCP tools are read-only; Red Hat Developer Hub, from 1.8, can install tools that read the catalog and TechDocs; Roadie lets administrators turn off each of its MCP servers.
In detail
Spotify Portal ships six built-in MCP tools, among them search and get-catalog-entity, all read-only and open to every signed-in user; which plugins’ actions it exposes is set in its settings. From version 1.8, Red Hat Developer Hub can install two MCP tool plugins from its marketplace, for the catalog and for TechDocs; Red Hat writes that the tools should focus on read-only operations as a starting point, and that write and potentially destructive operations need further security consideration. Roadie’s documentation, published in August 2025, lists six MCP servers in beta; one of them finds, validates and executes templates, and an administrator can turn any of them off. 6
15 16 17 Where it breaks A read-only tool can still return sensitive data its credentials can reach. Backstage’s documentation calls a static token a temporary workaround and recommends OAuth with Client ID Metadata Documents; Red Hat’s example defines one static token with the subject mcp-clients, and every client that shares it is the same caller to the catalog. Roadie’s list also has a server that manages the backend’s configuration, secrets included.
-
A question to the catalog
Who owns this service, and which components depend on this database? The agent follows the relations: ownedBy to the owner, dependencyOf back from the database.
In detail
The relations are stored on both ends, so the question can be asked from either side: what a component depends on, or which components depend on a resource. The answer is the part of the graph that was declared. 2
Where it breaks The edges say who depends on whom, not the blast radius of an outage: whether a dependency is optional, or has a replica to fail over to, is not in the graph.
Sources
- Backstage: System Model
- Backstage: Well-known Relations between Catalog Entities
- Backstage: Descriptor Format of Catalog Entities
- Backstage: External integrations
- Backstage: Software Templates
- Backstage: MCP actions
- Backstage: Actions Registry
- Backstage v1.40.0 release notes
- Spotify Portal for Backstage: third-party MCP servers
- Backstage: Backend system, modules
- Backstage: Builtin actions
- Backstage: Well-known Actions
- Backstage v1.49.0 release notes
- Backstage v1.54.0 release notes
- Spotify Portal for Backstage: available MCP tools
- Red Hat Developer: MCP in Red Hat Developer Hub
- Roadie: MCP AI servers
- TeraSky: Kubernetes Ingestor for Backstage
- BackToStage: GCP module for the Backstage catalog
- Backstage: Creating the Catalog Graph
- Datadog: Sync your Backstage catalog with Datadog IDP
- Backstage blog: migrating The New York Times’ services to the catalog
- Zalando: Sunrise, a developer platform based on Backstage
- GitHub advisory: CVE-2026-24046 in the Scaffolder
- Backstage: Actions Service
Next story
MCP tools for diagnostics
The Model Context Protocol connects a model inside an application to servers that give it tools; code mode turns the same tools into an API that the model writes code against, run in a sandbox.