编码标准 MCP 服务器
该 MCP 服务器提供用于访问各种技术(Java、Python、React)的编码风格指南和最佳实践的工具。
先决条件
Python 3.8 或更高版本
MCP 包(
pip install mcp
)UV 包管理器(推荐)
快速入门
在Claude中安装服务器:
以开发模式运行:
MCP 检查器将在端口 3000 上启动。
可用工具
风格指南
访问特定于语言的编码样式指南:
Java:整洁代码实践、命名约定、代码组织
Python:基于 PEP 8 的指南,Pythonic 代码实践
React:组件结构、钩子使用、TypeScript 集成
最佳实践
访问特定语言的应用程序最佳实践:
Java:项目结构、架构、测试、安全性
Python:项目布局、依赖管理、测试实践
React:组件模式、状态管理、性能优化
API 参考
java_style_guide
:获取 Java 编码风格指南返回:Markdown 格式的样式指南
示例:
nortal_coding_standards_java_style_guide()
java_best_practices
:获取 Java 应用程序最佳实践返回:Markdown 格式的最佳实践
示例:
nortal_coding_standards_java_best_practices()
python_style_guide
:获取 Python 编码风格指南返回:Markdown 格式的样式指南
例如:
nortal_coding_standards_python_style_guide()
python_best_practices
:获取 Python 应用程序最佳实践返回:Markdown 格式的最佳实践
示例:
nortal_coding_standards_python_best_practices()
react_best_practices
:获取 React 应用程序最佳实践返回:Markdown 格式的最佳实践
示例:
nortal_coding_standards_react_best_practices()
配置
MCP 客户端配置
将其添加到您的 MCP 客户端配置文件(例如~/.codeium/windsurf/mcp_config.json
):
将/absolute/path/to/coding-standards-mcp/server.py
替换为您的实际服务器路径。
提供用于访问各种技术(包括 Java、Python 和 React)的编码风格指南和最佳实践的工具。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityProvides tools for collecting and documenting code from directories.Last updated -47315MIT License
- AsecurityAlicenseAqualityFacilitates 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 -639AGPL 3.0
- AsecurityAlicenseAqualityProvides up-to-date documentation for 9000+ libraries directly in your AI code editor, enabling accurate code suggestions and eliminating outdated information.Last updated -1329158MIT License
- -securityFlicense-qualityA server that automatically reviews code style and suggests improvements, with special focus on Flutter/Dart projects and general programming styles.Last updated -