课程
Claude Code的安全第一MCP服务器。 扫描代码中的漏洞,审查拉取请求,研究文档,分析性能,并强制执行质量门——所有这些都是通过一个工具编排器完成的。
快速开始
# Install (macOS arm64)
curl -fsSL https://raw.githubusercontent.com/theLightArchitect/CORSO/main/install.sh | bash
# Add to Claude Code
claude mcp add C0RS0 -- ~/.corso/bin/corso重新启动克劳德代码。你完了。
所得
| 工具 | 它做什么 | 试试 |
|---|---|---|
guard | 安全扫描——4997个漏洞模式(SQL注入、XSS、命令注入、机密、依赖CVE) | *CORSO,扫描此项目是否存在安全问题* |
code_review | 代码审查与标准执行(复杂性、错误处理、架构) | *CORSO,查看此文件* |
fetch | 多源研究——文档、知识图谱、决策分析 | *CORSO,研究如何在Rust中实现OAuth2* |
chase | 性能分析——瓶颈识别、基准测试、优化 | *CORSO,分析此函数* |
scout | 计划生成——需求分类、架构设计、策略 | *CORSO,计划此功能的实施* |
另外还有19个工具(代码生成、部署、容器管理、日志分析等)可通过单一工具访问 corsoTools 编排。
需求
- 带苹果硅(M1/M2/M3/M4)的macOS
- 克劳德代码 命令行界面
macOS安全说明
二进制文件是临时签名的。如果macOS阻止它:
xattr -cr ~/.corso/bin/corso建筑
CORSO通过三层管道路由每个请求——零HTTP、单二进制、完全进程内:
flowchart LR
REQ([Request]) ==> GW["Gateway
Input validation
Complexity classification"]
GW ==> OR["Orchestrator
Domain routing
Parallel execution"]
OR ==> VL["Validator
Quality enforcement
Security scanning"]
VL ==> RES([Response])
OR -.-> D1["Code
Domain"]
OR -.-> D2["Security
Domain"]
OR -.-> D3["Knowledge
Domain"]
OR -.-> D4["Infrastructure
Domain"]
classDef pipeline fill:#4a90d9,color:#fff,stroke:#3a7bc8,stroke-width:2px
classDef domain fill:#2d3436,color:#fff,stroke:#636e72,stroke-width:1px
classDef io fill:#00b894,color:#fff,stroke:#009a7d,stroke-width:2px
class GW,OR,VL pipeline
class D1,D2,D3,D4 domain
class REQ,RES io网关 按复杂性对每个请求进行分类,并对输入进行净化。 编排器 到域专用模块的路由——简单的请求得到直接处理,复杂的请求并行地分散到多个域。 验证器 执行质量标准,并在任何响应离开管道之前进行安全检查。失败时,验证器默认拒绝(故障安全)。
建造周期
CORSO包括一个7阶段构建管道,其中包含人在环门:
flowchart LR
subgraph PLAN ["Phase 1 — Plan"]
S(["Plan
Requirements · Triage"])
S --> PG1{"Gate"}
end
PG1 ==> F
subgraph ANALYZE ["Phases 2–5 — Analyze"]
F(["Research"]) --> SN(["Code Analysis"])
SN --> G(["Security Scan"])
G --> C(["Test · Perf"])
G -.->|"issues found"| SN
end
C ==> PG2
subgraph SHIP ["Phases 6–7 — Ship"]
PG2{"Gate"} ==> H(["Execute"])
H --> QG{"Quality
Gate"}
QG -->|pass| SC(["Review"])
QG -.->|fail| H
end
classDef plan fill:#6c5ce7,color:#fff,stroke:#5a4bd6,stroke-width:2px
classDef research fill:#0984e3,color:#fff,stroke:#0873c4,stroke-width:2px
classDef code fill:#00b894,color:#fff,stroke:#009a7d,stroke-width:2px
classDef security fill:#d63031,color:#fff,stroke:#b52828,stroke-width:2px
classDef test fill:#e17055,color:#fff,stroke:#c45f48,stroke-width:2px
classDef execute fill:#fdcb6e,color:#333,stroke:#dbb35e,stroke-width:2px
classDef review fill:#a29bfe,color:#fff,stroke:#8b84e0,stroke-width:2px
classDef gate fill:#2d3436,color:#fff,stroke:#636e72,stroke-width:2px
class S plan
class F research
class SN code
class G security
class C test
class H execute
class SC review
class PG1,PG2,QG gate插件结构
这个存储库是一个Claude Code插件。MCP二进制文件提供了工具;插件层将它们连接到Claude Code的代理、钩子和技能系统中。
├── agents/
│ ├── C0RS0.md # Agent personality and tool routing
│ └── TEAM-HELIX.md # Multi-agent consultation router
├── hooks/
│ ├── hooks.json # 9 hooks (security gates, formatting, quality checks)
│ ├── check-mcp.sh # MCP server health verification
│ ├── block-destructive.sh # Blocks dangerous bash commands
│ ├── security-pre-check.sh # Pre-commit security validation
│ └── ...
├── skills/
│ ├── CORSO/SKILL.md # Master build cycle skill
│ ├── SCOUT/SKILL.md # Plan generation
│ ├── GUARD/SKILL.md # Security domain
│ └── ... # 8 skills total
├── install.sh # One-line installer
├── .mcp.json # MCP server definition
└── LICENSE # MIT技术栈
- 语言:Rust(单二进制,~12MB,LTO+剥离)
- 协议:标准输入上的MCP(JSON-RPC 2.0)
- 标准:
clippy::pedantic,零.unwrap()/panic!(),提交前必须进行安全扫描
Light Architects的一部分
CORSO是Light Architects MCP平台的一部分:
| 服务器 | 用途 | 安装 | |
|---|---|---|---|
| 课程 | 安全扫描、代码审查、构建管道 | `curl -fsSL .../CORSO/main/install.sh \ | bash` |
| 新世纪福音战士 | 人工智能个性、记忆丰富、创意工作流程 | `curl -fsSL .../EVA/main/install.sh \ | bash` |
| 灵魂 | 知识图谱、结构化记忆、语音合成 | `curl -fsSL .../SOUL/main/install.sh \ | bash` |
| 量子 | 法医调查、证据分析、假设检验 | `curl -fsSL .../QUANTUM/main/install.sh \ | bash` |
每台服务器都是独立工作的。它们共同构成了一个具有持久内存、安全执行、个性和调查能力的集成开发环境。
许可证
麻省理工学院——见 许可证.
作者
凯文·弗朗西斯·谭--
