@plaud-ai/mcp 0.1.13 → 0.1.16
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
CHANGED
|
@@ -30830,7 +30830,7 @@ var server = new McpServer({
|
|
|
30830
30830
|
});
|
|
30831
30831
|
var CALLBACK_PORT = 8199;
|
|
30832
30832
|
var LOGIN_TIMEOUT_MS = 12e4;
|
|
30833
|
-
server.tool("login", "
|
|
30833
|
+
server.tool("login", "Log in, sign in, or authenticate with Plaud account via OAuth (opens browser)", async () => {
|
|
30834
30834
|
const client2 = getClient();
|
|
30835
30835
|
const existingToken = await client2.auth.getAccessToken();
|
|
30836
30836
|
if (existingToken) {
|
|
@@ -30966,7 +30966,7 @@ server.tool("get_current_user", "Get current authenticated user info", async ()
|
|
|
30966
30966
|
};
|
|
30967
30967
|
}
|
|
30968
30968
|
});
|
|
30969
|
-
server.tool("logout", "Log out
|
|
30969
|
+
server.tool("logout", "Log out, sign out, revoke authorization, and disconnect from Plaud account", async () => {
|
|
30970
30970
|
const client2 = getClient();
|
|
30971
30971
|
const existingToken = await client2.auth.getAccessToken();
|
|
30972
30972
|
if (!existingToken) {
|
|
@@ -30983,12 +30983,12 @@ server.tool("logout", "Log out and revoke authorization", async () => {
|
|
|
30983
30983
|
});
|
|
30984
30984
|
async function main() {
|
|
30985
30985
|
if (process.argv[2] === "setup") {
|
|
30986
|
-
const { runSetup } = await import("./setup-
|
|
30986
|
+
const { runSetup } = await import("./setup-6KJE2JMQ.js");
|
|
30987
30987
|
await runSetup();
|
|
30988
30988
|
return;
|
|
30989
30989
|
}
|
|
30990
30990
|
if (process.argv[2] === "unsetup") {
|
|
30991
|
-
const { runUnsetup } = await import("./setup-
|
|
30991
|
+
const { runUnsetup } = await import("./setup-6KJE2JMQ.js");
|
|
30992
30992
|
await runUnsetup();
|
|
30993
30993
|
return;
|
|
30994
30994
|
}
|
|
@@ -4,7 +4,14 @@ import "./chunk-U67V476Y.js";
|
|
|
4
4
|
import { readFile, writeFile, mkdir } from "fs/promises";
|
|
5
5
|
import { join, dirname } from "path";
|
|
6
6
|
import { homedir } from "os";
|
|
7
|
-
|
|
7
|
+
import { fileURLToPath } from "url";
|
|
8
|
+
function getMcpEntry() {
|
|
9
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
10
|
+
return {
|
|
11
|
+
command: process.execPath,
|
|
12
|
+
args: [join(__dirname, "index.js")]
|
|
13
|
+
};
|
|
14
|
+
}
|
|
8
15
|
function getConfigPath() {
|
|
9
16
|
if (process.platform === "darwin") {
|
|
10
17
|
return join(homedir(), "Library", "Application Support", "Claude", "claude_desktop_config.json");
|
|
@@ -57,7 +64,7 @@ async function runSetup() {
|
|
|
57
64
|
console.log("Restart Claude Desktop if you haven't already.");
|
|
58
65
|
return;
|
|
59
66
|
}
|
|
60
|
-
config.mcpServers = { ...mcpServers, plaud:
|
|
67
|
+
config.mcpServers = { ...mcpServers, plaud: getMcpEntry() };
|
|
61
68
|
await mkdir(dirname(configPath), { recursive: true });
|
|
62
69
|
await writeFile(configPath, JSON.stringify(config, null, 2), "utf-8");
|
|
63
70
|
console.log("Plaud has been added to Claude Desktop.");
|
package/package.json
CHANGED