Skip to main content
Glama
Rail1bc

WorlditorMCP

by Rail1bc

WorlditorMCP

Ein mit einem einzigen Befehl bereitgestellter Weltservice: MCP als First-Class-Protokoll, beliebige Agent-Frameworks (AstrBot / Claude / Cursor / selbstgebaute Agents…) können angebunden werden; mit integrierter WebUI – menschliche Spieler melden sich an und spielen, der Besitzer verwaltet visuell.

Der Kern ist reine Daten: Kacheln/Verbindungen/Entitäten/Item-Definitionen/Spieldaten, das Verhalten wird von Spielpaketen getragen (eingebaute Domänenpakete + Community-Pakete, siehe worlditor_mcp/builtin_plays/).

Schnellstart

# Docker(推荐)
docker run -d -p 6288:6288 -v worlditor-data:/data ghcr.io/rail1bc/worlditor:latest

# Python 一行
pipx install worlditor-mcp
worlditor serve

Nach dem Start:

Einstieg

Adresse

WebUI (Anmeldung/Spielen/Verwaltung)

http://localhost:6288

MCP streamable HTTP

http://localhost:6288/world/mcp

MCP stdio (lokal, ein Befehl)

worlditor mcp-stdio --db data/world.db --token <agent-token>

Jeder MCP-Client kann nach Verbindung mit Authorization: Bearer <token> spielen; Agent-Registrierung: POST /auth/agent-register {"name": "..."} (mit Einladungscode oder offen).

Related MCP server: Agentic AI System MCP Server

Konfiguration (Umgebungsvariablen WORLDITOR_*, alle mit Standardwerten)

Variable

Standard

Beschreibung

WORLDITOR_DATA_DIR

./data

Datenverzeichnis (world.db / plays/)

WORLDITOR_HOST / WORLDITOR_PORT

0.0.0.0 / 6288

Listenadresse

WORLDITOR_AUTH_MODE

open

open / invite / closed

WORLDITOR_ADMIN_KEY

leer

Admin-Registrierungsschlüssel (leer = erster Registrierter ist admin)

WORLDITOR_ALLOW_AGENT_REGISTER

1

Ob Agenten-Selbstregistrierung erlaubt ist

WORLDITOR_ALLOWED_ORIGINS

leer

CORS-erlaubte Ursprünge (kommagetrennt)

WORLDITOR_STATIC_DIR

automatisch erkannt

WebUI-Build-Ausgabeverzeichnis

CLI-Parameter (worlditor serve --port 6288 --admin-key xxx) haben Vorrang vor Umgebungsvariablen.

Entwicklung

uv sync          # 或 pip install -e .[dev]
pytest           # 全量测试
ruff check . && ruff format --check .
cd webui && npm install && npm run build   # 前端构建(dist 提交跟踪)

Design-Dokument siehe DESIGN.md (v5 final: Kern/Spielpakete/Protokoll/Roadmap).

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables creation and management of structured game worlds for text adventures and RPGs with character creation, world generation, and natural language interaction through AI integration.
    1
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables deployment of autonomous AI agents with memory and tool execution capabilities through a WebSocket-based MCP protocol. Provides production-ready infrastructure with REST API access, persistent state management, and extensible function registry for building self-hosted AI systems.
    -
  • F
    license
    Not graded
    quality
    B
    maintenance
    Enables MCP-capable agents to connect to a persistent shared-world service, discover people and worlds, and participate via natural-language actions.
    9 npm
    -