This Docker image provides a complete fast-agent setup with integrated MCP servers for Bitbucket and JIRA/Confluence.
- Fast Agent: MCP-enabled agent framework for building effective agents
- Bitbucket MCP: Integration for creating and managing pull requests
- JIRA MCP: Integration for reading ticket contexts
- Python-based: Built on Python 3.13.7 with uv package manager
- Multi-platform: Supports both Python and Node.js for different MCP servers
- Clone this repository or create the files locally
- Set up environment variables:
# Create a .env file
cp .env.example .env
# Edit .env with your credentials (see below)- Run the container:
docker-compose up# Build the image
docker build -t fast-agent-mcp .
# Run with environment variables
docker run --rm \
-e GOOGLE_API_KEY=your_google_api_key \
-e BITBUCKET_TOKEN=your_token \
-e BITBUCKET_WORKSPACE=your_workspace \
-e JIRA_URL=https://your-domain.atlassian.net \
-e JIRA_USERNAME=your_email@example.com \
-e JIRA_TOKEN=your_api_token \
-p 8000:8000 \
fast-agent-mcpGOOGLE_API_KEY: Your Google Gemini API key (get from: https://aistudio.google.com/app/apikey)
BITBUCKET_TOKEN: Your Bitbucket tokenBITBUCKET_WORKSPACE: The Bitbucket workspace to work with
JIRA_URL: Your JIRA instance URL (e.g., https://your-domain.atlassian.net)JIRA_USERNAME: Your JIRA email addressJIRA_TOKEN: Your JIRA API token
CONFLUENCE_URL: Your Confluence instance URLCONFLUENCE_USERNAME: Your Confluence email addressCONFLUENCE_TOKEN: Your Confluence API token
You can customize the fast-agent configuration by mounting your own config file:
docker run --rm \
# ... environment variables ...
-v $(pwd)/my-config.yaml:/app/fastagent.config.yaml:ro \
fast-agent-mcp- Create pull requests
- List repositories and branches
- Get pull request details
- Add comments and reviewers
- Manage pull request states
- Search issues by JQL
- Get issue details and comments
- Update issue status
- Create new issues
- Transition issues through workflows
Once the container is running, you can interact with the agent through various modes:
docker-compose exec fast-agent fast-agent godocker compose run --rm fast-agent go --servers=bitbucket,git,filesystemdocker-compose exec fast-agent fast-agent go --message "Create a pull request for my changes"docker-compose exec fast-agent fast-agent setup
# This creates example agents in the containerTo build this image yourself:
git clone <this-repo>
cd <this-repo>
# Build main Docker image
docker build -t fast-agent-mcp .- Repository: https://github.com/evalstate/fast-agent
- Python-based agent framework with MCP support
- Repository: https://github.com/MatanYemini/bitbucket-mcp
- Node.js-based MCP server for Bitbucket Cloud and Server
- Repository: https://github.com/sooperset/mcp-atlassian
- Python-based MCP server for JIRA and Confluence
To modify the setup:
- Edit
fastagent.config.yamlfor MCP server configuration - Edit
Dockerfilefor build customizations - Edit
docker-compose.ymlfor runtime configuration
-
Missing environment variables: Ensure all required environment variables are set for the MCP servers you want to use.
-
Network access: The container needs outbound internet access for API calls to Bitbucket, JIRA, and LLM providers.
-
Permission denied: Make sure the entrypoint script and MCP executables have proper execute permissions.
View container logs:
docker-compose logs fast-agentYou can test individual MCP servers by modifying the configuration to disable others temporarily.
This project integrates multiple components with their respective licenses:
- fast-agent: Apache-2.0
- bitbucket-mcp: MIT
- mcp-atlassian: MIT