tinySA_mcp
0
This project is an MCP server for controlling the TinySA device through a serial port. It provides various MCP tools for connecting, commanding, and interacting with the device, using a Tkinter-based GUI for user interaction and threading for concurrent operations.
Overview
This project is an MCP server designed to operate a TinySA device via a serial port. It uses Python libraries like pyserial, httpx, numpy, Pillow, and FastMCP to provide a tool-based interface for connecting to the device, executing commands, and retrieving device version information.
Features
- Send commands and retrieve responses from the device.
- Retrieve firmware and hardware version information.
- Exposes MCP tools for integration with other systems.
- Supports image capture from the device screen, with optional file saving.
MCP Tools
- get_version: Retrieve version information from the TinySA device.
- execute_command: Send a command to the TinySA device and get the response.
- connect: Connect to the TinySA device on a specified port.
- disconnect: Disconnect the TinySA device.
- get_device_info: Retrieve detailed information about the connected device.
- capture_image: Capture the TinySA screen image and optionally save it.
Troubleshooting
- Connection Issues: Ensure the correct serial port is used and user permissions are adequate.
- Command Failures: Check MCP server logs for errors.
- Image Capture: Confirm sufficient data (307200 bytes) during image capture. Refer to the Model Context Protocol documentation for more details.