From 8acdabc3a75b32c7ef7144ab9ec3bee30df4e94a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 9 Apr 2026 08:05:37 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20=E4=BF=AE=E5=A4=8DTOOLS=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E8=A1=A8=E8=A7=A3=E6=9E=90regex=E4=BD=BF=E5=85=B6?= =?UTF-8?q?=E6=9B=B4=E5=81=A5=E5=A3=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/052d94ae-8810-4971-bc2a-463f6b003720 Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> --- scripts/generate-readme-dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate-readme-dashboard.js b/scripts/generate-readme-dashboard.js index f140d013..87baa86f 100644 --- a/scripts/generate-readme-dashboard.js +++ b/scripts/generate-readme-dashboard.js @@ -275,7 +275,7 @@ function countMCPTools() { const serverCode = fs.readFileSync(MCP_SERVER_JS, 'utf8'); // 提取 TOOLS 对象区域 - const toolsMatch = serverCode.match(/const TOOLS\s*=\s*\{([\s\S]*?)^\};/m); + const toolsMatch = serverCode.match(/const TOOLS\s*=\s*\{([\s\S]*?)\n\};/m); if (!toolsMatch) { console.log('[MCP-STATS] ⚠️ 无法解析TOOLS注册表'); return result;