playfab-mcp-server: Instructions file for Claude Code

CLAUDE.md

playfab-mcp-server CLAUDE.md is an instructions file for Claude Code from akiojin/playfab-mcp-server. It costs 2,872 tokens per session, scanned A, original, MIT.

Repository instructions for developing a PlayFab MCP server, a service that connects AI assistants to Microsoft's game backend APIs.

In plain words
What is it for?
They guide developers when changing PlayFab integrations, rebuilding the distribution files, updating project plans, and preparing commits.
Why use it?
They keep API usage, builds, documentation, formatting, tests, commits, and language rules consistent.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

This is akiojin/playfab-mcp-server's own configuration. It tells Claude Code how to work on playfab-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 playfab-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to akiojin/playfab-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/akiojin/playfab-mcp-server/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/akiojin/playfab-mcp-server

Made for: Claude Code.

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 playfab-mcp-server CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/akiojin/playfab-mcp-server/claude-md/github.svg)](https://agentmods.dev/instructions/akiojin/playfab-mcp-server/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/akiojin/playfab-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/akiojin/playfab-mcp-server/claude-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 playfab-mcp-server CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/akiojin/playfab-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/akiojin/playfab-mcp-server/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,872 This file is loaded in full into every session.
When invoked 2,872 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.02872 $0.02872
Opus 5 $0.01436 $0.01436
Sonnet 5 $0.00574 $0.00574
Haiku 4.5 $0.00287 $0.00287

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

Security

Grade A, and why

playfab-mcp-server CLAUDE.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.

CLAUDE.md · 211 lines

How it starts

The opening of the file, as written. The whole thing — 211 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PlayFab MCP サーバープロジェクトガイドライン

重要なルール

  • 日本語で回答する
  • エコノミーAPIはv2のみを利用する - レガシーv1 APIは使用しない
  • ソースコード修正後は必ずビルドしてdistを更新する - npm run buildを実行
  • ルールの追加は必ずCLAUDE.mdに追記する
  • CHANGELOG.mdは英語で記載する
  • PlayFab REST APIの追加・修正時には必ず公式サイトでパラメーターの整合性を取ること - https://learn.microsoft.com/ja-jp/rest/api/playfab/?view=playfab-rest
  • markdownlintの警告を全て修正する - 見出しの前後に空行、コードブロックの言語指定、ファイル末尾改行など
  • 一覧のタスクが完了したら、コミットログを自動生成してコミットを行う
  • コミットログはcommitlint形式で生成する - type(scope): description の形式
  • コミットログは日本語 - コミットメッセージの説明部分は日本語で記載
  • コミットの際には、必ず承認を取ること - ユーザーの明示的な許可なしにコミットしない
  • パッケージが足りない場合はインストールを行う - 必要な依存関係を自動的にインストール
  • モデルは /model opus を優先的に利用するが、レートリミットがかかった場合 /model sonnet で自動的に切り替える
  • Spec Kit(日本語対応版)を必ず使用し、仕様→計画→タスク→実装の順に進める - /speckit.* コマンドや .specify/scripts/bash/*.sh を利用
  • ブランチ自動作成は禁止(Worktree設計) - スクリプトのデフォルトもブランチを作らない; 必要なら明示的に --branch
  • できる限り熟考して解決する - 複雑な問題や改善提案には深い思考と包括的な分析を行う
  • 割り込みで別の処理をした後は、必ず残っているタスクの続きを実行する
  • ビルドエラーは必ず排除する - TypeScriptコンパイルエラーを放置しない
  • 何か更新された場合は、関連するドキュメントを必ず更新する
  • 作業内容は@.agent/PLANS.mdにToDoとしてチェックボックスで残す - 作業完了時には@.agent/PLANS.mdを更新する
  • 作業開始前に進行中タスクに追加・更新する - 新しい作業を始める前に必ず@.agent/PLANS.mdの進行中タスクを更新
  • タスク完了時にはドキュメントのToDoを更新 - 完了したタスクには[x]を付けて更新(@.agent/PLANS.md)
  • ToDoは@.agent/PLANS.mdに作成する - タスク管理はすべて@.agent/PLANS.md内で行う
  • 「バージョンアップして」と指示があった場合:
    1. git statusでコミットされていない変更がないか確認(変更がある場合はエラー)
    2. 前回のバージョンアップからの差分をCHANGELOG.mdに追加
    3. 変更内容に応じて適切なバージョンタイプを選択:
      • patch: バグ修正のみ
      • minor: 新機能追加(後方互換性あり)
      • major: 破壊的変更
    4. npm version [patch/minor/major]を実行

概要

AIアシスタントがPlayFabサービスと対話できるようにするModel Context Protocol (MCP)サーバーです。

プロジェクト構造

/
├── src/                    # TypeScriptソースコード
│   ├── index.ts           # メインエントリーポイント
│   ├── server.ts          # MCPサーバー実装
│   ├── config/            # 設定ファイル
│   │   └── playfab.ts     # PlayFab SDK設定
│   ├── handlers/          # ツールハンドラー実装
│   │   ├── catalog/       # カタログ関連ハンドラー
│   │   ├── inventory/     # インベントリ関連ハンドラー
│   │   ├── player/        # プレイヤー関連ハンドラー
│   │   └── title/         # タイトル関連ハンドラー
│   ├── tools/             # ツール定義
│   │   ├── catalog/       # カタログ関連ツール
│   │   ├── inventory/     # インベントリ関連ツール
│   │   ├── player/        # プレイヤー関連ツール
│   │   └── title/         # タイトル関連ツール
│   ├── types/             # TypeScript型定義
│   │   ├── index.ts       # 共通型定義
│   │   ├── inventory.ts   # インベントリ関連型
│   │   └── playfab-responses.ts # PlayFab APIレスポンス型
│   └── utils/             # ユーティリティ
│       ├── env-validator.ts    # 環境変数検証
│       ├── errors.ts           # カスタムエラークラス
│       ├── input-validator.ts  # 入力検証
│       ├── logger.ts           # ロギングユーティリティ
│       ├── playfab-wrapper.ts  # PlayFab API ラッパー
│       └── router.ts           # ルーターパターン実装
├── __tests__/             # テストファイル
│   └── setup.ts          # Jest設定
├── dist/                  # コンパイル済みJavaScript(gitignore)
├── package.json           # プロジェクト設定と依存関係
├── tsconfig.json          # TypeScript設定
├── jest.config.cjs        # Jest設定
├── eslint.config.mjs      # ESLint設定
├── .editorconfig          # コーディング規約
├── CHANGELOG.md           # 変更履歴
├── CLAUDE.md              # プロジェクトガイドライン
├── README.md              # プロジェクト説明
└── SECURITY.md            # セキュリティポリシー

Read the full file on GitHub · 211 lines

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 · 211 lines · 2,872 tokens per session scan A 6ee1df0cff0c

Subscribe to this mod's changes

playfab-mcp-server CLAUDE.md is an instructions file published in the GitHub repository akiojin/playfab-mcp-server (3 stars, last pushed yesterday), licensed MIT. It adds 2,872 tokens to every session, about $0.0144 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-08-31.

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

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens