MCP 服务 2026-10-09 15:54 UTC
mcp-server-azure-devops
由提交人 Tiberriver256 提交,主要更新类型为:问题缺陷修复与稳定性提升。提交说明:fix(deps): clear npm audit highs (audit fix + lint-staged 17, replace commitizen/ts-node-dev) (#359)。解决了已知运行时异常与边界错误,提升系统稳定性。
Commit提交信息原文
fix(deps): clear npm audit highs (audit fix + lint-staged 17, replace commitizen/ts-node-dev) (#359) Gets the full `npm audit --audit-level=high` CI gate passing again. The Security Audit step itself is unchanged. This fixes the gate that has been failing every Dependabot PR since Sep 26. ## Commits 1. `fix(deps): npm audit fix for high/critical advisories`: plain `npm audit fix` (no `--force`), lockfile only. - `@modelcontextprotocol/sdk` 1.30.0 → 1.32.1 (fixes GHSA-6qxp-vccf-f47h, high) - `proxy-addr` 2.0.7 → 2.0.8 (critical, via express) - `azure-devops-node-api` 17.0.1, `typed-rest-client` 3.1.2 (drops nested `qs` 6.15.3), `fast-uri` 3.1.8, `ip-address` 10.7.3, `brace-expansion` patches, `jest` 30.5.2, `ts-jest` 29.4.14 2. `build(deps-dev)`: dev tooling. These are the remaining `braces`/`micromatch` highs that have no non-breaking fix. - **lint-staged** 15 → **17.6.0**. It no longer depends on micromatch/braces. The `package.json` config (`*.ts` → `oxfmt`, `oxlint --fix`) and `.husky/pre-commit` work as before; I checked with a real staged, badly formatted `.ts` file. - **commitizen + cz-conventional-changelog removed**. Even the latest commitizen 4.3.2 still pulls `find-node-modules` → `findup-sync` → `micromatch` → `braces`. `npm run commit` now runs [`@commitlint/prompt-cli`](https://commitlint.js.org/reference/prompt.html)@19, which matches the existing `@commitlint/cli` 19 and uses `commitlint.config.js`. The commitlint packages themselves aren't bumped, and the `commit-msg` hook is unchanged and still rejects bad messages. - **ts-node-dev → tsx**. ts-node-dev hasn't been released since 2022 and pulls chokidar 3 → braces. `npm run dev` is now `tsx watch src/index.ts`. tsx uses esbuild and doesn't touch the TypeScript 7 / `tsc` build. - `handlebars` 4.7.9 → 4.7.10 (critical advisory published this week, dev-only via ts-jest), from `npm audit fix`. 3. `docs`: README, CONTRIBUTING, shrimp-rules and copilot-instructions now say tsx and `@commitlint/prompt-cli` instead of ts-node-dev and commitizen. No runtime majors (no `@types/node` 26, no SDK major), and husky stays on 8. Runtime dependency changes are limited to commit 1. Commit 2 only hoists the existing `ajv` 8.20.0. ## Audit (`npm audit`) | | critical | high | moderate | total | |---|---|---|---|---| | main | 1 | 11 | 25 | 37 | | this PR | 0 | 0 | 20 | 20 | `npm audit --audit-level=high` exits 0 and `--omit=dev` reports 0. The 20 moderates left are the `sprintf-js` → `argparse` → `js-yaml` → `@istanbuljs/load-nyc-config` → jest/ts-jest chain. The only fix offered for those is a ts-jest downgrade with `--force`. ## Local checks (Node 22.23.3, same steps as CI) - `npm install --package-lock-only` leaves the lockfile unchanged, and `npm ci` passes - `npm audit --audit-level=high`: exit 0 - `format:check`, `lint` and `build` pass - `test:unit`: 65 suites / 413 tests pass - `npm run dev` starts the server on stdio and restarts on file change - pre-commit (lint-staged 17) and commit-msg (commitlint) hooks work Note: lint-staged 17 requires Node ≥ 22.22.1 for local commit hooks. CI already uses Node 22. ## Overlap with Dependabot This covers #351 (azure-devops-node-api 17.0.1), #354 (jest 30.5.2) and #358 (qs 6.16.0). Once this merges, those can be closed. The majors (#352, #353, #355) are not part of this PR. ## Integration / E2E Those steps need the Azure DevOps PAT in Actions secrets. It has expired, so they will stay red until it's rotated. That's unrelated to this change. --------- Co-authored-by: Tiberriver256 <6989492+Tiberriver256@users.noreply.github.com>