minutes-mcp 0.34.2 → 0.35.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +5 -0
- package/dist/index.js +64 -6
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -314,6 +314,11 @@ export declare function researchTopicProjection(sourceMeetings: PolicyVerifiedMe
|
|
|
314
314
|
export declare function enrichWithFrontmatter(qmdResults: any[], includeRestricted: boolean, meetingsDir?: string, query?: string, limit?: number): Promise<any[]>;
|
|
315
315
|
export declare function liveMeetingSnippet(body: string, query?: string): string;
|
|
316
316
|
export declare function shouldRunMainEntry(argv1: string | null | undefined, moduleFilename: string): boolean;
|
|
317
|
+
export declare function isClaudeDesktopExtension(extensionId: string | undefined, directory: string): boolean;
|
|
318
|
+
export declare function staleExtensionGuidance(extensionVersion: string): string;
|
|
319
|
+
export declare function findStaleMinutesExtension(roots?: string[], serverVersion?: string): {
|
|
320
|
+
version: string;
|
|
321
|
+
} | null;
|
|
317
322
|
export declare function parseKnowledgeConfig(configContent: string): KnowledgeConfigStatus | null;
|
|
318
323
|
export declare function createCapabilityRepairCoordinator(repair: () => Promise<boolean>, maximumAttempts?: number): () => Promise<boolean>;
|
|
319
324
|
export declare function getReleaseBinaryName(platform?: NodeJS.Platform, arch?: string): string | null;
|
package/dist/index.js
CHANGED
|
@@ -43,7 +43,7 @@ import { z } from "zod";
|
|
|
43
43
|
import { execFile, spawn, spawnSync } from "child_process";
|
|
44
44
|
import { createHash } from "crypto";
|
|
45
45
|
import { promisify } from "util";
|
|
46
|
-
import { closeSync, constants, copyFileSync, existsSync, fstatSync, mkdirSync, openSync, readdirSync, realpathSync, statSync, } from "fs";
|
|
46
|
+
import { closeSync, constants, copyFileSync, existsSync, fstatSync, mkdirSync, openSync, readdirSync, readFileSync, realpathSync, statSync, } from "fs";
|
|
47
47
|
import { access, mkdir, readFile, rm, stat, writeFile } from "fs/promises";
|
|
48
48
|
import { basename, delimiter, dirname, extname, isAbsolute, join, relative, resolve } from "path";
|
|
49
49
|
import { fileURLToPath } from "url";
|
|
@@ -1530,10 +1530,14 @@ export function shouldRunMainEntry(argv1, moduleFilename) {
|
|
|
1530
1530
|
// Support, and Claude Desktop sets MCP_EXTENSION_ID for extension servers.
|
|
1531
1531
|
// This is macOS-specific — Windows/Linux don't have TCC, so their extension
|
|
1532
1532
|
// runtimes can spawn child processes with mic access normally.
|
|
1533
|
-
|
|
1534
|
-
(
|
|
1535
|
-
|
|
1536
|
-
|
|
1533
|
+
export function isClaudeDesktopExtension(extensionId, directory) {
|
|
1534
|
+
return Boolean(extensionId) || directory.split(/[\\/]+/).some((component) => {
|
|
1535
|
+
const name = component.toLowerCase();
|
|
1536
|
+
return name === "claude extensions" || name === "claude-extensions";
|
|
1537
|
+
});
|
|
1538
|
+
}
|
|
1539
|
+
const isClaudeExtension = isClaudeDesktopExtension(process.env.MCP_EXTENSION_ID, __dirname);
|
|
1540
|
+
const isExtensionRuntime = process.platform === "darwin" && isClaudeExtension;
|
|
1537
1541
|
if (isExtensionRuntime) {
|
|
1538
1542
|
console.error("[Minutes] Running as Claude Desktop extension — audio capture will " +
|
|
1539
1543
|
"delegate to the Minutes desktop app (TCC mic grants don't propagate " +
|
|
@@ -1543,6 +1547,54 @@ else {
|
|
|
1543
1547
|
console.error(`[Minutes] Extension runtime detection: false ` +
|
|
1544
1548
|
`(MCP_EXTENSION_ID=${!!process.env.MCP_EXTENSION_ID}, dirname=${__dirname})`);
|
|
1545
1549
|
}
|
|
1550
|
+
// ── Stale sibling extension warning (#1220) ─────────────────
|
|
1551
|
+
// A manual `minutes-mcp` or the desktop app's bundled server can run next to
|
|
1552
|
+
// an older Claude Desktop extension of Minutes that is still installed and
|
|
1553
|
+
// acting — #940 traced repeated config resets to exactly that pairing (a
|
|
1554
|
+
// 0.25.x extension beside a newer server), and nothing told the user the old
|
|
1555
|
+
// copy existed. When this server is NOT itself the extension, scan Claude's
|
|
1556
|
+
// extension store for a Minutes manifest older than this server and say so on
|
|
1557
|
+
// stderr, where the host's MCP logs surface it.
|
|
1558
|
+
export function staleExtensionGuidance(extensionVersion) {
|
|
1559
|
+
return (`An outdated Minutes extension (v${extensionVersion}) is installed in ` +
|
|
1560
|
+
`Claude Desktop alongside this server (v${MCP_SERVER_VERSION}). Old ` +
|
|
1561
|
+
`extension builds can reset your model and settings — remove or update ` +
|
|
1562
|
+
`it in Claude Desktop → Settings → Extensions.`);
|
|
1563
|
+
}
|
|
1564
|
+
export function findStaleMinutesExtension(roots = [], serverVersion = MCP_SERVER_VERSION) {
|
|
1565
|
+
const searchRoots = roots.length > 0
|
|
1566
|
+
? roots
|
|
1567
|
+
: process.platform === "darwin"
|
|
1568
|
+
? [join(homedir(), "Library", "Application Support", "Claude", "Claude Extensions")]
|
|
1569
|
+
: process.platform === "win32"
|
|
1570
|
+
? [join(process.env.APPDATA ?? join(homedir(), "AppData", "Roaming"), "Claude", "Claude Extensions")]
|
|
1571
|
+
: [];
|
|
1572
|
+
for (const root of searchRoots) {
|
|
1573
|
+
let entries;
|
|
1574
|
+
try {
|
|
1575
|
+
entries = readdirSync(root);
|
|
1576
|
+
}
|
|
1577
|
+
catch {
|
|
1578
|
+
continue;
|
|
1579
|
+
}
|
|
1580
|
+
for (const entry of entries) {
|
|
1581
|
+
try {
|
|
1582
|
+
const manifest = JSON.parse(readFileSync(join(root, entry, "manifest.json"), "utf8"));
|
|
1583
|
+
if (manifest?.name === "minutes" &&
|
|
1584
|
+
typeof manifest.repository?.url === "string" &&
|
|
1585
|
+
/^https:\/\/github\.com\/silverstein\/minutes(?:\.git)?\/?$/i.test(manifest.repository.url) &&
|
|
1586
|
+
typeof manifest?.version === "string" &&
|
|
1587
|
+
isOlderVersion(manifest.version, serverVersion)) {
|
|
1588
|
+
return { version: manifest.version };
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
catch {
|
|
1592
|
+
// Not a manifest-bearing extension directory — keep scanning.
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
return null;
|
|
1597
|
+
}
|
|
1546
1598
|
// ── Find the minutes binary ─────────────────────────────────
|
|
1547
1599
|
function findMinutesBinary() {
|
|
1548
1600
|
const platform = process.platform;
|
|
@@ -1615,7 +1667,13 @@ const COPILOT_SUPPORTED = hasFeature(CLI_CAPABILITIES, "copilot_realtime");
|
|
|
1615
1667
|
// `./version.ts` (see issue #183). Hosted `.mcpb` bundles will run
|
|
1616
1668
|
// against CLIs with different minor/patch numbers within the same
|
|
1617
1669
|
// major; that is explicitly supported.
|
|
1618
|
-
const MCP_SERVER_VERSION = "0.
|
|
1670
|
+
const MCP_SERVER_VERSION = "0.35.1";
|
|
1671
|
+
if (!isClaudeExtension) {
|
|
1672
|
+
const stale = findStaleMinutesExtension();
|
|
1673
|
+
if (stale) {
|
|
1674
|
+
console.error(`[Minutes] ${staleExtensionGuidance(stale.version)}`);
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1619
1677
|
export function parseKnowledgeConfig(configContent) {
|
|
1620
1678
|
const knowledgeMatch = configContent.match(/\[knowledge\][\s\S]*?(?=\n\[|$)/);
|
|
1621
1679
|
if (!knowledgeMatch) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "minutes-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.1",
|
|
4
4
|
"mcpName": "io.github.silverstein/minutes",
|
|
5
5
|
"description": "MCP server for minutes \u2014 conversation memory for AI assistants. Works with Claude Desktop, Mistral Vibe, Cursor, Windsurf, and any MCP client.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@modelcontextprotocol/ext-apps": "^2.0.0",
|
|
49
49
|
"@modelcontextprotocol/sdk": "^1.32.0",
|
|
50
|
-
"minutes-sdk": "0.
|
|
50
|
+
"minutes-sdk": "0.35.1",
|
|
51
51
|
"yaml": "^2.8.3",
|
|
52
52
|
"zod": "^3.25 || ^4.0"
|
|
53
53
|
},
|