fuck-u-code-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
屎山代码质量分析工具 (Fuck-U-Code-MCP)
一个基于MCP协议的屎山代码质量分析服务,旨在让你的AI写出高质量的代码。
功能特性
多语言支持: Go、JS/TS、Python、Java、C/C++
屎山指数: 0~100 分,越高越烂
七维度检测: 复杂度 / 函数长度 / 注释率 / 错误处理 / 命名 / 重复度 / 结构
彩色终端报告: 批评也能笑着听
Markdown 输出: 方便 AI 分析与文档集成
灵活配置: 摘要 / 详细模式,多语言报告
Related MCP server: qpTwin
安装依赖
使用pip安装
pip install -r requirements.txt使用uv安装(推荐)
# 安装uv(如果尚未安装)
pip install uv
# 使用uv安装依赖
uv pip install -r requirements.txt启动服务
python fuck-u-code-mcp.py在Cursor中配置MCP
在Cursor中使用此工具,需要在设置中配置MCP服务器:
{
"mcpServers": {
"fuck-u-code-mcp": {
"command": "python",
"args": [
"fuck-u-code-mcp.py"
]
}
}
}或者使用uv运行:
{
"mcpServers": {
"fuck-u-code-mcp": {
"command": "uv",
"args": [
"run",
"python",
"/项目路径/fuck-u-code-mcp.py"
]
}
}
}使用方法
通过MCP客户端调用 fuck_u_code_mcp 工具,必须传入要分析的文件或目录路径,以及以下选项:
参数说明
path(必需): 要分析的文件或目录路径options(可选): 分析选项
常规选项
选项 | 简写 | 描述 |
--verbose | -v | 显示详细报告 |
--top N | -t | 最烂的前 N 个文件 |
--issues N | -i | 每文件显示 N 个问题 |
--summary | -s | 只看总结,不看过程 |
--markdown | -m | 输出 Markdown 格式报告 |
--lang | -l | 报告语言 (zh-CN/en-US) |
--exclude | -e | 排除指定目录或文件 |
--skipindex | -x | 跳过 index.js/ts 文件 |
使用示例
# 通过MCP客户端调用(必须提供path参数)
result = client.call_tool("fuck_u_code_mcp", {
"path": ".", # 分析当前目录
"options": {
"verbose": True
}
})
result = client.call_tool("fuck_u_code_mcp", {
"path": "/path/to/your/project", # 分析指定目录
"options": {
"top": 3
}
})
result = client.call_tool("fuck_u_code_mcp", {
"path": "/path/to/your/file.py", # 分析指定文件
"options": {
"lang": "en-US"
}
})
result = client.call_tool("fuck_u_code_mcp", {
"path": ".", # 分析当前目录
"options": {
"summary": True
}
})
result = client.call_tool("fuck_u_code_mcp", {
"path": "/path/to/your/project", # 分析指定目录
"options": {
"exclude": "**/test/**"
}
})
result = client.call_tool("fuck_u_code_mcp", {
"path": ".", # 分析当前目录
"options": {
"markdown": True
}
})高级用法-Markdown 输出
适合 AI 分析、文档集成、CI/CD、团队协作
# 生成Markdown报告(必须提供path参数)
result = client.call_tool("fuck_u_code_mcp", {
"path": "/path/to/your/project", # 分析指定目录
"options": {
"markdown": True
}
})
# 将结果保存到文件
with open("report.md", "w") as f:
f.write(result)Markdown 报告包含:
总体评分
指标表格
问题文件
改进建议
脚本说明
项目包含两个预编译的二进制脚本:
fuck-u-code-for-mac: macOS版本fuck-u-code-for-win: Windows版本
服务会根据运行环境自动选择合适的脚本执行。
项目参考
本项目基于 fuck-u-code 项目开发,感谢原作者的贡献。
fuck-u-code是一款专门揭露屎山代码的质量分析工具,用犀利又搞笑的方式告诉你:你的代码到底有多烂。
fuck-u-code 特性
多语言支持: Go、JS/TS、Python、Java、C/C++
屎山指数: 0~100 分,越高越烂
七维度检测: 复杂度 / 函数长度 / 注释率 / 错误处理 / 命名 / 重复度 / 结构
彩色终端报告: 批评也能笑着听
Markdown 输出: 方便 AI 分析与文档集成
灵活配置: 摘要 / 详细模式,多语言报告
原项目地址
本项目在原项目基础上进行了扩展,增加了MCP协议支持,使其能够在Cursor等支持MCP协议的IDE中直接使用。
许可证
本项目采用MIT许可证,详情请参见LICENSE文件。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Scores your code across 12 areas, with findings, fix prompts, and re-assessment in your AI agent
Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.
AI-powered codebase analysis — call graphs, security, dead code, complexity. 150+ tools.
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceAnalyzes repositories, explains architecture, calculates change impact, and enforces guardrails for AI Agents like Claude Code, Cursor, and Codex via MCP tools.-
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to analyze repository architecture, changed-file and diff impact, dependency and endpoint exposure, API contract compatibility, architecture boundaries, bounded capacity simulations, and security/quality evidence through MCP tools.3Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to review code-health deltas, preview proposed changes, score files or whole projects, and get explanations of code smells through MCP tools.MIT
- AlicenseAqualityBmaintenanceEnables AI coding tools to analyze projects and files for technical debt across multiple languages, calculate SQALE remediation metrics, scan dependencies, and generate prioritized recommendations through MCP tools and resources.1675 npmMIT