From f1e0bb46eaed0da02e2424b50c58866ed2731867 Mon Sep 17 00:00:00 2001 From: chenyida7-prog Date: Mon, 24 Aug 2026 11:16:55 +0800 Subject: [PATCH 1/2] fix(build): use mcp[cli] extra so PyInstaller build has typer --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 4d6e13b..04f71a2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ # ── Runtime dependencies (same as pyproject.toml) ────────── # MCP protocol -mcp>=1.0.0 +mcp[cli]>=1.0.0 # YAML frontmatter pyyaml>=6.0 From cf5b370f6028342a55a8a9c1f3978d5dcd8b9c86 Mon Sep 17 00:00:00 2001 From: chenyida7-prog Date: Mon, 24 Aug 2026 16:45:29 +0800 Subject: [PATCH 2/2] fix(build): use mcp[cli] extra in pyproject.toml too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pip install -e . (editable/dev install path) reads pyproject.toml's dependency list, not requirements.txt — same missing-typer failure mode as the previous commit if that's the install path the build environment uses. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3d1cfd2..ee68b50 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ description = "Local-first 知识管理平台 — 纯 Markdown + Git + MCP,让 requires-python = ">=3.10" dependencies = [ # MCP protocol(<2.0:mcp 2.x 移除 mcp.server.fastmcp,2026-08-10 验证 1.29 仍兼容) - "mcp>=1.0.0,<2.0", + "mcp[cli]>=1.0.0,<2.0", # YAML frontmatter "pyyaml>=6.0", # Git operations