rubiks-cube-mcp-server: Instructions file for Gemini CLI

GEMINI.md

rubiks-cube-mcp-server GEMINI.md is an instructions file for Gemini CLI from fritzprix/rubiks-cube-mcp-server. It costs 880 tokens per session, scanned A, original, MIT.

Developer instructions for a Rubik's Cube game server that lets AI clients manipulate a cube through MCP, a standard connection method for AI tools and external servers.

In plain words
What is it for?
Use it when developing or maintaining the server, especially its TypeScript tools, cube state and sessions, input validation, and interactive web game interface.
Why use it?
It gives developers guidance on the project's purpose, technologies, input checks, game sessions, and how interactive game controls and data are returned.

Instructions file for Gemini CLI

Written for Gemini CLI: the file is GEMINI.md.

This is fritzprix/rubiks-cube-mcp-server's own configuration. It tells Gemini CLI how to work on rubiks-cube-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything rubiks-cube-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to fritzprix/rubiks-cube-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fritzprix/rubiks-cube-mcp-server/main/GEMINI.md
Clone the repo
git clone --depth 1 https://github.com/fritzprix/rubiks-cube-mcp-server

Made for: Gemini CLI.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rubiks-cube-mcp-server GEMINI.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/fritzprix/rubiks-cube-mcp-server/gemini-md/github.svg)](https://agentmods.dev/instructions/fritzprix/rubiks-cube-mcp-server/gemini-md)
Your own site
<a href="https://agentmods.dev/instructions/fritzprix/rubiks-cube-mcp-server/gemini-md"><img src="https://agentmods.dev/badge/instructions/fritzprix/rubiks-cube-mcp-server/gemini-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rubiks-cube-mcp-server GEMINI.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fritzprix/rubiks-cube-mcp-server/gemini-md"><img src="https://agentmods.dev/badge/instructions/fritzprix/rubiks-cube-mcp-server/gemini-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 880 This file is loaded in full into every session.
When invoked 880 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00880 $0.00880
Opus 5 $0.00440 $0.00440
Sonnet 5 $0.00176 $0.00176
Haiku 4.5 $0.00088 $0.00088

Measured 8d ago against content hash d2119c34a6b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

rubiks-cube-mcp-server GEMINI.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

GEMINI.md · 59 lines

What it actually says

Rubik's Cube MCP Server - 개발자 가이드

프로젝트 목적

이 프로젝트는 Model Context Protocol(MCP) 기반의 루빅스 큐브 게임 서버를 구현합니다.
AI 에이전트와 클라이언트가 MCP를 통해 큐브를 조작하고, UI 리소스를 안전하게 전달받아 웹에서 인터랙티브하게 게임을 즐길 수 있도록 설계되었습니다.
MCP UI 표준을 활용하여 서버에서 동적으로 생성한 UI(예: 게임 링크, 버튼 등)를 클라이언트에 전달하고, 사용자가 직접 클릭하여 게임을 시작하거나 조작할 수 있습니다.

테크 스택 / 기술 / 언어

  • TypeScript: 주요 서버 및 MCP 도구 구현
  • Node.js: 서버 런타임 환경
  • Express: HTTP 서버 및 API 구현 (예시/테스트용)
  • Zod: 입력 데이터 검증 및 스키마 정의
  • @modelcontextprotocol/sdk: MCP 서버/클라이언트 SDK
  • @mcp-ui/server, @mcp-ui/client: MCP UI 리소스 생성 및 렌더링
  • Custom Cube Logic: 루빅스 큐브 상태 관리 및 조작

주요 의존성

  • @modelcontextprotocol/sdk: MCP 서버/클라이언트 통신 및 도구 등록
  • @mcp-ui/server: 서버에서 UI 리소스 생성
  • @mcp-ui/client: 클라이언트에서 UI 리소스 렌더링
  • zod: 입력값 검증 및 타입 안전성 확보
  • express, cors: HTTP API 및 CORS 처리 (테스트/예시용)
  • 기타: 프로젝트 내 커스텀 큐브 로직, 시각화 서버 등

Best Practice

  • MCP 도구 등록 시 입력값 검증
    모든 도구(tool) 입력값은 Zod 스키마로 명확하게 검증하고, 기본값 및 타입을 명시합니다.

  • 게임 세션 관리
    각 게임은 고유한 gameId로 관리하며, 큐브 상태와 세션 정보를 Map 등으로 저장합니다.

  • UI 리소스와 데이터 동시 반환
    MCP UI 리소스(예: 게임 링크)와 게임의 초기값(큐브 상태 등)을 content: [uiResponse, response] 형태로 함께 반환하여 클라이언트가 UI와 데이터를 동시에 활용할 수 있도록 합니다.

  • MCP UI 표준 활용
    UI 리소스는 반드시 createUIResource 또는 명확한 타입 구조(type: "resource", mimeType, text 등)로 생성합니다.
    클라이언트에서는 UIResourceRenderer 또는 <ui-resource-renderer> 웹 컴포넌트로 렌더링합니다.

  • 상태 변화 및 이벤트 처리
    큐브 조작, 게임 완료 등 주요 이벤트 발생 시 세션 상태와 시각화 서버를 반드시 업데이트합니다.

  • 코드 일관성 및 타입 안전성
    TypeScript의 타입 시스템을 적극 활용하여, 모든 함수/객체에 타입을 명확히 지정합니다.

  • 문서화 및 예시 코드 제공
    각 MCP 도구, UI 리소스 생성, 클라이언트 렌더링 예시를 문서에 포함하여 신규 개발자가 쉽게 이해할 수 있도록 합니다.

  • 에러 처리 및 로그
    예외 상황(존재하지 않는 게임, 잘못된 입력 등)은 명확한 에러 메시지와 로그로 처리합니다.

참고

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 59 lines · 880 tokens per session scan A d2119c34a6b3

Subscribe to this mod's changes

rubiks-cube-mcp-server GEMINI.md is an instructions file published in the GitHub repository fritzprix/rubiks-cube-mcp-server (0 stars, last pushed 1y ago), licensed MIT. It adds 880 tokens to every session, about $0.0044 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens