Installing the SpectroCloud Backend Plugin#
This guide will help you install and set up the SpectroCloud backend plugin in your Backstage instance.
Prerequisites#
Before installing the backend plugin, ensure you have:
- A working Backstage instance
- Node.js and npm/yarn installed
- Access to your Backstage backend configuration
- SpectroCloud Palette API credentials
Installation Steps#
1. Add Required Packages#
Install the required packages using your package manager:
yarn --cwd packages/backend add @terasky/backstage-plugin-spectrocloud-backend @terasky/backstage-plugin-spectrocloud-common
2. Add to Backend#
Modify your backend entry point (typically packages/backend/src/index.ts):
// In your backend initialization
backend.add(import('@terasky/backstage-plugin-spectrocloud-backend'));
3. Configure SpectroCloud Connection#
Add the following to your app-config.yaml:
spectrocloud:
enablePermissions: false # Set to true to enable permission checks
environments:
- name: production
url: https://api.spectrocloud.com
tenant: my-tenant
apiToken: ${SPECTROCLOUD_API_TOKEN}
Verification#
After installation, verify that:
- The plugin appears in your package.json dependencies
- The backend starts without errors
- API endpoints are accessible
- SpectroCloud API connection works
Testing the Installation#
-
Check Backend Health
-
Test API Endpoint
-
Check Backend Logs Look for successful plugin initialization messages
Troubleshooting#
Common issues and solutions:
1. Backend Startup Issues#
2. API Connection Issues#
- Verify SpectroCloud API URL is correct
- Check API token is valid
- Ensure tenant name is correct
- Review network connectivity
3. Permission Framework Issues#
- Verify permission framework is enabled in Backstage
- Check permission policy configuration
- Review backend plugin configuration
4. Missing Common Package#
If you see errors about missing types:
Next Steps#
After successful installation:
- Configure permission policies (if using permissions)
- Set up MCP actions for AI agents
- Install the frontend plugin
- Install the ingestor plugin for catalog entities
Proceed to the Configuration Guide for detailed setup instructions.