|
| 1 | +--- |
| 2 | +apiVersion: scaffolder.backstage.io/v1beta3 |
| 3 | +kind: Template |
| 4 | +metadata: |
| 5 | + name: github_mcp |
| 6 | + title: GitHub MCP Server |
| 7 | + description: >- |
| 8 | + GitHub MCP server - Access GitHub repositories, issues, and pull requests. |
| 9 | + namespace: default |
| 10 | + tags: |
| 11 | + - aap-operations |
| 12 | + - intermediate |
| 13 | + - mcp |
| 14 | +spec: |
| 15 | + type: service |
| 16 | + parameters: |
| 17 | + - title: Prompts |
| 18 | + description: >- |
| 19 | + GitHub MCP server - Access GitHub repositories, issues, and pull requests. |
| 20 | + required: |
| 21 | + - token |
| 22 | + - inventory |
| 23 | + - credentials |
| 24 | + properties: |
| 25 | + token: |
| 26 | + title: Token |
| 27 | + type: string |
| 28 | + description: Oauth2 token |
| 29 | + ui:field: AAPTokenField |
| 30 | + ui:widget: password |
| 31 | + ui:backstage: |
| 32 | + review: |
| 33 | + show: false |
| 34 | + inventory: |
| 35 | + title: Inventory |
| 36 | + description: Please enter the inventory you want to use the services on |
| 37 | + resource: inventories |
| 38 | + ui:field: AAPResourcePicker |
| 39 | + credentials: |
| 40 | + title: Credentials |
| 41 | + description: >- |
| 42 | + Select credentials for accessing the nodes this job will be ran |
| 43 | + against. You can only select one credential of each type. For |
| 44 | + machine credentials (SSH), checking "Prompt on launch" without |
| 45 | + selecting credentials will require you to select a machine |
| 46 | + credential at run time. If you select credentials and check "Prompt |
| 47 | + on launch", the selected credential(s) become the defaults that can |
| 48 | + be updated at run time. |
| 49 | + type: array |
| 50 | + ui:field: AAPResourcePicker |
| 51 | + resource: credentials |
| 52 | + - title: Survey |
| 53 | + description: >- |
| 54 | + GitHub MCP server - Access GitHub repositories, issues, and pull requests. |
| 55 | + properties: |
| 56 | + github_mcp_repo: |
| 57 | + title: GitHub Repository URL |
| 58 | + type: string |
| 59 | + description: URL of the GitHub repository for installing from |
| 60 | + ui:options: |
| 61 | + rows: 5 |
| 62 | + github_mcp_branch: |
| 63 | + title: GitHub Repository Branch |
| 64 | + type: string |
| 65 | + description: Branch of the GitHub repository for installing from |
| 66 | + ui:options: |
| 67 | + rows: 5 |
| 68 | + steps: |
| 69 | + - id: launch-job |
| 70 | + name: Launch Network Operations / Create Full Network Backup |
| 71 | + action: rhaap:launch-job-template |
| 72 | + input: |
| 73 | + token: ${{ parameters.token }} |
| 74 | + values: |
| 75 | + templateID: null |
| 76 | + inventory: ${{ parameters.inventory }} |
| 77 | + credentials: ${{ parameters.credentials }} |
| 78 | + extraVariables: |
| 79 | + github_mcp_repo: ${{ parameters.github_mcp_repo }} |
| 80 | + github_mcp_branch: ${{ parameters.github_mcp_branch }} |
| 81 | + output: |
| 82 | + text: |
| 83 | + - title: Create execution environment template executed successfully |
| 84 | + content: | |
| 85 | + **Job ID:** ${{ steps['launch-job'].output.data.id }} |
| 86 | + **Job STATUS:** ${{ steps['launch-job'].output.data.status }} |
| 87 | + links: |
| 88 | + - title: View in RH AAP |
| 89 | + url: ${{ steps['launch-job'].output.data.url }} |
0 commit comments