- Add get_world_state AI command that dumps ECS entities with Transform, Camera, Material, Light, and Mesh summaries. - Add set_material AI command to update albedo/roughness/metallic/texture. - Expose both commands as MCP HTTP tools and stdio tools. - Add Light component and support up to 4 directional lights via a Vulkan uniform buffer (descriptor set 0) with std140 layout. - Move per-frame lighting/camera data into the uniform buffer; push constants now carry only MVP + material properties (96 bytes). - Add Texture class for PNG loading and Vulkan image/view/sampler creation. - Add per-entity combined image sampler descriptor set (set 1) and use it for albedo texture sampling in the fragment shader. - Generate a checkerboard floor texture in Program.cs. - Add McpStdioServer for headless stdio MCP (Claude Desktop compatible). - Add claude_desktop_config.json and scripts/start_mcp_engine.sh. - Update CORTEX_ENGINE_ARCHITECTURE.md with runtime notes, CLI arguments, Vulkan pipeline details, and MCP client configuration. - All configs (Debug/Release/ReleaseAOT) build successfully.
13 lines
403 B
Bash
Executable File
13 lines
403 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Start the Cortex Engine with the HTTP MCP server enabled.
|
|
|
|
PORT="${1:-5000}"
|
|
ENGINE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
|
|
export DISPLAY="${DISPLAY:-:0}"
|
|
export DOTNET_ROOT="${DOTNET_ROOT:-$HOME/.dotnet}"
|
|
export PATH="$DOTNET_ROOT:$PATH"
|
|
|
|
cd "$ENGINE_DIR"
|
|
exec dotnet run --project "$ENGINE_DIR/src/CortexEngine.App/CortexEngine.App.csproj" -- --mcp-port "$PORT"
|