@plaud-ai/mcp 0.1.21 → 0.1.23
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.js +9 -4
- package/dist/{setup-EPVXIPCO.js → setup-CLLIDI7G.js} +27 -0
- package/package.json +1 -1
- package/plugin.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30982,23 +30982,28 @@ server.tool("logout", "Log out, sign out, revoke authorization, and disconnect f
|
|
|
30982
30982
|
};
|
|
30983
30983
|
});
|
|
30984
30984
|
async function main() {
|
|
30985
|
+
if (process.argv[2] === "clean-plugin") {
|
|
30986
|
+
const { runCleanPlugin } = await import("./setup-CLLIDI7G.js");
|
|
30987
|
+
await runCleanPlugin();
|
|
30988
|
+
return;
|
|
30989
|
+
}
|
|
30985
30990
|
if (process.argv[2] === "setup" && process.argv[3] === "codex") {
|
|
30986
|
-
const { runSetupCodex } = await import("./setup-
|
|
30991
|
+
const { runSetupCodex } = await import("./setup-CLLIDI7G.js");
|
|
30987
30992
|
await runSetupCodex();
|
|
30988
30993
|
return;
|
|
30989
30994
|
}
|
|
30990
30995
|
if (process.argv[2] === "unsetup" && process.argv[3] === "codex") {
|
|
30991
|
-
const { runUnsetupCodex } = await import("./setup-
|
|
30996
|
+
const { runUnsetupCodex } = await import("./setup-CLLIDI7G.js");
|
|
30992
30997
|
await runUnsetupCodex();
|
|
30993
30998
|
return;
|
|
30994
30999
|
}
|
|
30995
31000
|
if (process.argv[2] === "setup") {
|
|
30996
|
-
const { runSetup } = await import("./setup-
|
|
31001
|
+
const { runSetup } = await import("./setup-CLLIDI7G.js");
|
|
30997
31002
|
await runSetup();
|
|
30998
31003
|
return;
|
|
30999
31004
|
}
|
|
31000
31005
|
if (process.argv[2] === "unsetup") {
|
|
31001
|
-
const { runUnsetup } = await import("./setup-
|
|
31006
|
+
const { runUnsetup } = await import("./setup-CLLIDI7G.js");
|
|
31002
31007
|
await runUnsetup();
|
|
31003
31008
|
return;
|
|
31004
31009
|
}
|
|
@@ -21,6 +21,28 @@ function getConfigPath() {
|
|
|
21
21
|
}
|
|
22
22
|
return null;
|
|
23
23
|
}
|
|
24
|
+
async function runCleanPlugin() {
|
|
25
|
+
const { rm } = await import("fs/promises");
|
|
26
|
+
const cacheDir = join(homedir(), ".claude", "plugins", "cache", "plaud-ai");
|
|
27
|
+
try {
|
|
28
|
+
await rm(cacheDir, { recursive: true, force: true });
|
|
29
|
+
console.log("Cleared plugin cache.");
|
|
30
|
+
} catch {
|
|
31
|
+
console.log("Plugin cache not found, skipping.");
|
|
32
|
+
}
|
|
33
|
+
for (const file of ["settings.json", "settings.local.json"]) {
|
|
34
|
+
const p = join(homedir(), ".claude", file);
|
|
35
|
+
try {
|
|
36
|
+
const raw = await readFile(p, "utf-8");
|
|
37
|
+
const s = JSON.parse(raw);
|
|
38
|
+
delete s.enabledPlugins;
|
|
39
|
+
await writeFile(p, JSON.stringify(s, null, 2), "utf-8");
|
|
40
|
+
} catch {
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
console.log("Done. Run /plugin install plaud in Claude Code, then restart.");
|
|
44
|
+
process.exit(0);
|
|
45
|
+
}
|
|
24
46
|
async function runSetupCodex() {
|
|
25
47
|
const configPath = join(homedir(), ".codex", "config.toml");
|
|
26
48
|
const { command, args } = getMcpEntry();
|
|
@@ -43,6 +65,7 @@ args = ["${args[0]}"]
|
|
|
43
65
|
await writeFile(configPath, content + entry, "utf-8");
|
|
44
66
|
console.log("Plaud has been added to Codex Desktop.");
|
|
45
67
|
console.log("Please restart Codex Desktop to complete the setup.");
|
|
68
|
+
process.exit(0);
|
|
46
69
|
}
|
|
47
70
|
async function runUnsetupCodex() {
|
|
48
71
|
const configPath = join(homedir(), ".codex", "config.toml");
|
|
@@ -61,6 +84,7 @@ async function runUnsetupCodex() {
|
|
|
61
84
|
await writeFile(configPath, cleaned, "utf-8");
|
|
62
85
|
console.log("Plaud has been removed from Codex Desktop.");
|
|
63
86
|
console.log("Please restart Codex Desktop to complete the unsetup.");
|
|
87
|
+
process.exit(0);
|
|
64
88
|
}
|
|
65
89
|
async function runUnsetup() {
|
|
66
90
|
const configPath = getConfigPath();
|
|
@@ -86,6 +110,7 @@ async function runUnsetup() {
|
|
|
86
110
|
await writeFile(configPath, JSON.stringify(config, null, 2), "utf-8");
|
|
87
111
|
console.log("Plaud has been removed from Claude Desktop.");
|
|
88
112
|
console.log("Please restart Claude Desktop to complete the unsetup.");
|
|
113
|
+
process.exit(0);
|
|
89
114
|
}
|
|
90
115
|
async function runSetup() {
|
|
91
116
|
const configPath = getConfigPath();
|
|
@@ -110,8 +135,10 @@ async function runSetup() {
|
|
|
110
135
|
await writeFile(configPath, JSON.stringify(config, null, 2), "utf-8");
|
|
111
136
|
console.log("Plaud has been added to Claude Desktop.");
|
|
112
137
|
console.log("Please restart Claude Desktop to complete the setup.");
|
|
138
|
+
process.exit(0);
|
|
113
139
|
}
|
|
114
140
|
export {
|
|
141
|
+
runCleanPlugin,
|
|
115
142
|
runSetup,
|
|
116
143
|
runSetupCodex,
|
|
117
144
|
runUnsetup,
|
package/package.json
CHANGED