mcp-cs
⚡ MCP-CS (mcp-cs)
通用开发者运维、诊断与 AlgoJudge 竞技执行套件
一个功能完备的 Model Context Protocol (MCP) 服务器与可视化控制台,专为开发者、竞技程序员和工程团队打造。
安装指南 • 可视化控制台 • 客户端配置 • 工具目录 • Homebrew
🌟 为什么选择 mcp-cs?
mcp-cs 将你的 AI 助手(Antigravity、Cursor、Claude Desktop、Windsurf、Cline)直接连接到强大的本地执行、仓库诊断、数据库建模和竞技算法工具,零手动配置。
⚡ AlgoJudge 引擎:运行沙箱化代码(Python、JS/TS、C++、Go),执行自动化差分压力测试,并检查 AST 代码相似度。
🩺 环境医生:诊断项目配置,检测
.env差异,并检查带进程 PID 的端口冲突。🗄️ 数据库与 ERD:解析 SQL 模式并自动生成 Mermaid 实体关系图。
⚡ Web 性能:扫描过大的光栅资源,审计 HTTP 压缩与安全头。
🛡️ 安全卫士:在提交前检测泄露的 API 密钥、令牌和硬编码凭据。
🌐 API 游乐场:实时 HTTP 测试客户端和逼真的合成模拟数据生成器。
Related MCP server: FastApply MCP Server
🖥️ 交互式可视化仪表盘
在本地启动内置的图形化可视化器:
npx mcp-cs --ui(或在 Homebrew/全局安装后:mcp-cs --ui)
📦 安装指南
你可以通过以下任一方式安装和使用 mcp-cs:
方法 1:通过 npx 即时运行 (推荐 — 无需安装)
{
"mcpServers": {
"mcp-cs": {
"command": "npx",
"args": ["-y", "mcp-cs"]
}
}
}方法 2:Homebrew 安装(macOS 与 Linux)
brew tap ieeecsopen/tap
brew install mcp-cs(或一条命令:brew install ieeecsopen/tap/mcp-cs)
方法 3:全局 NPM 安装
npm install -g mcp-cs方法 4:通过 Smithery 一键安装
npx -y @smithery/cli install mcp-cs --client claude🔌 客户端配置
1. Antigravity IDE
将 mcp-cs 添加到你的全局配置文件 ~/.gemini/config/mcp_config.json 中:
{
"mcpServers": {
"mcp-cs": {
"command": "npx",
"args": ["-y", "mcp-cs"]
}
}
}2. Claude Desktop
添加到你的 Claude 配置文件中:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"mcp-cs": {
"command": "npx",
"args": ["-y", "mcp-cs"]
}
}
}3. Cursor IDE
打开设置(Mac 上按
Cmd + ,,Windows 上按Ctrl + ,)。进入功能 $\to$ MCP。
点击 + 添加新的 MCP 服务器:
名称:
mcp-cs类型:
command命令:
npx -y mcp-cs
🛠️ 完整工具目录(24 个工具)
⚡ 1. AlgoJudge 竞技与算法引擎
工具 | 描述 | 示例提示 |
| 在隔离进程中运行 Python、JS、TS、C++、C 或 Go 代码,并设置严格的时间和内存限制。 | "用测试输入 |
| 自动化差分测试器: 将最优算法与暴力基线在随机输入上进行比较,以找出失败的边界情况。 | "对我的 Dijkstra 实现进行压力测试,与暴力解法对比,找出它在何处失败。" |
| 基于令牌的 AST 代码相似度检查器,比较两份代码提交并检测可疑的重复逻辑。 | "检查 |
| 生成对抗性边界情况(最小 $N=1$、最大约束、相同项、极端负数、不连通图)。 | "为二叉树问题生成边界测试用例。" |
🗄️ 2. 数据库与模式套件
工具 | 描述 | 示例提示 |
| 解析 SQL | "从这个 |
⚡ 3. Web 性能套件
工具 | 描述 | 示例提示 |
| 扫描目录中未压缩的光栅图像(>250KB),并计算通过 WebP/AVIF 转换可节省的带宽。 | "审计 |
| 审计 Web 应用的 HTTP 响应头,检查 Gzip/Brotli 压缩、Cache-Control 和安全头。 | "检查 |
🩺 4. 环境与系统医生
工具 | 描述 | 示例提示 |
| 自动检测运行时(Node、Next.js、Python、Docker)、缺失的 | "诊断这个仓库为什么无法启动。" |
| 将 | "检查我的 |
| 识别哪些后台进程和 PID 占用了端口( | "检查为什么 6379 端口被占用。" |
🛡️ 5. 安全与密钥守卫
工具 | 描述 | 示例提示 |
| 扫描代码库中泄露的 OpenAI 密钥、AWS 访问令牌、GitHub PAT 和私钥。 | "扫描我的仓库中是否有意外提交的密钥。" |
🌐 6. API 客户端与模拟数据生成器
工具 | 描述 | 示例提示 |
| 执行实时 HTTP 调用( | "向 |
| 为前端和后端测试生成逼真的合成模拟数据集( | "生成 10 条带 ID 和邮箱的模拟用户记录。" |
📚 7. 文档与代码卫生
工具 | 描述 | 示例提示 |
| 扫描所有 markdown 文件( | "检查仓库中所有 markdown 文件的损坏链接。" |
| 从 markdown 文档中提取所有围栏代码块,便于快速检查。 | "提取 |
| 扫描代码库中的 | "查找代码库中所有 |
| 检查 | "检查我们是否有拖慢打包速度的重型依赖。" |
🚀 8. Git、发布与 CI/CD 套件
工具 | 描述 | 示例提示 |
| 解析标签之间符合 Conventional Commits 规范的 git 提交历史,并输出整洁的 markdown 变更日志。 | "为自 |
| 在创建 Pull Request 之前验证未提交的文件、未推送的提交和分支健康状况。 | "检查我的分支是否已准备好创建 Pull Request。" |
| 生成结构化的 markdown Pull Request 描述,总结分支提交和差异。 | "为我的当前分支生成结构化的 PR 描述。" |
| 从 Codeforces 获取问题陈述、示例输入/输出、标签和比赛限制。 | "获取 Codeforces 问题 2060A 的详细信息。" |
| 为 Next.js、NPM 发布、Docker 或 Python 生成生产就绪的 GitHub Actions CI/CD 工作流。 | "生成一个 GitHub Action 工作流,自动将此包发布到 NPM。" |
🧩 交互式提示与资源
斜杠命令 / 提示:
/diagnose-repo:运行完整的系统医生诊断,检查环境变量,扫描端口,并生成入门报告。/stress-test-solution:交互式算法压力测试助手,用于查找反例边界情况。/prepare-pr:PR 创建前的检查清单和摘要。
动态上下文资源:
resource://system/ports:活动网络端口的实时套接字流。resource://git/status:实时仓库分支和同步状态。
💻 本地开发
# 1. Clone repository
git clone https://github.com/ieeecsopen/mcp-cs.git
cd mcp-cs
# 2. Install dependencies
npm install
# 3. Run automated tests
npm test
# 4. Build TypeScript
npm run build
# 5. Start in development mode with UI
npm run dev -- --ui📄 许可证与社区
根据 MIT License 分发。
由 IEEE Computer Society of SLIIT 用 ❤️ 维护。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceProvides unified development tools including code analysis, debugging, refactoring, documentation, testing, and project automation through multiple LLM providers (KIMI, GLM, OpenRouter). Features agentic audit capabilities with multi-model consensus for finding issues and generating direct fixes.
- FlicenseCqualityDmaintenanceEnterprise-grade code intelligence platform providing AI-powered code analysis, semantic search, security scanning, and automated refactoring capabilities. Integrates with local AI models for zero-cost operations while delivering comprehensive development workflow automation.28
- AlicenseNot gradedqualityDmaintenanceProvides AI-powered development tools including code generation, refactoring, debugging, performance optimization, and test generation, along with smart prompts for code analysis and documentation, and a built-in knowledge base of coding best practices.MIT
- AlicenseNot gradedqualityDmaintenanceProvides intelligent error detection and debugging capabilities across multiple programming languages with real-time monitoring of build, lint, runtime, console, and test errors. Offers AI-enhanced error analysis with automated resolution suggestions and context-aware debugging.MIT
Related MCP Connectors
Generate SBOMs, scan vulnerabilities, and analyze dependencies from local projects or Git repos.
Deterministic context layer for your codebase: change impact, blast radius, answers with receipts.
JSON/YAML, regex, diff, JWT, SQL dialects — the keyless millisecond ops an agent needs mid-task.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ieeecsopen/mcp-cs'
If you have feedback or need assistance with the MCP directory API, please join our Discord server