Cover image
代码 - 分析仪 - 服务器
Public

代码 - 分析仪 - 服务器

Try Now
2025-03-10

MCP服务器用于分析错误,错误和功能问题的代码

3 years

Works with Finder

1

Github Watches

1

Github Forks

0

Github Stars

Code Analyzer MCP Server

This MCP server provides tools to analyze code for bugs, errors, and functionality issues in both front-end and back-end code, with options to fix them.

Features

  • Analyze JavaScript/TypeScript code using ESLint
  • Analyze HTML code using HTMLHint
  • Analyze CSS code using Stylelint
  • Analyze Python code using Pyright
  • Automatically fix issues when possible
  • Get suggestions for fixing identified issues

Available Tools

1. analyze_code

Analyzes code for bugs, errors, and functionality issues.

Parameters:

  • path (required): Path to the file or directory to analyze
  • language (optional): Language of the code (auto-detected if not provided)
    • Options: 'javascript', 'typescript', 'html', 'css', 'python', 'auto'
  • fix (optional): Whether to automatically fix issues when possible (default: false)

Example:

use_mcp_tool({
  server_name: "code-analyzer-server",
  tool_name: "analyze_code",
  arguments: {
    path: "/path/to/your/file.js",
    language: "javascript",
    fix: true
  }
});

2. fix_issues

Fixes identified issues in code.

Parameters:

  • path (required): Path to the file to fix
  • issueIds (required): Array of issue IDs to fix (from analyze_code results)

Example:

use_mcp_tool({
  server_name: "code-analyzer-server",
  tool_name: "fix_issues",
  arguments: {
    path: "/path/to/your/file.js",
    issueIds: ["js-/path/to/your/file.js-0", "js-/path/to/your/file.js-1"]
  }
});

3. get_fix_suggestions

Gets suggestions for fixing identified issues.

Parameters:

  • path (required): Path to the file with issues
  • issueId (required): ID of the issue to get suggestions for

Example:

use_mcp_tool({
  server_name: "code-analyzer-server",
  tool_name: "get_fix_suggestions",
  arguments: {
    path: "/path/to/your/file.js",
    issueId: "js-/path/to/your/file.js-0"
  }
});

Usage Examples

Analyzing JavaScript Code

use_mcp_tool({
  server_name: "code-analyzer-server",
  tool_name: "analyze_code",
  arguments: {
    path: "/path/to/your/file.js"
  }
});

Analyzing and Automatically Fixing JavaScript Code

use_mcp_tool({
  server_name: "code-analyzer-server",
  tool_name: "analyze_code",
  arguments: {
    path: "/path/to/your/file.js",
    fix: true
  }
});

Analyzing HTML Code

use_mcp_tool({
  server_name: "code-analyzer-server",
  tool_name: "analyze_code",
  arguments: {
    path: "/path/to/your/file.html",
    language: "html"
  }
});

Analyzing CSS Code

use_mcp_tool({
  server_name: "code-analyzer-server",
  tool_name: "analyze_code",
  arguments: {
    path: "/path/to/your/file.css",
    language: "css"
  }
});

Analyzing Python Code

use_mcp_tool({
  server_name: "code-analyzer-server",
  tool_name: "analyze_code",
  arguments: {
    path: "/path/to/your/file.py",
    language: "python"
  }
});

Installation

The server has been installed and configured in your MCP settings. To use it, simply restart your VSCode or Claude application to load the new MCP server.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

    Reviews

    3 (1)
    Avatar
    user_H1NJAWpF
    2025-04-17

    I've been using code-analyzer-server by vigourpt and it has significantly streamlined my code reviewing process. The server's performance is impressive and it integrates seamlessly with my development workflow. Highly recommend checking it out at https://github.com/vigourpt/code-analyzer-server for anyone in need of a reliable code analysis tool!