Skip to main content
Glama
fritzprix
by fritzprix
types.ts1.02 kB
// Cube state representation export interface CubeState { faces: { front: string[][]; // 3x3 grid: ["R", "G", "B", ...] back: string[][]; left: string[][]; right: string[][]; top: string[][]; bottom: string[][]; }; solved: boolean; moveHistory: string[]; } // MCP Tool 응답 타입 export interface CubeResponse { gameId: string; cube: CubeState; scrambleMoves?: number; nextAction: 'manipulateCube' | 'finish' | null; } // 큐브 조작 명령 export type CubeMove = 'U' | 'D' | 'L' | 'R' | 'F' | 'B' | 'U\'' | 'D\'' | 'L\'' | 'R\'' | 'F\'' | 'B\'' | 'U2' | 'D2' | 'L2' | 'R2' | 'F2' | 'B2'; // 게임 세션 관리 export interface GameSession { id: string; cubeState: CubeState; createdAt: number; lastActivity: number; status: 'active' | 'completed'; scrambleMoves?: number; } // Colors for cube faces export const COLORS = { WHITE: 'W', YELLOW: 'Y', RED: 'R', ORANGE: 'O', BLUE: 'B', GREEN: 'G' } as const;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fritzprix/rubiks-cube-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server