Install Bitrise MCP Server in AWS Kiro
PrerequisitesClick to copy link
- AWS Kiro IDE installed
AuthenticationClick to copy link
Kiro currently uses environment-variable-based authentication for MCP servers, so the standard Power installation uses a Bitrise Personal Access Token (PAT). Create a Bitrise API Token under Account Settings → Security.
If you're running a Kiro build that supports MCP OAuth and prefer to use it, see the OAuth-based Kiro configuration section below.
Installation via Kiro PowerClick to copy link
AWS Kiro supports installing the Bitrise MCP server as a Power, which provides automatic activation based on context and keywords.
StepsClick to copy link
-
Open the Powers Panel
- In Kiro IDE, open the Powers panel from the sidebar
-
Add Power from GitHub
- Click on "Add power from GitHub"
-
Enter the Repository URL
https://github.com/bitrise-io/bitrise-mcp/tree/main/kiro-powers/bitrise-ci -
Set Up Authentication
- Before starting Kiro, set the
BITRISE_TOKENenvironment variable in your shell profile (.zshrcor.bashrc):export BITRISE_TOKEN="your-actual-token-here" - Restart your terminal or run
source ~/.zshrc(orsource ~/.bashrc) - Start Kiro - it will read the environment variable on startup
- When Kiro starts, a popup may ask if you trust the environment variable - accept it to allow access
- Before starting Kiro, set the
-
Verify Installation
- The Bitrise Power should now appear in your Powers list
- It will automatically activate when you mention keywords like "bitrise", "build", "ci", "cd", "mobile", "ios", "android", etc.
UsageClick to copy link
Once installed, the Bitrise Power will automatically activate when relevant. You can:
- Manage Bitrise apps
- Trigger and monitor builds
- Handle build artifacts
- Manage workspaces and teams
- Configure pipelines
- Set up release management
The power provides access to all 63 Bitrise tools. For a complete list of available tools and their parameters, refer to the tools documentation.
OAuth-based Configuration (experimental)Click to copy link
For Kiro builds that support MCP OAuth, you can drop the BITRISE_TOKEN requirement entirely. Edit ~/.kiro/settings/mcp.json (user level) or .kiro/settings/mcp.json (workspace level) and remove the headers block:
{
"mcpServers": {
"bitrise": {
"type": "http",
"url": "https://mcp.bitrise.io"
}
}
}
On first tool use, Kiro will open your browser for the Bitrise sign-in flow.
Advanced ConfigurationClick to copy link
You can limit the tools exposed by configuring API groups. This is useful for optimizing token usage or focusing on specific functionality.
Available API groups:
apps- App managementbuilds- Build operationsartifacts- Artifact managementworkspaces- Workspace managementpipelines- Pipeline operationsoutgoing-webhooks- Webhook configurationcache-items- Cache managementrelease-management- Release and distributiongroup-roles- Role managementaccount- User account operationsread-only- Read-only operations
By default, all groups are enabled. To customize, modify the Power configuration after installation.
TroubleshootingClick to copy link
Environment Variable Not WorkingClick to copy link
Kiro IDE can only read environment variables that are set in your shell profile (.zshrc or .bashrc) before Kiro starts. Unlike VS Code, Kiro does not prompt you to enter the token value - it expects the environment variable to already be available.
Option 1: Set in Shell Profile (Recommended)
- Add the export to your shell profile:
# Add to ~/.zshrc or ~/.bashrcexport BITRISE_TOKEN="your-actual-token-here"
- Restart your terminal or source the profile:
source ~/.zshrc - Restart Kiro - this is required for Kiro to pick up the new environment variable
- When prompted, accept the popup asking if you trust the environment variable
Option 2: Manual Configuration If the environment variable approach doesn't work, you can hardcode the token:
- Open
~/.kiro/settings/mcp.json(user level) or.kiro/settings/mcp.json(workspace level) - Find the Bitrise server entry
- Replace
${BITRISE_TOKEN}with your actual token value - Save the file and restart Kiro
Option 3: Use OAuth If your Kiro build supports MCP OAuth, see the OAuth-based Configuration section above.
Note on Environment Variable Syntax The syntax for environment variables differs between Kiro CLI and IDE:
- Kiro CLI: Use
${env:BITRISE_TOKEN}(withenv:prefix) - Kiro IDE: Use
${BITRISE_TOKEN}(without prefix)
This inconsistency is a known issue. The Power is configured with ${BITRISE_TOKEN} which works for the IDE.
Power Not ActivatingClick to copy link
- Ensure you've entered the correct repository URL with
/tree/main/powerpath - Check that your
BITRISE_TOKENis valid - Try mentioning explicit keywords like "bitrise" in your conversation
Authentication IssuesClick to copy link
- Verify your Personal Access Token is still valid
- Check token permissions in your Bitrise account settings
- Regenerate the token if necessary
Connection ProblemsClick to copy link
- The power connects to
https://mcp.bitrise.io - Ensure you have internet connectivity
- Check if there are any firewall restrictions