
yidhar/stellaris-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Native Hook Bridge 및 Model Context Protocol (MCP) 서버
개요
stellaris-mcp는 기본 게임 브리지이며 Model Context Protocol (MCP) 서버 ())입니다. AI Agent(Claude Desktop, Cursor, Antigravity, etc.) 및 보강 학습 프레임 워크를 사용하여 네이티브 세터미즘, 제로 OCR 레이시 및 전체 스레드 안전과 Stellaris를 탐지, 분석 및 재생할 수 있습니다. 이것은 비공식 연구 및 에이전트 게임 프로젝트입니다. Paradox Interactive에 의해 또는 승인되지 않습니다. Bridge는 Windows에서 stellaris.exe로 처리 DLL 주입을 통해 작동합니다. 항상 사용하기 전에 저장 파일을 백업합니다. 체계는 3개의 1 차적인 디자인 필요조건의 주위에 설계됩니다: 1.: Stellaris는 외부 기억 조작을 위해 실 안전하지 않습니다. 브리지 후크 IDXGISwapChain::민숙을 통해 존재합니다. 상태 쿼리 및 명령 파견은 스레드 안전 TaskQueue로 처리되며 엔진의 주요 렌더링 실에 독점적으로 처리됩니다. 2.: 게임 활동은 clumsy 쥐/keyboard 누르기를 통해서 결코 가장되지 않습니다.
개요(AI 번역)
stellaris-mcp는 Stellaris(St)의 기본 게임 브리지와 모델 콘텍스 프로토콜(MCP) 서버입니다. AI Agent(Claude Desktop, Cursor, Antigravity, etc.) 및 보강 학습 프레임 워크를 사용하여 네이티브 세터미즘, 제로 OCR 레이시 및 전체 스레드 안전과 Stellaris를 탐지, 분석 및 재생할 수 있습니다.
[!수신] 이것은 비공식적인 연구 및 대리인 게임 프로젝트입니다. Paradox Interactive에 의해 또는 승인되지 않습니다. Bridge는 Windows에서
stellaris.exe]로 처리 DLL 주입을 통해 작동합니다. 항상 사용하기 전에 저장 파일을 백업합니다.
건축 개요
체계는 3개의 1 차적인 디자인 필요조건의 주위에 설계됩니다:
1.Thread Safety & Stability: Stellaris는 외부 메모리 조작을 위해 스레드 안전하지 않습니다. 다리 후크 IDXGISwapChain::Present MinHook을 통해. 상태 쿼리 및 명령 파견은 스레드 안전 TaskQueue]에 enqueued 엔진의 주요 렌더링 스레드에서만 처리됩니다.
2. ** 통계 Native Commands**: 경기 행동은 clumsy mouse/keyboard click를 통해 결코 시뮬레이션되지 않습니다.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Stellaris MCP Bridge
stellaris-mcp is a native game bridge and Model Context Protocol (MCP) server for Stellaris (群星). It enables AI agents (Claude Desktop, Cursor, Antigravity, etc.) and reinforcement learning frameworks to perceive, analyze, and play Stellaris with native determinism, zero OCR latency, and full thread safety.
[!WARNING] This is an unofficial research and agentic gaming project. It is not affiliated with or endorsed by Paradox Interactive. The Bridge operates via in-process DLL injection into
stellaris.exeon Windows. Always back up your save files before use.
Architecture Overview
flowchart LR
subgraph Agent Layer
C[MCP ClientClaude Desktop / Cursor / AGY]
end
subgraph MCP Server Layer
S[TypeScript MCP Serverstdio transport]
P[Named Pipe ClientIPC Client]
S P
end
subgraph Native Bridge Layer
N[stellaris_bridge.dll]
H[DXGI SwapChain HookMinHook]
Q[Main-Thread Task Queue]
I[Named Pipe IPC Serverstellaris_bridge_pipe]
M[Domain ManagersTech / Fleets / Leaders / etc.]
end
subgraph Game Process
G[Stellaris Enginestellaris.exe]
end
C |JSON-RPC 2.0 / stdio| S
P |Windows Named Pipe| I
I -->|Enqueues Task| Q
H -->|Frame Render Tick| Q
Q -->|Executes on Main Thread| M
M |Direct Memory & Commands| G
The system is engineered around three primary design requirements:
- Thread Safety & Stability: Stellaris is not thread-safe for external memory manipulation. The bridge hooks
IDXGISwapChain::Presentvia MinHook. State queries and command dispatches are enqueued into a thread-safeTaskQueueand processed exclusively on the engine’s main rendering thread. - Deterministic Native Commands: Game actions are never simulated through clumsy mouse/keyboard clicks. Instead, they are instantiated as native Clauswitz engine command objects (
CPauseCommand,CSelectResearchCommand,CHireLeaderCommand,CReinforceFleetCommand, etc.) and dispatched through the engine’s internal command processor. - Progressive Disclosure Architecture: To prevent context window bloat and token exhaustion, game observation is structured into 3 distinct layers:
- Layer 1: Global Perception (
stellaris_get_status): Compact, high-density snapshot covering date, simulation speed, pause state, empire capacity, all 26 resource flows, and summary indicators.
- Layer 1: Global Perception (
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"stellaris": {
"command": "node",
"args": [
"C:\\Users\\<you>\\Documents\\Paradox Interactive\\Stellaris\\plugins\\stellaris-mcp\\mcp-server\\dist\\index.js"
]
}
}
}