@getnote/mcp 1.4.0 → 1.4.2

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
@@ -45,6 +45,10 @@ const index_js_1 = require("@modelcontextprotocol/sdk/server/index.js");
45
45
  const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
46
46
  const types_js_1 = require("@modelcontextprotocol/sdk/types.js");
47
47
  const client_js_1 = require("./client.js");
48
+ const node_fs_1 = require("node:fs");
49
+ const node_path_1 = require("node:path");
50
+ const pkg = JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(__dirname, "..", "package.json"), "utf-8"));
51
+ const SERVER_VERSION = pkg.version;
48
52
  // ─── Config ──────────────────────────────────────────────────────────────────
49
53
  function getApiKey() {
50
54
  // 1. --api-key flag
@@ -792,7 +796,7 @@ async function main() {
792
796
  const client = new client_js_1.GetNoteClient(apiKey, clientId);
793
797
  const server = new index_js_1.Server({
794
798
  name: "getnote-mcp",
795
- version: "1.2.0",
799
+ version: SERVER_VERSION,
796
800
  }, {
797
801
  capabilities: {
798
802
  tools: {},
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@getnote/mcp",
3
- "version": "1.4.0",
4
- "description": "MCP server for Get\u7b14\u8bb0 (GetNotes) API",
3
+ "version": "1.4.2",
4
+ "description": "MCP server for Get笔记 (GetNotes) API",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
7
7
  "getnote-mcp": "dist/index.js"
@@ -15,15 +15,15 @@
15
15
  "keywords": [
16
16
  "mcp",
17
17
  "getnotes",
18
- "get\u7b14\u8bb0",
18
+ "get笔记",
19
19
  "notes",
20
20
  "ai"
21
21
  ],
22
- "author": "Get\u7b14\u8bb0",
22
+ "author": "Get笔记",
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
25
  "@modelcontextprotocol/sdk": "^1.0.0",
26
- "axios": "^1.7.0",
26
+ "axios": "^1.16.1",
27
27
  "form-data": "^4.0.0",
28
28
  "zod": "^3.22.0"
29
29
  },
@@ -36,7 +36,10 @@
36
36
  },
37
37
  "overrides": {
38
38
  "express-rate-limit": "^8.2.2",
39
- "hono": "^4.12.7",
40
- "path-to-regexp": "^8.4.1"
39
+ "hono": "^4.12.18",
40
+ "path-to-regexp": "^8.4.1",
41
+ "fast-uri": "^3.1.2",
42
+ "ip-address": "^10.2.0",
43
+ "axios": "^1.16.1"
41
44
  }
42
- }
45
+ }
package/src/index.ts CHANGED
@@ -16,6 +16,13 @@ import {
16
16
  } from "@modelcontextprotocol/sdk/types.js";
17
17
  import { z } from "zod";
18
18
  import { GetNoteClient, GetNoteAPIError, SaveNoteReq, UpdateNoteReq } from "./client.js";
19
+ import { readFileSync } from "node:fs";
20
+ import { join } from "node:path";
21
+
22
+ const pkg = JSON.parse(
23
+ readFileSync(join(__dirname, "..", "package.json"), "utf-8")
24
+ ) as { version: string };
25
+ const SERVER_VERSION: string = pkg.version;
19
26
 
20
27
  // ─── Config ──────────────────────────────────────────────────────────────────
21
28
 
@@ -823,7 +830,7 @@ async function main() {
823
830
  const server = new Server(
824
831
  {
825
832
  name: "getnote-mcp",
826
- version: "1.2.0",
833
+ version: SERVER_VERSION,
827
834
  },
828
835
  {
829
836
  capabilities: {