Skip to main content

Local development server for SorcGCS — game preview, file management, and AI agent support

Project description

sorcgcs-server

Local development server for SorcGCS (Sorceress) — game preview, file management, AI code agent support, and GPU-powered green screen removal.

Quick Start

# Using uv (fastest)
uvx sorcgcs-server

# Using pipx
pipx run sorcgcs-server

# Or install and run
pip install sorcgcs-server
sorcgcs-server

One command sets up everything:

  • The local file server (game preview, file API, agent support)
  • The CorridorKey GPU server for AutoSprite green screen removal

On first run, CorridorKey setup runs automatically — clones the repo, downloads the model (~300MB), and installs GPU dependencies (PyTorch).

Options

sorcgcs-server --port 8080       # Custom port (default: 8080)
sorcgcs-server --dir ./games     # Serve a specific directory
sorcgcs-server --no-corridorkey  # Skip CorridorKey GPU server
sorcgcs-server --version         # Show version

What It Does

Local File Server (port 8080)

Lightweight HTTP server (Python stdlib, no dependencies) that provides:

  • Game Preview — Serve HTML5 games with live reload support
  • File API — Read, write, list, search, and manage project files
  • FFmpeg Integration — Audio/video format conversion (if ffmpeg is installed)
  • AI Agent Support — Endpoints for the SorcGCS AI code agent
  • Checkpoint System — Create and restore file snapshots

CorridorKey GPU Server (port 8100)

Neural green screen removal powered by CorridorKey:

  • Auto-setup — Clones repo, downloads model, installs PyTorch on first run
  • GPU inference — NVIDIA CUDA, Apple MPS, or CPU fallback
  • Runs alongside the main server as a background process

Requires: GPU (NVIDIA or Apple Silicon recommended), ~2GB disk, ~4GB VRAM.

API Endpoints

Main Server

Method Path Description
GET /api/status Server status and config
GET /api/games List available games
GET /preview/* Serve game preview files
GET /games/* Serve game files
POST /api/read-file Read a file
POST /api/write-file Write a file
POST /api/list-dir List directory contents
POST /api/search-files Search files by glob pattern
POST /api/run-command Execute a shell command
POST /api/create-dir Create a directory
POST /api/delete-file Delete a file
POST /api/rename-file Rename/move a file
POST /api/ffmpeg-process Process media with FFmpeg

CorridorKey Server

Method Path Description
GET /health GPU server health + VRAM info
POST /process Process image for green screen removal

Requirements

  • Python 3.8+
  • No additional dependencies for the file server (uses Python standard library only)
  • GPU with CUDA or MPS for CorridorKey (optional — use --no-corridorkey to skip)
  • FFmpeg (optional, for media processing)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sorcgcs_server-0.5.3.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sorcgcs_server-0.5.3-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file sorcgcs_server-0.5.3.tar.gz.

File metadata

  • Download URL: sorcgcs_server-0.5.3.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for sorcgcs_server-0.5.3.tar.gz
Algorithm Hash digest
SHA256 fdbfa7579e0bc98ed859d8583cc2435b153f4a32b78d229a5791f7cc74c19fb4
MD5 4003357505aa2fc2824b67775042ce09
BLAKE2b-256 491a6fa5908f00d2cf891ea0105d64f7e9b05984f5e56867fd11e4a391da3632

See more details on using hashes here.

File details

Details for the file sorcgcs_server-0.5.3-py3-none-any.whl.

File metadata

  • Download URL: sorcgcs_server-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for sorcgcs_server-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bcb0c17457ccbce74a8395389eeebf1b26096a51e4af9477bda81f4c6062baa6
MD5 52242f9bdcb18b979c6169af621a45ba
BLAKE2b-256 da91d2e6d3d736f8277637ae367488e1c026e5095af90f55b14cf6dd1cd90111

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page