note-mcp-server 2.3.2 → 2.3.3
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/index.js +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -14,8 +14,10 @@ import FormData from "form-data";
|
|
|
14
14
|
|
|
15
15
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
16
16
|
|
|
17
|
+
// 優先載入專案目錄 (cwd) 的 .env,以支援不同專案自由切換
|
|
18
|
+
loadEnv({ path: path.join(process.cwd(), ".env") });
|
|
19
|
+
// 如果專案目錄沒有設定,則退回讀取全域的 .env
|
|
17
20
|
loadEnv({ path: path.join(__dirname, ".env") });
|
|
18
|
-
|
|
19
21
|
/**
|
|
20
22
|
* MCP 須由 Cursor 依 mcp.json 啟動;勿在終端機手動跑本檔當成「掛載 MCP」。
|
|
21
23
|
*
|
|
@@ -76,7 +78,7 @@ const APP_NAME = firstEnv("app_name", "APP_NAME", "notes_app_name", "NOTES_APP_N
|
|
|
76
78
|
const server = new Server(
|
|
77
79
|
{
|
|
78
80
|
name: `note-mcp-server (${APP_NAME})`,
|
|
79
|
-
version: "2.3.
|
|
81
|
+
version: "2.3.3",
|
|
80
82
|
},
|
|
81
83
|
{
|
|
82
84
|
capabilities: {
|
package/package.json
CHANGED