@getnote/mcp
Advanced tools
+5
-1
@@ -48,2 +48,6 @@ #!/usr/bin/env node | ||
| const client_js_1 = require("./client.js"); | ||
| const node_fs_1 = require("node:fs"); | ||
| const node_path_1 = require("node:path"); | ||
| const pkg = JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(__dirname, "..", "package.json"), "utf-8")); | ||
| const SERVER_VERSION = pkg.version; | ||
| // ─── Config ────────────────────────────────────────────────────────────────── | ||
@@ -796,3 +800,3 @@ function getApiKey() { | ||
| name: "getnote-mcp", | ||
| version: "1.2.0", | ||
| version: SERVER_VERSION, | ||
| }, { | ||
@@ -799,0 +803,0 @@ capabilities: { |
+1
-1
| { | ||
| "name": "@getnote/mcp", | ||
| "version": "1.4.1", | ||
| "version": "1.4.2", | ||
| "description": "MCP server for Get笔记 (GetNotes) API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
+8
-1
@@ -19,3 +19,10 @@ #!/usr/bin/env node | ||
| import { GetNoteClient, GetNoteAPIError, SaveNoteReq, UpdateNoteReq } from "./client.js"; | ||
| import { readFileSync } from "node:fs"; | ||
| import { join } from "node:path"; | ||
| const pkg = JSON.parse( | ||
| readFileSync(join(__dirname, "..", "package.json"), "utf-8") | ||
| ) as { version: string }; | ||
| const SERVER_VERSION: string = pkg.version; | ||
| // ─── Config ────────────────────────────────────────────────────────────────── | ||
@@ -827,3 +834,3 @@ | ||
| name: "getnote-mcp", | ||
| version: "1.2.0", | ||
| version: SERVER_VERSION, | ||
| }, | ||
@@ -830,0 +837,0 @@ { |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
126863
0.38%3095
0.32%