此 MCP 服务器提供了访问各种技术(Java、Python、React)编码风格指南和最佳实践的工具。
pip install mcp)mcp install server.py
mcp dev server.py
MCP 检查器将在 3000 端口启动。
访问特定语言的编码风格指南:
访问特定语言的应用程序最佳实践:
java_style_guide:获取 Java 编码风格指南
nortal_coding_standards_java_style_guide()java_best_practices:获取 Java 应用程序最佳实践
nortal_coding_standards_java_best_practices()python_style_guide:获取 Python 编码风格指南
nortal_coding_standards_python_style_guide()python_best_practices:获取 Python 应用程序最佳实践
nortal_coding_standards_python_best_practices()react_best_practices:获取 React 应用程序最佳实践
nortal_coding_standards_react_best_practices()在您的 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 替换为您实际的服务器路径。
本项目根据 MIT 许可证发布 - 查看 LICENSE 文件以获取详细信息。 </中文翻译>