Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.01 KB

File metadata and controls

29 lines (24 loc) · 1.01 KB

CLAUDE.md - Godot MCP Project Guidelines

Build & Run Commands

  • Server Build: cd server && npm run build
  • Server Start: cd server && npm run start
  • Server Dev Mode: cd server && npm run dev (auto-rebuild on changes)
  • Run Godot Project: Open project.godot in Godot Editor

Code Style Guidelines

TypeScript (Server)

  • Use camelCase for variables, methods, and function names
  • Use PascalCase for classes/interfaces
  • Strong typing: avoid any type
  • Prefer async/await over Promise chains
  • Import structure: Node modules first, then local modules

GDScript (Godot)

  • Use snake_case for variables, methods, and function names
  • Use PascalCase for classes
  • Use type hints where possible: var player: Player
  • Follow Godot singleton conventions (e.g., Engine, OS)
  • Prefer signals for communication between nodes

General

  • Use descriptive names
  • Keep functions small and focused
  • Add comments for complex logic
  • Error handling: prefer try/catch in TS, use assertions in GDScript