Logo di ESP32 CYD MCP Server

ESP32 CYD MCP Server

Community
OfryL

Control esp cyd with mcp

AutoreOfryL
Repositoryesp-cyd-mcp
LinguaC++
Fork
3
Stelle
11
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
Link
  • Collega gli strumenti ai flussi di lavoro IA

    ESP32 CYD MCP Server mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    11 stelle e 3 fork nel repository collegato.

ESP32 CYD MCP Server

A comprehensive Model Context Protocol (MCP) server implementation for the ESP32 CYD (Cheap Yellow Display) board. This project provides extensive remote control capabilities for the ESP32-2432S028R board through a WebSocket-based MCP interface.

Features

MCP Server Core

  • WebSocket-based MCP protocol implementation
  • JSON-RPC 2.0 compliant
  • Real-time bidirectional communication
  • Multiple client support
  • Event notifications

Tool Categories

Display Tools (20+ tools)

  • display.clear - Clear screen with color
  • display.text - Draw text with positioning and styling
  • display.line - Draw lines with thickness
  • display.rectangle - Draw rectangle outlines
  • display.fillRectangle - Draw filled rectangles
  • display.circle - Draw circle outlines
  • display.fillCircle - Draw filled circles
  • display.pixel - Draw individual pixels
  • display.backlight - Control backlight on/off
  • display.brightness - Set display brightness (0-255)
  • display.rotation - Set display rotation (0-3)
  • display.progressBar - Draw progress bars
  • display.info - Get display information

Touch Tools (10+ tools)

  • touch.getState - Get current touch state
  • touch.enable - Enable/disable touch input
  • touch.calibrate - Calibrate touch screen
  • touch.getHistory - Get recent touch events
  • touch.simulate - Simulate touch events
  • touch.getCalibration - Get calibration values
  • touch.saveCalibration - Save calibration to file
  • Gesture detection (swipe support)

GPIO Tools (15+ tools)

  • gpio.pinMode - Set pin mode (input/output/PWM)
  • gpio.digitalWrite - Write digital value
  • gpio.digitalRead - Read digital value
  • gpio.analogWrite - PWM output
  • gpio.analogRead - Read analog value
  • gpio.attachInterrupt - Attach interrupts
  • gpio.setPWM - Configure PWM with frequency
  • gpio.tone - Generate tones
  • gpio.pulseIn - Measure pulse duration

Sensor Tools (10+ tools)

  • sensor.readTemperature - Read temperature sensor
  • sensor.readLight - Read light sensor
  • sensor.readInternalTemp - ESP32 internal temperature
  • sensor.readHallSensor - Built-in hall sensor
  • sensor.readBatteryVoltage - Power supply voltage
  • sensor.readAll - Read all sensors at once
  • sensor.calibrate - Calibrate sensors
  • sensor.getEnvironment - Environmental summary

Network Tools (15+ tools)

  • network.status - Get network status
  • network.connect - Connect to WiFi
  • network.scan - Scan for networks
  • network.startAP - Start access point
  • network.httpRequest - Make HTTP requests
  • network.ping - Ping hosts
  • network.getTime - Get NTP time
  • network.setMDNS - Configure mDNS

System Tools (20+ tools)

  • system.info - Comprehensive system information
  • system.restart - Restart ESP32
  • system.sleep - Deep/light sleep modes
  • system.memory - Memory statistics
  • system.tasks - FreeRTOS task info
  • system.setCPUFrequency - CPU speed control
  • system.performanceMode - Performance optimization
  • system.factoryReset - Factory reset

File Tools (15+ tools)

  • file.list - List files/directories
  • file.read - Read file contents
  • file.write - Write to file
  • file.delete - Delete files
  • file.mkdir - Create directories
  • file.copy - Copy files
  • file.storage - Storage statistics
  • Support for SPIFFS and SD card

Audio Tools (15+ tools)

  • audio.tone - Play single tone
  • audio.playMelody - Play melodies
  • audio.beep - Simple beep sounds
  • audio.playPattern - Custom tone patterns
  • audio.notification - Notification sounds
  • audio.alarm - Alarm patterns
  • audio.setVolume - Volume control
  • Predefined melodies (Mario, Star Wars, etc.)

Hardware Requirements

  • ESP32-2432S028R (CYD) board
  • 2.8" ILI9341 TFT display (240x320)
  • XPT2046 resistive touch controller
  • Optional: SD card for file storage
  • Optional: External sensors (temperature, light)

Installation

  1. Install PlatformIO or Arduino IDE
  2. Clone this repository
  3. Open the project in PlatformIO
  4. Build and upload to your ESP32 CYD board
bash
git clone https://github.com/yourusername/esp32-cyd-mcp
cd esp32-cyd-mcp
pio run -t upload

Configuration

Edit include/config.h to customize:

  • WiFi credentials
  • Pin assignments
  • Server ports
  • Display settings
  • Sensor calibration

Usage

Connecting to the MCP Server

  1. Power on the ESP32 CYD board
  2. Connect to WiFi or use the AP mode
  3. Find the device IP address on the display
  4. Connect via WebSocket to ws://[IP]:3001

Example MCP Request

json
{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "tools/invoke",
  "params": {
    "name": "display.text",
    "arguments": {
      "text": "Hello MCP!",
      "x": 50,
      "y": 100,
      "color": "white",
      "size": 2
    }
  }
}

Using with Claude Desktop

Add to your Claude Desktop configuration:

json
{
  "mcpServers": {
    "esp32-cyd": {
      "command": "websocat",
      "args": ["ws://192.168.1.100:3001"]
    }
  }
}

API Documentation

Tool Invocation

All tools are invoked using the standard MCP tools/invoke method:

json
{
  "method": "tools/invoke",
  "params": {
    "name": "tool.name",
    "arguments": { ... }
  }
}

Event Notifications

The server sends notifications for various events:

  • touch.event - Touch input events
  • sensor.update - Periodic sensor updates
  • network.event - Network state changes
  • gpio.interrupt - GPIO interrupt events

Development

Adding New Tools

  1. Create header file in include/tools/
  2. Implement in src/tools/
  3. Register tools in the registerTools() method
  4. Add initialization in main.cpp

Project Structure

esp32-cyd-mcp/
├── include/
│   ├── config.h           # Configuration
│   ├── mcp_server.h       # MCP server core
│   └── tools/            # Tool headers
├── src/
│   ├── main.cpp          # Main application
│   ├── mcp_server.cpp    # MCP implementation
│   └── tools/           # Tool implementations
├── platformio.ini        # PlatformIO config
└── README.md

Troubleshooting

  • WiFi Connection Issues: Check credentials in config.h
  • Touch Not Working: Run touch calibration tool
  • Display Issues: Verify display rotation setting
  • Memory Issues: Monitor free heap, reduce tool usage

License

This project is open source and available under the MIT License.

Contributing

Contributions are welcome! Please submit pull requests or open issues for bugs and feature requests.

Acknowledgments

  • ESP32 community for hardware support
  • TFT_eSPI library for display drivers
  • MCP specification for protocol design

Installazione

TypingMind
Prerequisiti:

Node.js 18+

{
  "mcpServers": {
    "ofryl-esp-cyd-mcp": {
      "command": "",
      "args": []
    }
  }
}

Usa MCP ESP32 CYD MCP Server con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso ESP32 CYD MCP Server, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi ESP32 CYD MCP Server come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di ESP32 CYD MCP Server.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "ofryl-esp-cyd-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "esp-cyd-mcp"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di ESP32 CYD MCP Server, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di ESP32 CYD MCP Server.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare ESP32 CYD MCP Server per aiutarmi con questa attività?
ESP32 CYD MCP Server
Certo. Ho letto.
Ecco cosa ho trovato con ESP32 CYD MCP Server.

Domande frequenti

A cosa serve il server MCP ESP32 CYD MCP Server?

ESP32 CYD MCP Server è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare ESP32 CYD MCP Server MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare ESP32 CYD MCP Server con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP ESP32 CYD MCP Server con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando ESP32 CYD MCP Server, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego ESP32 CYD MCP Server MCP a TypingMind?

ESP32 CYD MCP Server funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre ESP32 CYD MCP Server MCP in TypingMind?

ESP32 CYD MCP Server mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare ESP32 CYD MCP Server MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se ESP32 CYD MCP Server richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇