@plaud-ai/mcp 0.1.30 → 0.1.31
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 +5 -4
- package/package.json +10 -11
- package/plugin.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30592,9 +30592,9 @@ import { homedir } from "os";
|
|
|
30592
30592
|
var TokenStore = class {
|
|
30593
30593
|
configDir;
|
|
30594
30594
|
tokenPath;
|
|
30595
|
-
constructor() {
|
|
30595
|
+
constructor(filename = "tokens.json") {
|
|
30596
30596
|
this.configDir = join(homedir(), ".plaud");
|
|
30597
|
-
this.tokenPath = join(this.configDir,
|
|
30597
|
+
this.tokenPath = join(this.configDir, filename);
|
|
30598
30598
|
}
|
|
30599
30599
|
async save(tokenSet) {
|
|
30600
30600
|
await mkdir(this.configDir, { recursive: true });
|
|
@@ -30634,7 +30634,7 @@ var OAuth = class {
|
|
|
30634
30634
|
refreshUrl;
|
|
30635
30635
|
constructor(config2) {
|
|
30636
30636
|
this.config = config2;
|
|
30637
|
-
this.tokenStore = new TokenStore();
|
|
30637
|
+
this.tokenStore = new TokenStore(config2.tokenFile);
|
|
30638
30638
|
this.authorizationUrl = config2.authorizationUrl ?? DEFAULT_AUTHORIZATION_URL;
|
|
30639
30639
|
this.tokenUrl = config2.tokenUrl ?? DEFAULT_TOKEN_URL;
|
|
30640
30640
|
this.refreshUrl = config2.refreshUrl ?? DEFAULT_REFRESH_URL;
|
|
@@ -30811,9 +30811,10 @@ function buildExtraHeaders() {
|
|
|
30811
30811
|
return headers;
|
|
30812
30812
|
}
|
|
30813
30813
|
var CONFIG = {
|
|
30814
|
-
clientId: process.env.PLAUD_CLIENT_ID ?? "
|
|
30814
|
+
clientId: process.env.PLAUD_MCP_CLIENT_ID ?? process.env.PLAUD_CLIENT_ID ?? "client_9c501dad-8a0d-40b2-a7b0-d1cb8787f674",
|
|
30815
30815
|
clientSecret: process.env.PLAUD_CLIENT_SECRET ?? "",
|
|
30816
30816
|
redirectUri: "http://localhost:8199/auth/callback",
|
|
30817
|
+
tokenFile: "tokens-mcp.json",
|
|
30817
30818
|
apiBase: process.env.PLAUD_API_BASE,
|
|
30818
30819
|
authorizationUrl: process.env.PLAUD_AUTH_URL,
|
|
30819
30820
|
tokenUrl: process.env.PLAUD_TOKEN_URL,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plaud-ai/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -12,21 +12,20 @@
|
|
|
12
12
|
".mcp.json",
|
|
13
13
|
"skills"
|
|
14
14
|
],
|
|
15
|
-
"scripts": {
|
|
16
|
-
"version:show": "node -p \"require('./package.json').version\"",
|
|
17
|
-
"build": "tsup",
|
|
18
|
-
"dev": "tsup --watch",
|
|
19
|
-
"clean": "rm -rf dist",
|
|
20
|
-
"prepublishOnly": "node -e \"const fs=require('fs'),v=require('./package.json').version,p=JSON.parse(fs.readFileSync('./plugin.json','utf8'));p.version=v;fs.writeFileSync('./plugin.json',JSON.stringify(p,null,2)+'\\n');\""
|
|
21
|
-
},
|
|
22
15
|
"dependencies": {
|
|
23
16
|
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
24
17
|
"open": "^10.2.0",
|
|
25
18
|
"zod": "^4.3.6"
|
|
26
19
|
},
|
|
27
20
|
"devDependencies": {
|
|
28
|
-
"@plaud-ai/shared": "workspace:*",
|
|
29
21
|
"@types/node": "^25.5.0",
|
|
30
|
-
"typescript": "^5.7.0"
|
|
22
|
+
"typescript": "^5.7.0",
|
|
23
|
+
"@plaud-ai/shared": "0.1.0"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"version:show": "node -p \"require('./package.json').version\"",
|
|
27
|
+
"build": "tsup",
|
|
28
|
+
"dev": "tsup --watch",
|
|
29
|
+
"clean": "rm -rf dist"
|
|
31
30
|
}
|
|
32
|
-
}
|
|
31
|
+
}
|