Unpredictable Lord

Lord Advisor AI Simulation ๐Ÿฐ๐ŸŽฎ
๐ŸŽฏ Overview: A turn-based advisor game where players propose policies and counsel a lord AI. ๐Ÿค
โš–๏ธ Decisions depend on lord personality, advisor trust, and current state โ€” affecting resources, population, and morale. ๐Ÿ“ˆ๐Ÿ“‰
๐Ÿ† Win by expanding territory, earning royal favor, or growing wealth; โš ๏ธ beware rebellion, exile, or bankruptcy. ๐Ÿ’€๐Ÿ‘‘๐Ÿ’ฐ

MCP Server Guide

This application functions as an MCP (Model Context Protocol) Server. External LLMs can connect to this server and use game management tools.

Connection URL

https://mcp-1st-birthday-unpredictable-lord.hf.space/gradio_api/mcp/

For local development:

http://localhost:7860/gradio_api/mcp/

How to Connect

Add the following to your MCP settings configuration.

VS Code

{
  "servers": {
    "unpredictable-lord": {
      "url": "https://mcp-1st-birthday-unpredictable-lord.hf.space/gradio_api/mcp/"
      "type": "http"
    }
  },
  "inputs": []
}

Claude Desktop / Cursor

{
  "mcpServers": {
    "unpredictable-lord": {
      "url": "https://mcp-1st-birthday-unpredictable-lord.hf.space/gradio_api/mcp/"
    }
  }
}

Available Tools

Tool Description
unpredictable_lord_init_game Initialize a new game session. Returns a session_id and available advice options.
unpredictable_lord_get_game_state Get the current game state for a session.
unpredictable_lord_list_available_advice Get all available advice options for execute_turn.
unpredictable_lord_execute_turn Execute a turn with the given advice. Returns whether advice was adopted and results.

Usage Flow

  1. Call unpredictable_lord_init_game(<personality>) to start a new game session
  2. User gives advice to the Lord AI
  3. Lord AI interprets advice and calls unpredictable_lord_execute_turn(session_id, advice)
  4. Lord AI explains the result to the user (adopted/rejected, action taken, effects)
  5. Repeat from step 2 until game over

Test: Initialize Game

Lord Personality

Test: Get Game State

Test: List Available Advice

Test: Execute Turn

Advice