Skip to main content

Module socket_server

Module socket_server 

Source
Expand description

Socket Server - 运行在 Native Host 进程中

架构: Chrome 扩展 → Native Messaging → Native Host (包含此 Socket Server) ← Socket ← MCP Client

平台支持:

  • Unix: 使用 Unix Domain Socket
  • Windows: 使用 Named Pipe

Structs§

NativeMessageReader
Native Message Reader - 从 stdin 读取 Native Messaging 消息
SocketServer
Socket Server - 管理与 MCP 客户端的连接

Functions§

run_native_host
运行 Native Host 主循环