Skip to main content
Glama

xbox-cli-mcp

Glama MCP server An MCP server for the XBOX CLI. It gives Claude, Cursor, VS Code and any other MCP client safe access to Partner Center (games, sandboxes, playtests, test accounts), XBOX services configuration and PlayFab.

Unofficial community project. It is not affiliated with or endorsed by Microsoft. XBOX is a trademark of Microsoft.

Read-only by default. Agents can look around freely. To make changes, you have to opt in. Even then, the server refuses changes that can't be undone (creating a game or sandbox, publishing to RETAIL, …) unless you opt in a second time.

Why use this instead of letting an agent run xbox in a shell?

The XBOX CLI acts with your permissions, which usually means admin rights on production titles. The CLI's docs point out that it can't tell whether a person approved a change, because the confirmation is passed on the same command line. This server puts an approval layer in front of it:

Shell access

xbox-cli-mcp

Reads and changes are separate tools

✗

✓ xbox_read (readOnlyHint) and xbox_change (destructiveHint), so your client can auto-approve reads and ask about changes

Changes off by default

✗

✓ XBOX_MCP_MODE=read-only

Irreversible commands blocked

✗

✓ unless XBOX_MCP_MODE=full

--confirm can't slip in through args

✗

✓ only via confirm: true

RETAIL / CERT / title-wide publishes detected

✗

✓ also when --sandbox-id is missing and a saved default might point at RETAIL

playfab api classified by operation

✗

✓ Get*, List* and Search* read; everything else is a change

Exit code 3 ("outcome unknown") explained

✗

✓ tells the agent to read the state instead of retrying

Audit log of every change, Partner Center and XBOX services included

PlayFab only

✓ JSONL, with request bodies redacted

Always --no-input and JSON output

You have to remember

✓

Related MCP server: azure-query-mcp

Requirements

  • Node.js 20+

  • The XBOX CLI, installed and on your PATH: winget install XBOX.cli on Windows, or the install script on macOS and Linux

  • A Partner Center account. PlayFab commands also need Admin permission on the title.

Install

No install step is needed: MCP clients run it with npx.

Claude Code

claude mcp add xbox -- npx -y xbox-cli-mcp
# allow changes:
claude mcp add xbox -e XBOX_MCP_MODE=write -- npx -y xbox-cli-mcp

Claude Desktop, Cursor, VS Code (mcpServers JSON)

{
  "mcpServers": {
    "xbox": {
      "command": "npx",
      "args": ["-y", "xbox-cli-mcp"],
      "env": { "XBOX_MCP_MODE": "read-only" }
    }
  }
}

From source

git clone https://github.com/zydziupolska-cmyk/xbox-cli-mcp && cd xbox-cli-mcp
npm install && npm run build   # then point your client at dist/index.js

Sign in once with xbox auth login in a terminal, or have the agent call xbox_auth_login. Either way, a browser window opens.

Modes

XBOX_MCP_MODE

Reads

Changes

Irreversible changes

read-only (default)

✓

✗ (xbox_change refuses and says how to enable it)

✗

write

✓

✓

✗

full

✓

✓

✓

The server treats these commands as irreversible, following the CLI's safety docs:

  • game create, sandbox create, xbl business-partner create, xbl relying-party create

  • xbl web-service certificate create, xbl binding create|delete, playfab privacy export

  • xbl config publish to RETAIL, CERT, CERT.DEBUG, ALL or HIDDEN, with --scope title|account, across sandboxes, or without an explicit --sandbox-id

Tools

Tool

What it does

xbox_auth_status, xbox_auth_login, xbox_auth_logout

Sign-in state; browser sign-in; sign out

xbox_context_get, xbox_context_set

Saved default seller, title, sandbox and PlayFab title

xbox_seller_list, xbox_game_list, xbox_sandbox_list, xbox_playtest_list

Common lookups

xbox_help

The installed CLI's Help for any command, which is the authority on its options

xbox_skill, resource xbox://skill

The CLI's built-in agent skill (xbox --skill)

xbox_classify

Dry run: shows what a command would do, whether it can be undone, and which tool may run it

xbox_read

Runs any read-only command, including playfab api /…/Get*

xbox_change

Runs a change. Requires a summary for the audit log, and confirm: true for commands the CLI asks about. Listed in every mode; in read-only it changes nothing and says how to enable it, and in write it refuses irreversible commands.

Configuration

Variable

Default

XBOX_MCP_MODE

read-only

read-only, write or full (or pass --mode=)

XBOX_MCP_BIN

xbox

Path to the CLI

XBOX_MCP_TIMEOUT_MS

600000

Per-command timeout

XBOX_MCP_MAX_OUTPUT_BYTES

200000

Longer output is truncated

XBOX_MCP_AUDIT_LOG

~/.xbox-mcp/audit.jsonl

off to disable

The CLI's own settings (XBOX_SELLER_ID, XBOX_PLAYFAB_TITLE_ID, XBOX_AUDITLOG__ENABLED, …) pass straight through.

Development

npm test   # builds, then runs the suite against test/fake-xbox.mjs; no Partner Center account needed

The XBOX CLI is a technical preview, so its commands can change between releases. The safety rules live in src/safety.ts. Commands the server doesn't recognise are treated as changes.

License

MIT

Available Tools

14 tools
xbox_auth_loginSign in (opens a browser)A
Idempotent

Opens the system browser on the user's machine to sign in to the XBOX CLI with Microsoft Entra ID, and waits until the sign-in finishes. Use it only when xbox_auth_status reports signedIn:false, and tell the user to complete the sign-in in their browser. Changes only local sign-in state.

Inputs: no named parameters.

xbox_auth_logoutSign outA
Idempotent

Signs the XBOX CLI out on this machine and removes its cached credentials. Use it when the user asks to sign out or to switch accounts (then xbox_auth_login). Changes only local sign-in state; nothing in Partner Center.

Inputs: no named parameters.

xbox_auth_statusSign-in statusA
Read-onlyIdempotent

Returns whether someone is signed in to the XBOX CLI and as whom, e.g. {"signedIn":true,"username":"dev@studio.com"}; {"signedIn":false} means nobody is. Call it first in a session. Changes nothing.

Inputs: no named parameters.

xbox_changeRun an XBOX CLI command that changes somethingA
Destructive

Runs an XBOX CLI command that changes Partner Center (games, playtests, audiences, test accounts, sandboxes), XBOX services configuration, PlayFab, or this PC's sandbox, with the signed-in user's permissions, often on production titles. Before calling: read the command's xbox_help, check it with xbox_classify, tell the user exactly what will change on which title, seller and sandbox, and get their approval. Pass confirm: true only after that approval. Allowed by mode: read-only allows nothing (the tool explains how to enable it), write allows reversible changes, full also allows irreversible ones (game/sandbox create, RETAIL publishes). Returns the command's output. Exit code 3 means the outcome is unknown: read the state with xbox_read before retrying.

Inputs: command (required), summary (required), args, confirm.

xbox_classifyCheck what a command would doA
Read-onlyIdempotent

Without running anything, reports whether an XBOX CLI command reads or changes state, whether the change can be undone, which tool runs it (xbox_read or xbox_change), whether this server's mode allows it, and the exact command line. Use it before proposing any change to the user.

Inputs: command (required), args.

xbox_context_getSaved defaultsA
Read-onlyIdempotent

Returns the saved defaults (seller ID, XBOX title ID, sandbox ID, PlayFab title ID) that commands use when no flag is passed. Check it before any change, so you know which title and sandbox the change would hit. Changes nothing.

Inputs: profile.

xbox_context_setSave a defaultA
Idempotent

Saves a default seller ID, title ID, sandbox ID or PlayFab title ID for later commands. Changes only local CLI state, but every later command without that flag will act on the new value, so tell the user what it now points at.

Inputs: key (required), value (required), profile.

xbox_game_listList gamesA
Read-onlyIdempotent

Lists a seller's games with their names, Store IDs (e.g. 9N0000000000) and XBOX title IDs (e.g. 1234ABCD), which most other commands need. Can take a minute for sellers with many games. Changes nothing.

Inputs: args, seller_id.

xbox_helpHelp for an XBOX CLI commandA
Read-onlyIdempotent

Returns the installed CLI's Help for a command: its options, output, exit codes, and a SAFETY section saying whether it reads or changes something. Use it before running any command through xbox_read or xbox_change, because the installed CLI is the authority on its options. Omit command to list all commands. Changes nothing.

Inputs: command.

xbox_playtest_listList playtestsA
Read-onlyIdempotent

Lists the playtests of one game with their IDs, names, status (Draft, Scheduled, Live) and dates. Pass the game's Store ID or XBOX title ID from xbox_game_list. Changes nothing.

Inputs: args, store_id, title_id.

xbox_readRun a read-only XBOX CLI commandA
Read-onlyIdempotent

Runs any XBOX CLI command that only reads: list, get, status, diff, history, download, and playfab api with a Get*, List* or Search* operation. Use it for reads that the xbox_*_list tools don't cover; look the command up with xbox_help first. Refuses anything that changes state. Returns the command's JSON output, or its error and what the exit code means.

Inputs: command (required), args.

xbox_sandbox_listList sandboxesA
Read-onlyIdempotent

Lists a seller's XBOX sandboxes (development environments such as ABCD.1, plus CERT and RETAIL) with their IDs. Use it to pick the sandbox for XBOX services configuration and test accounts. Changes nothing.

Inputs: args, seller_id.

xbox_seller_listList sellersA
Read-onlyIdempotent

Lists the Partner Center sellers (developer accounts) the signed-in user belongs to, with their seller IDs. Use it to find the seller ID for other commands or for xbox_context_set. Changes nothing.

Inputs: args, seller_id.

xbox_skillRead the XBOX CLI agent skillA
Read-onlyIdempotent

Returns the agent guide built into the installed XBOX CLI (xbox --skill): which command starts each common task and where the XBOX documentation explains how the services behave. Read it once per session, before the first substantive task. Changes nothing.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 14 tools

    Disambiguation4/5

    The set is well-partitioned by design: xbox_read vs xbox_change are clearly split by state safety, and xbox_skill, xbox_help, and xbox_classify serve distinct informational roles (session guide, per-command docs, read/change classification). The only real overlap is that the typed list tools (seller/game/sandbox/playtest) can also be reached through xbox_read, but the read description explicitly directs agents to prefer the typed tools for covered reads.

    Naming Consistency4/5

    All names share an xbox_ prefix and snake_case, with coherent family groups (xbox_auth_*, xbox_context_*, xbox_*_list). Minor deviation: list tools use noun_list ordering while the runners use verb ordering (xbox_read, xbox_change, xbox_help, xbox_skill), so it is consistent in style but not a single uniform verb_noun pattern.

    Tool Count5/5

    14 tools is well within the sweet spot and each tool maps to a real need: auth lifecycle, context defaults, four discovery listings, generic read/change runners, and the three guidance/classification helpers. Nothing feels redundant or padded for a CLI wrapper of this scope.

    Completeness5/5

    The surface covers the full lifecycle of a CLI session: sign in/out, inspect and set defaults, discover sellers/games/sandboxes/playtests, get help, classify safety, and then execute any read or write through the generic runners. The generic xbox_read/xbox_change design means arbitrary CLI commands are reachable, so there are no dead ends beyond what the CLI itself exposes.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      B
      maintenance
      Enables managing Logto resources (users, applications, organizations, roles) via MCP clients like Cursor or Claude Desktop.
      35
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables read-only querying of Azure Log Analytics and Azure Resource Graph through MCP, supporting KQL queries, workspace discovery, and resource inventory exploration with Azure RBAC authentication.
      11
      41 npm
      2
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables MCP clients to inspect and work with Power Apps solutions, canvas app source, Dataverse metadata, and FetchXML via the Power Platform CLI, with read-only defaults and gated, dry-run imports.
      23
      MIT