Fastmcp Docker Checker
No description available
Ask AI about Fastmcp Docker Checker
Powered by Claude · Grounded in docs
I know everything about Fastmcp Docker Checker. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
FastMCP Docker Image Architecture Checker
This project provides a Model Context Protocol (MCP) server that extends Amazon Q with tools to check Docker image architecture support and perform simple arithmetic operations.
Features
- check_image: Checks if a Docker image supports specific architectures (amd64, arm64)
- add: Simple tool to add two numbers (demonstration of basic functionality)
Requirements
- Python 3.10+
- Amazon Q CLI
fastmcpPython packagerequestsPython package
Installation
-
Clone this repository:
git clone https://github.com/pareenaverma/fastmcp-docker-checker.git cd fastmcp-docker-checker -
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate -
Install the required packages:
pip install fastmcp requests -
Configure Amazon Q to use this MCP server by adding the following to
~/.aws/amazonq/mcp.json:{ "mcpServers": { "demoserver": { "command": "/path/to/your/venv/bin/python3", "args": ["/path/to/your/server.py"], "env": {}, "timeout": 60000 } } }
Usage
-
Start Amazon Q CLI:
q chat -
View available tools by typing:
/tools
This will display all available tools, including your custom MCP tools from the demoserver.
-
Use the tools in your conversation:
To check Docker image architecture support:
check_image nginxTo add two numbers:
add 5 3
How It Works
The server uses the FastMCP framework to create a Model Context Protocol server that Amazon Q can communicate with. When you make a request to check an image, the server:
- Parses the image name and tag
- Gets an authentication token from Docker Hub
- Fetches the manifest for the specified image
- Analyzes the manifest to determine supported architectures
- Returns a response indicating whether the image supports the target architectures (amd64, arm64)
Project Structure
server.py: The main MCP server implementationrequirements.txt: Python dependenciesmcp.json.example: Example configuration for Amazon Q
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
