Courtship MCP server
2026년 11월 7일 커밋LOVE (Lua) 게임을 제어하고 검사할 수 있는 효율성 중심의 MCP 런타임 및 벤치마킹 하네스를 제공합니다.
다른 이름 grimmdev/Courtship
- 스타
- 0
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- 1.0.2
- 마지막 커밋
- 2026년 11월 7일
- 라이선스
- Apache-2.0
Courtship MCP란?
Courtship은(는) MCP server입니다. LOVE (Lua) 게임을 제어하고 검사할 수 있는 효율성 중심의 MCP 런타임 및 벤치마킹 하네스를 제공합니다.
프로젝트 README에서 생성된 요약
Courtship MCP server 정보
Courtship은 LOVE (Lua) 게임을 개발하는 개발자를 위해 설계된 특화된 MCP 런타임 및 벤치마킹 하네스입니다. Claude Desktop 또는 Cursor와 같은 AI 클라이언트와 실제 게임 환경 사이에서 효율성을 관리하는 프록시 역할을 수행합니다. 에이전트에 전달되는 데이터를 관리함으로써 컨텍스트 팽창을 방지하며, 대규모 엔티티 그래프를 가지치기하고 스크린샷을 압축하는 응답 셰이핑 시스템을 통해 토큰 비용을 절감합니다.
사용자는 이를 네이티브 정적 바이너리 또는 Docker를 통해 배포할 수 있습니다. 이 서버는 키보드 입력을 시뮬레이션하는 Agent Joypad, 물리 테스트를 위한 결정론적 프레임 스텝핑, 에이전트가 연결을 끊지 않고 오류에서 복구할 수 있도록 하는 안전한 충돌 진단 등 게임 조작에 필수적인 도구를 제공합니다. 또한 빠른 검색을 위해 SQLite FTS5를 사용하는 LOVE 12 API 문서의 오프라인 인덱스도 포함하고 있습니다. 이를 통해 자동화된 게임 테스트, 디버깅 및 개발을 위한 포괄적인 환경을 구축합니다.
활용 사례
- 1플레이어 이동 시뮬레이션AI 에이전트가 타이밍에 맞춘 키보드 시퀀스를 수행하여 점프나 걷기 같은 게임 메커니즘을 테스트할 수 있습니다.
- 2게임 충돌 디버깅버그가 발생하면 에이전트가 스택 트레이스와 로컬 변수를 검사하여 핫픽스를 적용할 수 있습니다.
- 3물리 일관성 검증개발자는 고정 델타 타임 스텝핑을 사용하여 타이밍 지터 없이 플랫폼 게임의 물리 및 충돌이 검증되는지 확인할 수 있습니다.
- 4토큰 소비 감소서버가 빈 필드를 제거하고 객체 깊이를 제한하여 AI로 전송되는 데이터 양을 조절합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
Courtship MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 Courtship MCP 설치
$ claude mcp add courtship -- docker run -i --rm ghcr.io/grimmdev/courtship:1.0.2Cursor에 Courtship MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"courtship": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/grimmdev/courtship:1.0.2"
]
}
}
}VS Code에 Courtship MCP 설치
.vscode/mcp.json
{
"servers": {
"courtship": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/grimmdev/courtship:1.0.2"
]
}
}
}VS Code CLI에 Courtship MCP 설치
$ code --add-mcp '{"name":"courtship","type":"stdio","command":"docker","args":["run","-i","--rm","ghcr.io/grimmdev/courtship:1.0.2"]}'Claude Desktop에 Courtship MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"courtship": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/grimmdev/courtship:1.0.2"
]
}
}
}Codex에 Courtship MCP 설치
$ codex mcp add courtship -- docker run -i --rm ghcr.io/grimmdev/courtship:1.0.2Codex config.toml에 Courtship MCP 설치
~/.codex/config.toml
[mcp_servers.courtship] command = "docker" args = ["run", "-i", "--rm", "ghcr.io/grimmdev/courtship:1.0.2"]
Gemini CLI에 Courtship MCP 설치
$ gemini mcp add -s user courtship docker -- run -i --rm ghcr.io/grimmdev/courtship:1.0.2Gemini settings.json에 Courtship MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"courtship": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/grimmdev/courtship:1.0.2"
]
}
}
}자동 검사
2026년 11월 14일에 실행됨전체 보고서 →아직 인증되지 않았습니다. 서버는 80점 이상의 점수, 심각한 결함 없음, 그리고 검사에 충분한 데이터를 갖추어야 합니다. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능grimmdev/courtship is public and reachablegithub.com/grimmdev/courtship ↗통과
- 패키지가 이 저장소를 소스로 명시검사되지 않음
- 빌드 출처(Sigstore 증명)검사되지 않음
- 오픈 소스 라이선스 (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-11-07github.com/grimmdev/courtship ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음검사되지 않음
- 패키지 및 해당 종속성에 중요한 보안 권고 없음검사되지 않음
- 모델에 대한 숨겨진 지침 없음0 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 원격 엔드포인트가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기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 질문
Courtship MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add courtship -- docker run -i --rm ghcr.io/grimmdev/courtship:1.0.2를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
Courtship MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
개발 중 게임이 충돌하는 것을 Courtship이 방지할 수 있나요?
네, 표준 에러 핸들러를 교체하여 프로세스를 종료하는 대신 실행을 일시 중지하고 스택 트레이스와 로컬 변수가 포함된 진단 HUD를 제공합니다.