Scaffolder MCP Plugin#
The Scaffolder MCP plugin for Backstage provides comprehensive integration with Model Context Protocol (MCP), enabling AI agents and automation tools to discover, inspect, and execute software templates programmatically.
Plugin Components#
Backend Plugin (@terasky/backstage-plugin-scaffolder-mcp-backend)#
The backend plugin provides MCP actions for: - Listing and inspecting available software templates - Retrieving template parameter schemas - Executing templates with provided parameters - Discovering scaffolder actions and their details - Discovering template extensions (filters and functions) - Task status monitoring and completion tracking - Integration with Backstage's scaffolder framework
Learn more about the backend plugin
Documentation Structure#
- Backend Plugin
MCP Actions Integration#
The Scaffolder MCP plugin provides MCP (Model Context Protocol) actions for programmatic interaction with Backstage software templates. This enables AI agents and automation tools to:
- Discover Templates: List all available software templates in the catalog
- Inspect Templates: Get parameter schemas and requirements
- Execute Templates: Run templates with provided parameters
- Monitor Execution: Track task status and retrieve outputs
Available MCP Actions#
The plugin provides 7 comprehensive MCP actions grouped into three categories:
Template Management#
list_software_templates: Discover all available templates in the Backstage catalog- Input: None
-
Output: List of templates with metadata (name, title, description, tags, entity reference)
-
get_software_template_parameter_schema: Retrieve the input schema for a specific template - Input: Template name or entity reference
-
Output: JSON Schema describing required and optional input fields
-
run_software_template: Execute a template with provided parameters - Input: Template reference and parameters object
- Output: Task ID, status, and execution outputs
Scaffolder Actions Discovery#
list_software_template_actions: List all available scaffolder actions- Input: Optional filter string
-
Output: List of action IDs and descriptions
-
get_software_template_action_details: Get details for a specific scaffolder action - Input: Action ID
- Output: Action schema, description, and examples
Template Extensions Discovery#
list_software_template_extensions: List all available template extensions (filters and functions)- Input: Optional filter string
-
Output: List of extensions with name, type, and description
-
get_software_template_extension_details: Get details for a specific template extension - Input: Extension name
- Output: Extension type, schema, description, and examples
Integration Requirements#
To enable these MCP actions:
- Install and configure the Scaffolder MCP backend plugin
- Ensure the MCP server is configured in your Backstage instance
- Configure authentication and authorization policies
- Verify scaffolder integration is working
Usage Workflows#
Template Execution Workflow#
- Call
list_software_templatesto discover available templates - Select a template and call
get_software_template_parameter_schemato understand its requirements - Prepare the parameters based on the schema
- Call
run_software_templateto execute the template - Monitor the task completion and retrieve outputs
Template Development Workflow#
- Call
list_software_template_actionsto see available scaffolder actions - Use
get_software_template_action_detailsto understand specific actions - Call
list_software_template_extensionsto discover available filters and functions - Use
get_software_template_extension_detailsto understand how to use specific extensions - Build your template using the discovered actions and extensions
Getting Started#
To get started with the Scaffolder MCP plugin:
- Install and configure the backend plugin
- Configure MCP server integration
- Set up authentication and authorization
- Start using MCP actions with AI agents or automation tools
For detailed installation and configuration instructions, refer to the backend documentation linked above.