Coding Standards MCP Server

by ggerve

Integrations

  • Provides access to Python coding style guidelines based on PEP 8 and best practices for project layout, dependency management, and testing.

  • Offers React best practices including component structure, hooks usage, component patterns, state management, performance optimization, and TypeScript integration.

编码标准 MCP 服务器

该 MCP 服务器提供用于访问各种技术(Java、Python、React)的编码风格指南和最佳实践的工具。

先决条件

  • Python 3.8 或更高版本
  • MCP 包( pip install mcp
  • UV 包管理器(推荐)

快速入门

  1. 在Claude中安装服务器:
mcp install server.py
  1. 以开发模式运行:
mcp dev server.py

MCP 检查器将在端口 3000 上启动。

可用工具

风格指南

访问特定于语言的编码样式指南:

  • Java:整洁代码实践、命名约定、代码组织
  • Python:基于 PEP 8 的指南,Pythonic 代码实践
  • React:组件结构、钩子使用、TypeScript 集成

最佳实践

访问特定语言的应用程序最佳实践:

  • Java:项目结构、架构、测试、安全性
  • Python:项目布局、依赖管理、测试实践
  • React:组件模式、状态管理、性能优化

API 参考

  1. java_style_guide :获取 Java 编码风格指南
    • 返回:Markdown 格式的样式指南
    • 示例: nortal_coding_standards_java_style_guide()
  2. java_best_practices :获取 Java 应用程序最佳实践
    • 返回:Markdown 格式的最佳实践
    • 示例: nortal_coding_standards_java_best_practices()
  3. python_style_guide :获取 Python 编码风格指南
    • 返回:Markdown 格式的样式指南
    • 例如: nortal_coding_standards_python_style_guide()
  4. python_best_practices :获取 Python 应用程序最佳实践
    • 返回:Markdown 格式的最佳实践
    • 示例: nortal_coding_standards_python_best_practices()
  5. react_best_practices :获取 React 应用程序最佳实践
    • 返回:Markdown 格式的最佳实践
    • 示例: nortal_coding_standards_react_best_practices()

配置

MCP 客户端配置

将其添加到您的 MCP 客户端配置文件(例如~/.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" ] } } }

/absolute/path/to/coding-standards-mcp/server.py替换为您的实际服务器路径。

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

提供用于访问各种技术(包括 Java、Python 和 React)的编码风格指南和最佳实践的工具。

  1. Prerequisites
    1. Quick Start
      1. Available Tools
        1. Style Guides
        2. Best Practices
      2. API Reference
        1. Configuration
          1. MCP Client Configuration

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          Provides tools for collecting and documenting code from directories.
          Last updated -
          4
          81
          12
          TypeScript
          MIT License
          • Apple
          • Linux
        • A
          security
          A
          license
          A
          quality
          Facilitates searching and accessing programming resources across platforms like Stack Overflow, MDN, GitHub, npm, and PyPI, aiding LLMs in finding code examples and documentation.
          Last updated -
          6
          25
          JavaScript
          AGPL 3.0
          • Apple
        • -
          security
          F
          license
          -
          quality
          A utility toolkit that enhances Claude's code interaction capabilities by providing seamless tools for Java code analysis, manipulation, and testing workflows.
          Last updated -
          2
          TypeScript
        • -
          security
          A
          license
          -
          quality
          A server that provides structured access to markdown documentation from NPM packages, Go Modules, or PyPi packages, enabling informed code generation by exposing these docs as resources or tools.
          Last updated -
          1
          TypeScript
          MIT License

        View all related MCP servers

        ID: jiob6e27n1