neilberkman/editorconfig_mcp
Platform-specific configuration:
{
"mcpServers": {
"editorconfig_mcp": {
"command": "npx",
"args": [
"-y",
"editorconfig_mcp"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
A Model Context Protocol (MCP) compliant server that formats files using .editorconfig rules.
This project started from a specific workflow issue I kept running into. I found that while working with AI coding agents, they would often generate code with minor formatting errors, like trailing whitespace or inconsistent newlines. Our linters would then flag these issues, and the agent would spend valuable cycles fixing its own simple mistakes.
This EditorConfig MCP Server is the tool I built to solve that problem for myself. It acts as a proactive formatting gatekeeper, using your project's .editorconfig rules to ensure files are correct from the start. My hope is that it might be useful to others who've encountered a similar frustration in their AI-assisted development process.
npm install -g editorconfig-mcp-serverThen start the server:
editorconfig-mcp-servernpx editorconfig-mcp-servernpm install editorconfig-mcp-serverThen add to your project's scripts in package.json:
{
"scripts": {
"format-server": "editorconfig-mcp-server"
}
}git clone https://github.com/yourusername/editorconfig-mcp-server.git
cd editorconfig-mcp-server
npm install
npm start/v1/ prefixnpm iLoading reviews...