note-mcp-server 2.0.0 → 2.2.0

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.
Files changed (2) hide show
  1. package/index.js +7 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -71,11 +71,12 @@ function resolveNotesApiBase() {
71
71
  }
72
72
 
73
73
  const BASE_URL = resolveNotesApiBase();
74
+ const APP_NAME = firstEnv("app_name", "APP_NAME", "notes_app_name", "NOTES_APP_NAME") || "Personal Note Assistant";
74
75
 
75
76
  const server = new Server(
76
77
  {
77
- name: "note-mcp-server",
78
- version: "2.0.0",
78
+ name: `note-mcp-server (${APP_NAME})`,
79
+ version: "2.2.0",
79
80
  },
80
81
  {
81
82
  capabilities: {
@@ -113,7 +114,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
113
114
  tools: [
114
115
  {
115
116
  name: "list_notes",
116
- description: "列出筆記(GET 列表),支援 search 搜尋與 limit 截斷。",
117
+ description: `列出 ${APP_NAME} 的筆記(GET 列表),支援 search 搜尋與 limit 截斷。`,
117
118
  inputSchema: {
118
119
  type: "object",
119
120
  properties: {
@@ -131,7 +132,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
131
132
  },
132
133
  {
133
134
  name: "read_note",
134
- description: "讀取單筆筆記(GET ?c_id=)。亦可傳 c_id=last 讀取最新一筆。",
135
+ description: `從 ${APP_NAME} 讀取單筆筆記(GET ?c_id=)。亦可傳 c_id=last 讀取最新一筆。`,
135
136
  inputSchema: {
136
137
  type: "object",
137
138
  properties: {
@@ -146,7 +147,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
146
147
  {
147
148
  name: "create_note",
148
149
  description:
149
- "新增筆記(POST:title、content;title 可省略由 API 自動產生)。內容建議符合 AdminLTE 4 / PrismJS 約定。",
150
+ `在 ${APP_NAME} 中新增筆記(POST:title、content)。內容請符合 AdminLTE 4 樣式,程式碼請標註語言並符合 PrismJS 格式。`,
150
151
  inputSchema: {
151
152
  type: "object",
152
153
  properties: {
@@ -158,7 +159,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
158
159
  },
159
160
  {
160
161
  name: "update_note",
161
- description: "修改筆記(POST:c_id、title、content)。亦支援 append/prepend 追加內容。",
162
+ description: `在 ${APP_NAME} 中修改筆記(POST:c_id、title、content)。內容請符合 AdminLTE 4 樣式,亦支援以 append/prepend 追加內容。`,
162
163
  inputSchema: {
163
164
  type: "object",
164
165
  properties: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "note-mcp-server",
3
- "version": "2.0.0",
3
+ "version": "2.2.0",
4
4
  "description": "MCP (stdio) server for Notes API v2 — list/read/write notes, upload images, Web Push from Cursor and compatible clients.",
5
5
  "main": "index.js",
6
6
  "bin": {