Courtship MCP sunucusu
Commit 7 Kas 2026LOVE (Lua) oyunlarını kontrol etmek ve incelemek için verimlilik odaklı bir MCP çalışma zamanı ve kıyaslama aracı sunar.
Ayrıca bilinen adı grimmdev/Courtship
- Yıldızlar
- 0
- Araçlar
- —
- İndirmeler, 30 gün
- —
- En son sürüm
- 1.0.2
- Son commit
- 7 Kas 2026
- Lisans
- Apache-2.0
Courtship MCP nedir?
Courtship bir MCP sunucusudur. LOVE (Lua) oyunlarını kontrol etmek ve incelemek için verimlilik odaklı bir MCP çalışma zamanı ve kıyaslama aracı sunar.
Özet, projenin README dosyasından oluşturuldu
Courtship MCP sunucusu hakkında
Courtship, LOVE (Lua) oyunları üzerinde çalışan geliştiriciler için tasarlanmış özel bir MCP çalışma zamanı ve kıyaslama aracı olarak hizmet eder. Claude Desktop veya Cursor gibi bir AI istemcisi ile canlı oyun ortamı arasında verimlilik odaklı bir proxy görevi görür. Verilerin ajana nasıl aktarılacağını yöneterek, büyük varlık grafiklerini budayan ve ekran görüntülerini sıkıştıran bir yanıt şekillendirme sistemi sayesinde bağlam şişmesini (context bloat) önler ve token maliyetlerini düşürür.
Kullanıcılar bunu yerel bir statik binary olarak veya Docker aracılığıyla dağıtabilirler. Sunucu; klavye girişlerini simüle etmek için Agent Joypad, fizik testleri için deterministik kare adımlama (frame stepping) ve bir ajanın bağlantıyı koparmadan hatalardan kurtulmasını sağlayan güvenli çökme diyagnostiği dahil olmak üzere oyun manipülasyonu için temel araçlar sağlar. Ayrıca, hızlı arama için SQLite FTS5 kullanarak LOVE 12 API dokümantasyonunun çevrimdışı bir indeksini içerir. Bu da onu otomatik oyun testi, hata ayıklama ve geliştirme için kapsamlı bir ortam haline getirir.
Neler yapabilirsiniz
- 1Oyuncu hareketini simüle etmeBir AI ajanı, zıplama veya yürüme gibi oyun mekaniklerini test etmek için zamanlanmış klavye dizileri uygulayabilir.
- 2Oyun çökmelerini hata ayıklamaBir hata oluştuğunda, ajan bir hot-fix uygulamak için stack trace ve yerel değişkenleri inceleyebilir.
- 3Fizik tutarlılığını doğrulamaGeliştiriciler, platform oyunları fiziğinin ve çarpışmaların zamanlama titremesi (jitter) olmadan doğrulandığından emin olmak için sabit delta time stepping kullanabilirler.
- 4Token tüketimini azaltmaSunucu, boş alanları temizleyerek ve nesne derinliğini sınırlandırarak AI'ya gönderilen veri miktarını kısıtlar.
Projenin README dosyasından alınmıştır. Her kullanım durumu, oradaki bir alıntı ile kontrol edilir.
Courtship MCP nasıl yüklenir
Biçimler 10 Kas 2026 tarihinde doğrulandıCursor'a ekleGoose'a ekleCourtship MCP'yi Claude Code içine yükleyin
$ claude mcp add courtship -- docker run -i --rm ghcr.io/grimmdev/courtship:1.0.2Courtship MCP'yi Cursor içine yükleyin
~/.cursor/mcp.json
{
"mcpServers": {
"courtship": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/grimmdev/courtship:1.0.2"
]
}
}
}Courtship MCP'yi VS Code içine yükleyin
.vscode/mcp.json
{
"servers": {
"courtship": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/grimmdev/courtship:1.0.2"
]
}
}
}Courtship MCP'yi VS Code CLI içine yükleyin
$ code --add-mcp '{"name":"courtship","type":"stdio","command":"docker","args":["run","-i","--rm","ghcr.io/grimmdev/courtship:1.0.2"]}'Courtship MCP'yi Claude Desktop içine yükleyin
claude_desktop_config.json
{
"mcpServers": {
"courtship": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/grimmdev/courtship:1.0.2"
]
}
}
}Courtship MCP'yi Codex içine yükleyin
$ codex mcp add courtship -- docker run -i --rm ghcr.io/grimmdev/courtship:1.0.2Courtship MCP'yi Codex config.toml içine yükleyin
~/.codex/config.toml
[mcp_servers.courtship] command = "docker" args = ["run", "-i", "--rm", "ghcr.io/grimmdev/courtship:1.0.2"]
Courtship MCP'yi Gemini CLI içine yükleyin
$ gemini mcp add -s user courtship docker -- run -i --rm ghcr.io/grimmdev/courtship:1.0.2Courtship MCP'yi Gemini settings.json içine yükleyin
~/.gemini/settings.json
{
"mcpServers": {
"courtship": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/grimmdev/courtship:1.0.2"
]
}
}
}Otomatik kontroller
Çalıştırıldı 14 Kas 2026Tam rapor →Henüz doğrulanmadı. Bir sunucunun 80 puana, ciddi bir bulgu olmamasına ve kontrol edebilmemiz için yeterli veriye ihtiyacı vardır. Kontroller nasıl çalışır · Daha fazla puan için nelerin düzeltileceği
- Kaynak deposu bağlantılı ve erişilebilirgrimmdev/courtship is public and reachablegithub.com/grimmdev/courtship ↗Geçti
- Paket, bu depoyu kaynağı olarak gösteriyorKontrol edilmedi
- Derleme kökeni (Sigstore onayı)Kontrol edilmedi
- Açık kaynak lisansı (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗Geçti
- Son bir yıl içinde commit veya sürüm mevcutLast commit or release 2026-11-07github.com/grimmdev/courtship ↗Geçti
- OpenSSF ScorecardKontrol edilmedi
- Paket adı popüler bir pakete yakın değilKontrol edilmedi
- Pakette veya bağımlılıklarında kritik uyarı yokKontrol edilmedi
- Modele yönelik gizli talimat yok0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersGeçti
- Yıkıcı araçlar etiketlenmişKontrol edilmedi
- Uzak uç nokta MCP el sıkışmasına yanıt veriyorKontrol edilmedi
The protocol layer between your agent and your LOVE game.
courtship (court) is an all-in-one, efficiency-governed MCP runtime and task-level benchmarking harness for LOVE game development. It natively encapsulates live-game inspection, code execution, Agent Joypad input simulation, safe crash recovery, and an offline LOVE 12 API docs index in a single zero-dependency static binary, while also capable of acting as a governing efficiency proxy in front of existing upstream servers.
1. Problem & Thesis
The LOVE Model Context Protocol (MCP) ecosystem is functional but ungoverned. Raw bridges emit monolithic game state objects, eager documentation dumps, and hundreds of unpruned keys on every interaction, causing context bloat and runaway token cost.
Courtship acts as the measurement and remediation layer, proving three foundational claims:
| Claim | Goal | Empirically Measured | Status |
|---|---|---|---|
| 1. Standing Context Tax | Cut standing schema context by >=70% | 76.5% reduction (340 vs 1,450 tokens) | Proven |
| 2. Response Shaping Spend | Cut per-task token spend by >=40% | 53.4% average reduction | Proven |
| 3. Unified Router Efficiency | Beat separate MCP servers for mixed tasks | -40% latency, -33% calls via local FTS5 | Proven |
2. Architecture
+-----------------+ MCP (stdio/HTTP) +--------------------------------+
| AI Client |<---------------------------->| court proxy |
| (Claude Code, | ~340 token | +- meta-tools (5 standing) |
| Cursor, IDE) | standing surface | +- heuristic router |
+-----------------+ | +- response shaper & cursors |
| +- session token ledger |
| +- upstream pool manager |
+---------------+----------------+
| MCP
+-------------------------+--------------------------+
| | |
v v v
LovePilot LOVE 12 Docs Custom Game Servers
| (SQLite FTS5)
v
LOVE Game
(TCP 12345)
The proxy operates as a daemon with an internal registry, not a dumb passthrough. Tool schemas remain daemon-side until hydrated on-demand, expiring after N inactive turns.
3. GitHub MCP Registry & Client Setup
Courtship is published to the official Model Context Protocol (MCP) Registry under the verified namespace:
io.github.grimmdev/courtship
Installation in VS Code / Cursor / Claude Desktop
Option A: Native Binary (Fastest)
Download the binary from Releases or build via cargo build --release --bin court.
Add to your MCP client configuration (mcp.json or claude_desktop_config.json):
{
"mcpServers": {
"courtship": {
"command": "court",
"args": ["proxy"]
}
}
}
Option B: Containerized via Docker / GitHub Packages
Run without installing local dependencies:
{
"mcpServers": {
"courtship": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/grimmdev/courtship:latest"
]
}
}
}
4. Core Capabilities
4.1 Standing Surface (< 500 Tokens)
Only 5 compact meta-tools are exposed permanently in standing context (~340 tokens), keeping context clean while allowing the agent to discover or invoke any game tool on-demand:
discover_tools(query, limit): Fuzzy discovery without schema ingestion.load_tool_schema(name): Hydrates full JSON schema on-demand.call_tool(name, args): Executes tool through compression filters.love_task(goal, context): Intelligent intent router (docs vs inspect vs exec).report_usage(): Session token, call, and latency accounting.
4.2 Built-in Game Capabilities (Available via call_tool & discover_tools)
simulate_input(sequence): Agent Joypad: Dispatches timed keyboard inputs (press,keydown,keyup).step_frames(count, dt): Deterministic Frame Stepping: Advances physics by N ticks at fixed dt.get_last_crash(): Safe Crash Diagnostics: Non-fatal stack trace and locals recovery.clear_crash(): Resumes game loop after hot-patching.visual_diff(image_a, image_b): Visual Regression: Compares two screenshots and returns bounding boxes.get_objects(): Returns active entity coordinates and types in lean format.get_screenshot(): Returns downscaled, cropped PNG framebuffers.run_lua(code): Evaluates arbitrary Lua inside the game loop.
4.3 Safe Crash Interception (love.errhand override)
Prevents the infamous LOVE "Blue Screen of Death" from crashing the process or severing the MCP bridge when an agent introduces a bug:
- Replaces
love.errhandto pause execution and render an in-game diagnostic HUD rather than terminating. - Extracts offending source file, line number,
debug.traceback(), and active local variables. - Keeps the TCP socket listener active so the agent can inspect the failure via
get_last_crash(), write a fix, and hot-reload.
4.4 Agent Joypad & Deterministic Physics Verification
Enables agents to test game mechanics that require time and movement:
- Input Sequencing: Dispatches timed action series (e.g. hold
Dfor 1.2s, pressSpace, release). - Frame Stepping: Advances
love.update(dt)by exact frame counts at fixed delta time (default1/60), eliminating wall-clock jitter when validating platformer physics and collisions.
4.5 8-Rule Response Shaper
Every tool return and notification passes through deterministic shaping:
- Field Projection: Prunes entity graphs to
{id, type, name, x, y}. - Null/Empty Stripping: Drops empty arrays, objects, and empty strings.
- Depth Capping: Deep object graphs (>3 levels) collapsed to
"<table: N keys>". - Array Slicing & Cursors: Arrays >50 items sliced with cursor hints stored in memory.
- Token Ceiling: Automatically truncates and budgets payloads exceeding
max_tokens. - Screenshot Compression: Region crop and bilinear downscaling (0.5 default) to prevent vision token blowouts.
- Delta Mode: Continuous streams (
watch_game_state) suppress identical ticks to 0 tokens. - Doc Pruning: Strips wiki navigation chrome and deduplicates code samples.
4.6 Zero-Instrumentation Launcher (court run)
Wraps any existing LOVE game dynamically:
court run ./mygame --mcp-port 12345
Automatically mounts source files and hooks love.update, love.draw, and the bridge without modifying your repository. For manual integration, court init generates the 5-line inline hook.
5. Benchmark Results
Running court bench --compare lovepilot,courtship on reference suites:
task tokens calls p95ms turns success
--------------------------------------------------------------
fix-double-jump 316 2 110 2 PASS
spawn-coin 307 2 110 2 PASS
--------------------------------------------------------------
TOTAL (per task) 311 2 110 2 2/2
vs lovepilot -54.3% -33% -40% - -
Reference Suites Breakdown
platformer(physics simulation + jump logic): -54.3% tokensui_heavy(draw call stress + minimap + HUD): -52.1% tokensmenu_nested(deep 6-level UI entity tree): -53.9% tokens
6. CLI Reference
Run the MCP Proxy
court proxy --port 12345
court proxy --eager # Fallback exposing full upstream tools
Run Benchmarks & CI Regression Gates
# Compare candidate against raw baseline
court bench --suite ./suites/platformer.yaml --compare lovepilot,courtship
# Enforce CI gate (fails if regression exceeds threshold)
court bench --suite ./suites/platformer.yaml --ci --max-regression 10.0
# Submit signed benchmark to community leaderboard
court bench --suite ./suites/platformer.yaml --compare lovepilot,courtship --submit
Launch LOVE Game
court run ./fixtures/platformer
court run ./fixtures/platformer --shim-only
Offline Documentation Index
court docs search "rectangle"
court docs search "love.physics.newWorld"
Environment & Token Tax Audit
court doctor
court doctor --ci
7. Configuration (courtship.toml)
[proxy]
port = 12345
max_response_tokens = 1500
evict_after_turns = 6
delta_notifications = true
eager = false
[upstream.lovepilot]
transport = "stdio"
command = "uvx"
args = ["--from", "./love-mcp", "love-mcp-server"]
shape = { get_objects = "lean", get_screenshot = "scaled" }
[upstream.docs]
transport = "builtin"
index = "./lua54-love12.sqlite"
[bench]
suite_dir = "./suites"
baseline = ".courtship/baseline.json"
max_regression = "10%"
8. License
Dual-licensed under either:
- MIT License (LICENSE-MIT)
- Apache License, Version 2.0 (LICENSE-APACHE)
Courtship MCP soruları
Courtship MCP'yi Claude Code'a nasıl eklerim?
Terminalinizde claude mcp add courtship -- docker run -i --rm ghcr.io/grimmdev/courtship:1.0.2 komutunu çalıştırın. Her projede kullanılabilir olması için --scope user ekleyin.
Courtship MCP'yi Cursor'a nasıl eklerim?
~/.cursor/mcp.json dosyasını açın ve yukarıdaki yükleme bölümünde gösterilen Cursor yapılandırmasını kullanarak sunucuyu mcpServers altına ekleyin.
Courtship, geliştirme sırasında bir oyunun çökmesini engelleyebilir mi?
Evet; süreci sonlandırmak yerine, yürütmeyi duraklatmak ve stack trace ile yerel değişkenleri içeren bir diyagnostik HUD sunmak için standart hata işleyiciyi değiştirir.