@jagjerez-org/desktop-mcp-shared
v1.0.1
Published
Shared types and protocol definitions for desktop MCP server
Downloads
218
Maintainers
Readme
desktop-mcp-shared
Shared types and protocol definitions for the Desktop MCP Server and Agent.
Installation
npm install desktop-mcp-sharedWhat's included
- Protocol types: Command and response message types for mouse, keyboard, clipboard, shell, screen info
- ProtocolValidator: Validation utilities for protocol messages
- MessageBuilder: Factory for creating protocol messages
- Types: Connection status, frame capture, device info, signaling messages
Usage
import {
ProtocolValidator,
MessageBuilder,
CommandMessage,
ResponseMessage,
FrameCapture,
ConnectionStatus
} from 'desktop-mcp-shared';
// Validate a message
if (ProtocolValidator.isCommandMessage(data)) {
// handle command
}
// Build a mouse click message
const click = MessageBuilder.mouseClick(100, 200, 'left');Part of
- desktop-mcp-server — MCP server for LLM desktop control
- desktop-mcp-agent — Desktop agent (runs on target PC)
