HT

hunter-thompson/stardew-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

173 stars 13 forks 품질 45 트렌드 17

모델 컨텍스트 프로토콜(MCP)을 통해 스타듀 밸리와 AI 어시스턴트를 연결하는 하이브리드 AI 제어 게임 모드입니다.

개요

모델 컨텍스트 프로토콜(MCP)을 통해 스타듀 밸리와 AI 어시스턴트를 연결하는 하이브리드 AI 제어 게임 모드입니다. 실시간 게임 상태 동기화를 통해 자율 AI 에이전트가 스타듀 밸리를 제어하고 플레이할 수 있게 합니다. - 스타듀 밸리 (게임) - SMAPI (스타듀 모딩 API) v4.0.0+ - .NET 6.0 SDK - Go 1.23+ - GitHub Copilot 접근 권한 (Copilot SDK를 통한 Claude Sonnet 사용 이 StardewMCP.dll 컴파일되어 bin/Debug/net6.0/에 배치됩니다. 이로 인해 Stardew-mcp 실행 파일이 생성됩니다. 1. 모드 빌드(위 참조) 2. 전체 mod/StardewMCP/bin/Debug/net6.0/ 폴더를 Stardew Valley mods 디렉터리로 복사하세요: - : %AppData%\StardewValley\Mods\StardewMCP\ - : ~/.config/StardewValley/Mods/StardewMCP/ - : ~/.config/StardewValley/Mods/StardewMCP/ 3. 같은 폴더에 manifest.json 복사하세요 SMAPI를 통해 게임을 실행하세요. 모드가 자동으로 WebSocket 서버를 ws://localhost:8765/game 에서 시작합니다. 모드는 게임 세이브에 불러오면 활성화됩니다.

개요(AI 번역)

모델 컨텍스트 프로토콜(MCP)을 통해 스타듀 밸리와 AI 어시스턴트를 연결하는 하이브리드 AI 제어 게임 모드입니다. 실시간 게임 상태 동기화를 통해 자율 AI 에이전트가 스타듀 밸리를 제어하고 플레이할 수 있게 합니다.

건축

선수 조건

SMAPI 모드를 위해

  • 스타듀 밸리 (게임)
  • SMAPI (스타듀 모딩 API) v4.0.0+
  • .NET 6.0 SDK

MCP 서버를 위해

  • Go 1.23+
  • GitHub Copilot 접근 권한 (Copilot SDK를 통한 Claude Sonnet용 서비스)

건물

1. C# 모드를 빌드하세요

이 방법은 StardewMCP.dll를 합산하여 bin/Debug/net6.0/에 배치합니다.

2. Go MCP 서버 구축

이로 인해 stardew-mcp 실행 파일이 생성됩니다.

설치

SMAPI 모드를 설치하세요

  1. 모드를 조립하기(위 참조)
  2. 전체 [mod/StardewMCP/bin/Debug/net6.0/ 폴더를 Stardew Valley 모드 디렉토리로 복사하세요:
  • Windows: %AppData%\StardewValley\Mods\StardewMCP\
  • macOS: ~/.config/StardewValley/Mods/StardewMCP/
  • Linux: ~/.config/StardewValley/Mods/StardewMCP/
  1. manifest.json를 같은 폴더로 복사합니다

또는 SMAPI의 모드 폴더 구조를 사용할 수도 있습니다:

사용

1. 스타듀 밸리를 SMAPI로 시작하세요

SMAPI를 통해 게임을 실행하세요.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Stardew Valley MCP Bridge

A hybrid AI-controlled game mod that bridges Stardew Valley with AI assistants via the Model Context Protocol (MCP). Enables autonomous AI agents to control and play Stardew Valley through real-time game state synchronization.

Architecture

┌─────────────────────────────────────────────────────────┐
│ STARDEW VALLEY (Game)                                   │
│   SMAPI Mod (C# .NET 6)                                 │
│     ModEntry → GameStateSerializer                      │
│              → CommandExecutor (w/ Pathfinder)          │
│              → WebSocketServer                          │
└─────────────────────────────────────────────────────────┘
              ↕ ws://localhost:8765/game
┌─────────────────────────────────────────────────────────┐
│ MCP Server (Go)                                         │
│   GameClient: WebSocket connection, state tracking      │
│   StardewAgent: 12 tools + 30 cheats, autonomous loop   │
└─────────────────────────────────────────────────────────┘
              ↕ Copilot SDK
┌─────────────────────────────────────────────────────────┐
│ Claude Sonnet (via GitHub Copilot SDK)                  │
└─────────────────────────────────────────────────────────┘

Prerequisites

For the SMAPI Mod

For the MCP Server

  • Go 1.23+
  • GitHub Copilot access (for Claude Sonnet via Copilot SDK)

Building

1. Build the C# Mod

cd mod/StardewMCP
dotnet build

This compiles StardewMCP.dll and places it in bin/Debug/net6.0/.

2. Build the Go MCP Server

cd mcp-server
go build -o stardew-mcp

This produces the stardew-mcp executable.

Installation

Install the SMAPI Mod

  1. Build the mod (see above)
  2. Copy the entire mod/StardewMCP/bin/Debug/net6.0/ folder to your Stardew Valley mods directory:
    • Windows: %AppData%\StardewValley\Mods\StardewMCP\
    • macOS: ~/.config/StardewValley/Mods/StardewMCP/
    • Linux: ~/.config/StardewValley/Mods/StardewMCP/
  3. Copy manifest.json to the same folder

Or use SMAPI’s mod folder structure:

Mods/
└── StardewMCP/
    ├── manifest.json
    ├── StardewMCP.dll
    └── (other build outputs)

Usage

1. Start Stardew Valley with SMAPI

Launch the game through SMAPI. The mod will automatically start a WebSocket server on ws://localhost:8765/game.

2. Load a Save File

The mod activates once you load into a game save.

3. Run the MCP Server

cd mcp-server
./stardew-mcp                    # Run with default autonomous mode
./stardew-mcp -auto=false        # Connect without starting AI agent
./stardew-mcp -goal "Clear the farm and plant parsnips"
./stardew-mcp -url ws://localhost:8765/game  # Custom WebSocket URL

The server connects to the game via WebSocket and begins the autonomous AI agent loop.

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →