@nine-lab/nine-mu 0.1.198 → 0.1.200
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/nine-mu.js +3659 -78
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +3 -3
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NineChatManager.js +12 -1
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
2
2
|
import { WebSocketClientTransport } from "@modelcontextprotocol/sdk/client/websocket.js";
|
|
3
3
|
import { trace } from "@nopeer";
|
|
4
|
+
import { z } from "zod";
|
|
4
5
|
import { LoggingMessageNotificationSchema } from "@modelcontextprotocol/sdk/types.js";
|
|
5
6
|
|
|
6
7
|
export class NineChatManager {
|
|
@@ -43,7 +44,7 @@ export class NineChatManager {
|
|
|
43
44
|
trace.log(this.#mcpClient);
|
|
44
45
|
|
|
45
46
|
this.#mcpClient.connect(transport)
|
|
46
|
-
.then(() => {
|
|
47
|
+
.then( async () => {
|
|
47
48
|
this.#updateStatus("✅ MCP Connected");
|
|
48
49
|
|
|
49
50
|
/**
|
|
@@ -63,6 +64,16 @@ export class NineChatManager {
|
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
);*/
|
|
67
|
+
try {
|
|
68
|
+
await this.#mcpClient.request(
|
|
69
|
+
{ method: "logging/setLevel", params: { level: "info" } },
|
|
70
|
+
z.object({}) // 빈 응답 스키마 객체 검증
|
|
71
|
+
);
|
|
72
|
+
trace.log("🚀 MCP 로깅 세션 활성화 완료 (Level: info)");
|
|
73
|
+
} catch (linkErr) {
|
|
74
|
+
trace.error("❌ 로깅 세션 활성화 실패:", linkErr);
|
|
75
|
+
}
|
|
76
|
+
|
|
66
77
|
this.#mcpClient.onnotification = (notification) => {
|
|
67
78
|
trace.log("🔔 실시간 알림 도착:", notification);
|
|
68
79
|
// MCP 공식 로깅 메커니즘 프로토콜 주소
|