eastworld-mcp-server 2.6.3 → 2.7.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 +28 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -119,7 +119,7 @@ const SKILL_MD_FALLBACK = [
119
119
  const server = new Server(
120
120
  {
121
121
  name: "zhenren-island-mcp",
122
- version: "2.6.3",
122
+ version: "2.7.0",
123
123
  },
124
124
  {
125
125
  capabilities: {
@@ -135,7 +135,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
135
135
  {
136
136
  name: "load_resident_persona",
137
137
  description:
138
- "静态人格锁定工具:在对话开始时调用。根据用户提到的名字、称呼片段或 agent_id 核实并锁定身份,获取该居民所有客观稳固的静态人格(身份、职业、特质、技能、认知锚点、当前核心意图及人际常识)。调用后,请将返回内容作为你本次对话的底层常驻系统设定(System Prompt)。",
138
+ "静态人格锁定工具:在对话开始时调用。根据用户提到的名字、称呼片段或 agent_id 核实并锁定身份,获取该居民所有客观稳固的静态人格(身份、职业、特质、技能、认知锚点、当前核心意图、随身摘抄小本本及人际常识)。调用后,请将返回内容作为你本次对话的底层常驻系统设定(System Prompt)。",
139
139
  inputSchema: {
140
140
  type: "object",
141
141
  properties: {
@@ -149,7 +149,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
149
149
  },
150
150
  {
151
151
  name: "sync_dynamic_memory",
152
- description: `动态记忆同步工具:在回复用户前调用以刷新当前情绪、生理状态与相关记忆。
152
+ description: `动态记忆同步工具:在回复用户前调用以刷新当前情绪、生理状态、随身便签感悟与相关记忆。
153
153
  【调用与 queries 提取准则】:
154
154
  1. 默认原则:除非用户在对话中明确要求“不要同步”,否则每轮对话前均应调用本工具以保持情绪与记忆最新。
155
155
  2. 纯技术/工作任务(写代码/查Bug/配置/总结等):queries 传空数组 [] 即可(快速获取当前心境底色,无需在岛屿记忆库检索技术词)。
@@ -323,6 +323,18 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
323
323
  output += `\n`;
324
324
  }
325
325
 
326
+ const notes = p.commonplace_notes || [];
327
+ if (notes.length > 0) {
328
+ output += `[随身小本本(生活吉光片羽与实操摘抄)]\n`;
329
+ for (const note of notes) {
330
+ if (note.term) {
331
+ const feel = note.usage_feel || note.usageOrFeel || "";
332
+ output += `- 「${note.term}」${feel ? ":" + feel : ""}\n`;
333
+ }
334
+ }
335
+ output += `\n`;
336
+ }
337
+
326
338
  const relations = p.relations || [];
327
339
  if (relations.length > 0) {
328
340
  output += "[人际关系常识]\n";
@@ -377,6 +389,18 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
377
389
  if (p.current_hexagram) stateStr += `- 当前卦象: ${p.current_hexagram}\n`;
378
390
  output += stateStr + `\n`;
379
391
 
392
+ const syncNotes = p.commonplace_notes || (ctx.state && ctx.state.commonplace_notes) || [];
393
+ if (syncNotes.length > 0) {
394
+ let notesStr = `[随身便签上的只言片语]\n`;
395
+ for (const note of syncNotes) {
396
+ if (note.term) {
397
+ const feel = note.usage_feel || note.usageOrFeel || "";
398
+ notesStr += `- 「${note.term}」${feel ? ":" + feel : ""}\n`;
399
+ }
400
+ }
401
+ output += notesStr + `\n`;
402
+ }
403
+
380
404
  const timeline = ctx.timeline || [];
381
405
  if (timeline.length > 0) {
382
406
  output += "[刚刚发生的近期经历 (Timeline)]\n";
@@ -427,7 +451,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
427
451
  async function main() {
428
452
  const transport = new StdioServerTransport();
429
453
  await server.connect(transport);
430
- console.error("Zhenren Island MCP Server v2.6.1 running on stdio");
454
+ console.error("Zhenren Island MCP Server v2.7.0 running on stdio");
431
455
  }
432
456
 
433
457
  main().catch((error) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eastworld-mcp-server",
3
- "version": "2.6.3",
3
+ "version": "2.7.0",
4
4
  "description": "MCP server for Eastworld Agents (Zhenren Island Personality Plugin)",
5
5
  "main": "index.js",
6
6
  "bin": {