π¦
io.github.rog0x/lint
Style check, naming, complexity analysis for AI agents
0 installs
Trust: 37 β Low
Devtools
Ask AI about io.github.rog0x/lint
Powered by Claude Β· Grounded in docs
I know everything about io.github.rog0x/lint. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
@rog0x/mcp-lint-tools
Code linting and style checking tools for AI agents, exposed as an MCP (Model Context Protocol) server.
All analysis is performed via regex and text parsing β no AST libraries required.
Tools
check_code_style
Check code style issues with configurable rules:
- Indentation β tabs vs spaces, configurable indent size
- Line length β flag lines exceeding a maximum length
- Trailing whitespace β detect trailing spaces/tabs
- Final newline β require a newline at end of file
- Quotes β enforce single or double quote consistency
- Semicolons β enforce always or never semicolon usage
check_naming_conventions
Analyze identifier naming conventions:
- Detect camelCase, PascalCase, snake_case, UPPER_CASE
- Language-aware rules for TypeScript, JavaScript, Python, Go
- Flag mixed conventions within the same identifier kind
- Suggest fixes with automatic name conversion
analyze_complexity
Measure code complexity metrics:
- Cyclomatic complexity per function
- Lines per function count
- Nesting depth measurement
- Configurable thresholds for flagging
find_dead_code
Detect potential dead code:
- Unused variables β declared but never referenced
- Unreachable code β statements after return/throw/break
- Empty catch blocks β silently swallowed errors
- Commented-out code β blocks of commented code
- TODO/FIXME/HACK β annotation comments
analyze_imports
Analyze import statements:
- Unused imports β imported names not referenced in code
- Import ordering β enforce group ordering (builtin > external > internal > relative)
- Duplicate imports β same module imported multiple times
- Circular dependency hints β basic detection of potential cycles
Installation
npm install
npm run build
Usage with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"lint-tools": {
"command": "node",
"args": ["path/to/mcp-lint-tools/dist/index.js"]
}
}
}
Development
npm install
npm run build
npm start
License
MIT
