You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Disclaimer**: `kmsg`는 Kakao Corp. 의 공식 도구가 아닙니다.
@@ -305,6 +307,8 @@ OpenClaw MCP 설정 예시:
305
307
}
306
308
```
307
309
310
+
`mcp-server` 는 MCP `Content-Length` 프레이밍과 줄 단위 JSON-RPC 입력을 모두 받습니다. 요청이 `Content-Length` 방식이면 같은 방식으로 응답하고, JSON 한 줄 요청이면 JSON 한 줄로 응답합니다.
311
+
308
312
추천 운영 순서는 아래와 같습니다.
309
313
310
314
1.`watch --json` 으로 새 메시지 감지
@@ -472,13 +476,17 @@ LOCO Protocol 을 쓰려면 사실상 비공개 동작을 리버스 엔지니어
472
476
473
477
### 이 기능을 Rust 로 작성하면 더 빨라질까요?
474
478
475
-
조금은 빨라질 수 있지만, 체감 성능 향상은 제한적일 가능성이 큽니다. 이 CLI 의 주된 지연은 언어 런타임보다 `AXUIElement` 호출, UI 탐색, KakaoTalk 창 활성화/복구, 실제 앱 응답 시간에서 발생합니다.
476
-
Rust 로 바꾸면 cold start 나 순수 stdio/JSON 처리 같은 부분은 약간 유리할 수 있지만, 전체 end-to-end latency 는 크게 달라지지 않을 가능성이 높습니다. 대신 macOS native framework binding 과 유지보수 비용은 Swift 보다 높아질 수 있습니다.
479
+
일부 구간은 빨라질 수 있지만, 체감 성능 향상은 제한적일 가능성이 큽니다. `kmsg` 의 주된 지연은 언어 런타임보다 `AXUIElement` 호출, UI 탐색, KakaoTalk 창 활성화/복구, 실제 앱 응답 시간에서 발생합니다.
480
+
Rust 로 바꾸면 단발 CLI cold start, 순수 stdio 프레이밍, JSON encode/decode 같은 좁은 구간은 유리할 수 있습니다. 하지만 MCP 서버처럼 프로세스가 이미 떠 있는 경로에서는 그 이득이 더 작아지고, 전체 end-to-end latency 는 여전히 macOS AX 와 KakaoTalk UI 응답 시간이 지배합니다. 대신 Rust 는 macOS native framework binding 과 FFI 관리 비용이 Swift 보다 커질 수 있습니다.
477
481
478
482
## Inspiration
479
483
480
484
This project is strongly inspired by [steipete](https://github.com/steipete) and his works.
481
485
486
+
## License
487
+
488
+
`kmsg` is available under the [MIT License](./LICENSE).
Copy file name to clipboardExpand all lines: docs/openclaw.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,8 @@ Run the MCP server:
58
58
kmsg mcp-server
59
59
```
60
60
61
+
The stdio server accepts both MCP `Content-Length` framing and newline-delimited JSON-RPC input. It replies with the same framing style as the current request, so older OpenClaw-style clients and simpler NDJSON supervisors can use the same binary.
62
+
61
63
Config example:
62
64
63
65
```json
@@ -248,3 +250,4 @@ If MCP fails:
248
250
-`kmsg mcp-server`
249
251
-`kmsg status`
250
252
- confirm Accessibility permission and KakaoTalk readiness
253
+
- if a client sends JSON lines instead of `Content-Length` frames, keep one JSON-RPC request per line
0 commit comments