by safedep
Pinner MCP is a Model Context Protocol (MCP) server designed to enhance supply chain security by pinning third-party dependencies like GitHub Actions and Docker base images to their immutable versions.
Pinner MCP is a Model Context Protocol (MCP) server that helps to pin third-party dependencies, specifically GitHub Actions and Docker base images, to their immutable SHA hashes or digests. This process prevents supply chain attacks by ensuring that the exact, verified versions of these dependencies are always used.
Pinner MCP can be run as a container. Users can integrate it with tools like Cursor by adding specific configurations to their .cursor/mcp.json
file. Once configured, users can leverage Composer prompts to pin GitHub Actions to commit hashes or container base images to digests. To update pinned versions, specific prompts can also be used.
latest
tag on GitHub Container Registry. You need to manually pull the latest Docker image to update your local container: docker pull ghcr.io/safedep/pinner-mcp:latest
..cursor/mcp.json
file and using Composer prompts for pinning and updating dependencies.A Model Context Protocol (MCP) server that can help pin 3rd party dependencies to immutable digests. Supported dependency types include:
Run as a container with stdio
transport.
docker run -it --rm ghcr.io/safedep/pinner-mcp:latest
Add the following to your .cursor/mcp.json
file. You must enable
the MCP server in the settings. Learn more here.
{
"mcpServers": {
"pinner-mcp-stdio-server": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"ghcr.io/safedep/pinner-mcp:latest"
]
}
}
}
Use a Composer prompt like the following to pin a specific commit hash.
Pin GitHub Actions to their commit hash
Pin container base images to digests
To update pinned versions, you can use a prompt like the following.
Update pinned versions of container base images
Updates for the MCP server are automatically pushed to the latest
tag on
GitHub Container Registry. You
must manually update your local container image to the latest version.
docker pull ghcr.io/safedep/pinner-mcp:latest
Reviews feature coming soon
Stay tuned for community discussions and feedback