Cover image
Try Now
2025-02-25

用于编码标准的MCP服务器 - 提供标准化的编码指南和最佳实践

3 years

Works with Finder

1

Github Watches

0

Github Forks

3

Github Stars

Coding Standards MCP Server

This MCP server provides tools for accessing coding style guidelines and best practices for various technologies (Java, Python, React).

Prerequisites

  • Python 3.8 or higher
  • MCP package (pip install mcp)
  • UV package manager (recommended)

Quick Start

  1. Install the server in Claude:
mcp install server.py
  1. Run in development mode:
mcp dev server.py

The MCP inspector will start on port 3000.

Available Tools

Style Guides

Access language-specific coding style guidelines:

  • Java: Clean code practices, naming conventions, code organization
  • Python: PEP 8 based guidelines, Pythonic code practices
  • React: Component structure, hooks usage, TypeScript integration

Best Practices

Access language-specific application best practices:

  • Java: Project structure, architecture, testing, security
  • Python: Project layout, dependency management, testing practices
  • React: Component patterns, state management, performance optimization

API Reference

  1. java_style_guide: Get Java coding style guidelines

    • Returns: Markdown formatted style guide
    • Example: nortal_coding_standards_java_style_guide()
  2. java_best_practices: Get Java application best practices

    • Returns: Markdown formatted best practices
    • Example: nortal_coding_standards_java_best_practices()
  3. python_style_guide: Get Python coding style guidelines

    • Returns: Markdown formatted style guide
    • Example: nortal_coding_standards_python_style_guide()
  4. python_best_practices: Get Python application best practices

    • Returns: Markdown formatted best practices
    • Example: nortal_coding_standards_python_best_practices()
  5. react_best_practices: Get React application best practices

    • Returns: Markdown formatted best practices
    • Example: nortal_coding_standards_react_best_practices()

Configuration

MCP Client Configuration

Add this to your MCP client configuration file (e.g., ~/.codeium/windsurf/mcp_config.json):

{
  "mcpServers": {
    "nortal_coding_standards": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "/absolute/path/to/coding-standards-mcp/server.py"
      ]
    }
  }
}

Replace /absolute/path/to/coding-standards-mcp/server.py with your actual server path.

相关推荐

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

  • 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.

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

  • Khalid kalib
  • Write professional emails

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

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

  • Gil kaminski
  • Make sure you are post-ready before you post on social media

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • INFOLAB OPERATIONS 2
  • A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!

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

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

  • OffchainLabs
  • 进行以太坊的实施

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

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

  • zhaoyunxing92
  • MCP(消息连接器协议)服务

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

    Reviews

    5 (1)
    Avatar
    user_EJDYktb1
    2025-04-16

    As a dedicated user of coding-standards-mcp by ggerve, I can confidently say it has significantly improved my coding practices. This tool provides comprehensive guidelines and examples that are easy to follow, ensuring consistent code quality across projects. Highly recommend for any developer looking to enhance their coding standards!