picocalc-mcp

v0.1.1
io.github.LofiFren/picocalc-mcp Checked 4 days ago Published 8 months ago

AI assistant access to PicoCalc MicroPython hardware over USB.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

picocalc_status

Check PicoCalc device connection status, RAM, SD card, and firmware version.

picocalc_exec

Execute MicroPython code on the PicoCalc device. Returns stdout and stderr. Use for testing, debugging, reading sensors, or running one-off commands. 30 second timeout -- do not use for launching apps with main loops.

ParameterTypeDescription
code *stringPython code to execute on the device

picocalc_push

Push a local file to the PicoCalc device. The local_path is relative to the MicroPython/ directory in the project.

ParameterTypeDescription
local_path *stringLocal file path relative to MicroPython/ dir (e.g. sd/py_scripts/my_app.py)
remote_path *stringDevice path (e.g. /sd/py_scripts/my_app.py)

picocalc_list_files

List files on the PicoCalc device at a given path. Returns file names, types, and sizes.

ParameterTypeDescription
pathstringDevice directory path (default: /sd/py_scripts)

picocalc_read_file

Read a file from the PicoCalc device and return its contents.

ParameterTypeDescription
path *stringDevice file path (e.g. /sd/py_scripts/synth.py)

picocalc_reset

Soft reset the PicoCalc device. Re-runs boot.py and main.py.