Skip to content

feat(web): MCP 多服务器 user-data、设置页与隐私导入 / multi-server MCP user-data, … #570

feat(web): MCP 多服务器 user-data、设置页与隐私导入 / multi-server MCP user-data, …

feat(web): MCP 多服务器 user-data、设置页与隐私导入 / multi-server MCP user-data, … #570

# 圈复杂度(lizard CCN)、函数形参上限(fn-param:≤ 9)、函数 nloc + 源文件行数上限(fn-nloc:nloc ≤ 200、单文件 ≤ 920),与 scripts/*.sh / pre-commit 对齐;另含 fixtures/intent_regression.jsonl 金样测试(`cargo test golden_intent_regression`)。
name: code-complexity
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
lizard:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install lizard
run: pip install lizard
- name: Run lizard (Rust, CCN threshold from repo script)
run: bash scripts/lizard-rust.sh
- name: Run fn-param cap (Rust max function params ≤ 9)
run: bash scripts/fn-param-ratchet.sh
- name: Run fn-nloc (nloc ≤ 200, file lines ≤ 920)
run: bash scripts/fn-nloc-ratchet.sh
intent-golden:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install system deps (OpenSSL / libssh2 / Wayland for default features build)
run: sudo apt-get update && sudo apt-get install -y libssl-dev libssh2-1-dev libwayland-dev
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Golden intent regression (fixtures/intent_regression.jsonl)
run: cargo test golden_intent_regression --no-fail-fast