RaidShadowLegendsButItsMCP

RaidShadowLegendsButItsMCP

0

The project is an MCP server designed to automate Raid Shadow Legends gameplay through Tasker integration. It provides REST API control, MQTT communication, and tools for managing automation tasks within the game.

Overview

This project provides an MCP server that integrates with Tasker automation for Raid Shadow Legends. It allows you to:

  • Control Raid Shadow Legends automation via MCP tools
  • Set automation goals through a REST API
  • Monitor game status via MQTT
  • Interact with Tasker projects

Prerequisites

  • Node.js 18+
  • MQTT broker running on port 9900
  • Tasker installed on an Android device with the Raid automation project
  • The Tasker project should be configured to listen to MQTT topics

Configuration

The MCP server connects to an MQTT broker to communicate with Tasker. By default, it connects to http://localhost:9900/mqtt. To change this, modify the MQTT_SERVER_URL in both src/index.ts and src/RaidShadowLegendsButItsMCP.ts.

MCP Tools

  • RaidShadowLegendsControl: Send automation commands
  • RaidShadowLegendsStatus: Get current game status
  • RaidShadowLegendsSetGoal: Set automation goals

MQTT Topics

  • commands/raid: General commands for the game
  • commands/raid/goals: Goal settings
  • status/raid: Status updates from the game

Tasker Integration

The Tasker project should be configured to:

  1. Subscribe to the MQTT topics
  2. Parse and execute commands
  3. Publish status updates back to the MQTT broker

Available Commands

  • raid_start: Start the Raid Shadow Legends app
  • clan_boss: Navigate to and battle the Clan Boss
  • raid_auto_toggle: Toggle auto-battle mode
  • raid_end: End the current battle
  • raid_lock_toggle: Toggle screen lock