Allows for the generation of .gitignore files to help manage untracked files in Git repositories.
Interfaces with the gitignore.io API to browse templates and generate standardized .gitignore files for various projects.
Connects to the Toptal-hosted gitignore.io API service to fetch and generate environment-specific .gitignore configurations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Gitignore MCP Toolcreate a .gitignore for python, visualstudiocode, and macos"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
A MCP server for generating
.gitignorefiles using gitignore.io API
π Features
Gitignore Generation: Generate
.gitignorefilesTemplate Listing: Browse all available gitignore templates
π οΈ Getting Started
Environment Variables
Variable | Default | Description |
|
| Base URL for gitignore.io API |
Local Development
Install dependencies:
(Optional) Set custom API endpoint:
Run the MCP server:
Docker
Build the Docker image:
Run the container:
Run with custom API endpoint:
Run MCP Server:
π― API Endpoints
List Templates
GET /gitignore/templates/
List all available gitignore templates.
Generate .gitignore
POST /gitignore/generate/
Generate .gitignore file based on templates.
Request Body:
π Documentation
Documentation is built using MkDocs and deployed to GitHub Pages.
To build the documentation locally: