awslabs.finch-mcp-server
v0.2.2A Model Context Protocol server for Finch to build and push container images
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
finch_build_container_image
Build a container image using Finch. This tool builds a Docker image using the specified Dockerfile and context directory. It supports a range of build options including tags, platforms, and more. If the Dockerfile contains references to ECR repositories, it verifies that ecr login cred helper is properly configured before proceeding with the build. Note: for ecr-login to work server needs access to AWS credentials/profile which are configured in the server mcp configuration file. Returns: Result: An object containing: - status (str): "success…
| Parameter | Type | Description |
|---|---|---|
context_path * | string | Absolute path to the build context directory |
dockerfile_path * | string | Absolute path to the Dockerfile |
build_contexts | List of additional build contexts | |
cache_from | List of external cache sources | |
no_cache | Whether to disable cache | |
outputs | Output destination | |
platforms | List of target platforms (e.g., ['linux/amd64', 'linux/arm64']) | |
progress | Type of progress output | |
pull | Whether to always pull base images | |
quiet | Whether to suppress build output | |
tags | List of tags to apply to the image (e.g., ['myimage:latest', 'myimage:v1']) | |
target | Target build stage to build |
finch_push_image
Push a container image to a repository using finch, replacing the tag with the image hash. If the image URL is an ECR repository, it verifies that ECR login cred helper is configured. This tool gets the image hash, creates a new tag using the hash, and pushes the image with the hash tag to the repository. If the image URL is an ECR repository, it verifies that ECR login is properly configured before proceeding with the push. The tool expects the image to be already built and available locally. It uses 'finch image inspect' to get the hash, 'finch image tag' to create…
| Parameter | Type | Description |
|---|---|---|
image * | string | The full image name to push, including the repository URL and tag |
finch_create_ecr_repo
Check if an ECR repository exists and create it if it doesn't. This tool checks if the specified ECR repository exists using boto3. If the repository doesn't exist, it creates a new one with the given name. The tool requires appropriate AWS credentials configured. When the server is in read-only mode (which is the default unless --enable-aws-resource-write is specified), this tool will return an error and will not create any repositories. Returns: Result: An object containing: - status (str): "success" if the operation succeeded, "error" otherwise…
| Parameter | Type | Description |
|---|---|---|
repository_name * | string | The name of the repository to check or create in ECR |
region | AWS region for the ECR repository. If not provided, uses the default region from AWS configuration |