mcpField
L
lint

lint

Local
github.com/rog0xDeveloper Tools0Updated 32w ago

About lint

lint is an MCP server that provides code style and analysis tools for AI agents. Its regex- and text-parsing approach checks conventions and common code issues without AST libraries.

Key features

  1. 01Check indentation, line length, and formatting
  2. 02Detect naming conventions and suggest fixes
  3. 03Measure complexity and nesting
  4. 04Find potential dead code and annotations
  5. 05Review imports and ordering

Use cases

  1. 01Check source files for style issues
  2. 02Standardize identifier naming
  3. 03Identify complex functions for review
  4. 04Find unused variables and unreachable code
  5. 05Detect duplicate or unordered imports

MCP support

It exposes code style and analysis tools to MCP clients, including Claude Desktop.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"rog0x-lint": {
"command": "npx",
"args": [
"-y",
"@rog0x/mcp-lint-tools"
]
}
}
}
Run commandnpx -y @rog0x/mcp-lint-tools

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@rog0x/mcp-lint-tools1.0.2

Tools

5

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
codestringYesThe source code to check
rulesobjectNoStyle rules to enforce (all enabled by default)
rules.quotesenumNoExpected quote style for stringssingle | double
rules.indentSizenumberNoNumber of spaces per indent level (when using spaces)
rules.semicolonsenumNoSemicolon usage preferencealways | never
rules.indentationenumNoExpected indentation styletabs | spaces
rules.finalNewlinebooleanNoRequire final newline
rules.maxLineLengthnumberNoMaximum allowed line length
rules.trailingWhitespacebooleanNoDisallow trailing whitespace

Details

From the project README

@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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.