awslabs.finch-mcp-server

v0.2.2
awslabs.finch-mcp-server Checked 15 hours ago Published 14 days ago

A 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…

ParameterTypeDescription
context_path *stringAbsolute path to the build context directory
dockerfile_path *stringAbsolute path to the Dockerfile
build_contextsList of additional build contexts
cache_fromList of external cache sources
no_cacheWhether to disable cache
outputsOutput destination
platformsList of target platforms (e.g., ['linux/amd64', 'linux/arm64'])
progressType of progress output
pullWhether to always pull base images
quietWhether to suppress build output
tagsList of tags to apply to the image (e.g., ['myimage:latest', 'myimage:v1'])
targetTarget 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…

ParameterTypeDescription
image *stringThe 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…

ParameterTypeDescription
repository_name *stringThe name of the repository to check or create in ECR
regionAWS region for the ECR repository. If not provided, uses the default region from AWS configuration