{"id":24925,"library":"ast-lint-mcp","title":"AST Lint MCP Server","description":"AST Lint MCP Server (v0.1.0) is a Model Context Protocol server that exposes AST Lint's static code analysis capabilities to MCP clients like Claude Code. It provides 34 code quality rules covering security, maintainability, performance, accessibility, and Vue-specific issues. Runs locally with no remote server, supports persistent process (~50ms response), category/severity filtering, batch and git diff incremental analysis, and automatic AI integration. Differentiator: seamless integration with Claude Code via MCP, enabling natural language-driven code review. Requires Node.js >= 18.","status":"active","version":"0.1.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","mcp","ast","lint","code-review","static-analysis","typescript"],"install":[{"cmd":"npm install ast-lint-mcp","lang":"bash","label":"npm"},{"cmd":"yarn add ast-lint-mcp","lang":"bash","label":"yarn"},{"cmd":"pnpm add ast-lint-mcp","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is ESM-only as of v0.1.0. No default export is documented; primarily used as a CLI/MCP server.","wrong":"const astLintMcp = require('ast-lint-mcp')","symbol":"default","correct":"import astLintMcp from 'ast-lint-mcp'"},{"note":"Exact named export may differ; check package entry. MCP server creation function.","wrong":"import { createMCPServer } from 'ast-lint-mcp'","symbol":"createServer","correct":"import { createServer } from 'ast-lint-mcp'"},{"note":"Undocumented API; internal linter function. Not typically imported directly.","wrong":"","symbol":"runLint","correct":"import { runLint } from 'ast-lint-mcp'"}],"quickstart":{"code":"// MCP client configuration (e.g., in ~/.claude.json)\n// The server is started via npx; no programmatic import needed.\n{\n  \"mcpServers\": {\n    \"ast-lint\": {\n      \"type\": \"stdio\",\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"ast-lint-mcp\"]\n    }\n  }\n}\n// In Claude Code, ask naturally:\n// \"Check for security issues in src/\"\n// \"Analyze git diff for code quality problems\"","lang":"typescript","description":"MCP server configuration for Claude Code, enabling natural language-driven code analysis via AST Lint."},"warnings":[{"fix":"Upgrade Node.js to v18 or later.","message":"Requires Node.js >= 18. Older versions not supported.","severity":"breaking","affected_versions":">=0.1.0"},{"fix":"Use .astlintrc.json with version 0.6.0 schema.","message":"Configuration via .astlintrc is preferred; older formats (.astlintrc, astlint.config.json) may be deprecated","severity":"deprecated","affected_versions":">=0.1.0"},{"fix":"Use npx or global install as instructed; avoid importing directly.","message":"The default export is not documented; most users run the package via CLI/MCP, not as a library.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Stage changes first (git add) before running diff analysis.","message":"Git diff analysis may miss unstaged changes if files are not staged.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Run npx from project root or set cwd in MCP config.","message":"Configuration file search starts from current directory upwards; no cwd option available.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run with npx: npx -y ast-lint-mcp, or install globally: npm install -g ast-lint-mcp","cause":"Package not installed globally or npx not available.","error":"Command 'ast-lint-mcp' not found"},{"fix":"Install locally: npm install ast-lint-mcp, then import from 'ast-lint-mcp'","cause":"Incorrect import path or missing dependency.","error":"Cannot find module 'ast-lint-mcp'"},{"fix":"Create a .astlintrc.json file in the project root with a valid configuration (see README).","cause":"No .astlintrc.json present in project hierarchy.","error":"Error: AstLint config not found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}