xbox-cli-mcp
You can use this MCP server to safely inspect XBOX CLI/Partner Center, XBOX services, and PlayFab state, with reads enabled and changes intended to be opt-in.
Read the installed XBOX CLI agent skill and command help.
Check sign-in status or start browser-based Microsoft Entra sign-in.
View and save default seller, title, sandbox, and PlayFab title.
List sellers, games, sandboxes, and playtests.
Classify a command without running it to see whether it reads/changes state, is reversible, which tool may run it, and the exact command line.
Run read-only XBOX CLI commands and PlayFab
Get*/List*/Search*API calls, returning JSON.The provided schema exposes no change tool; the README describes
xbox_changefor opt-inwrite/fullmodes, with irreversible changes requiring a second opt-in.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@xbox-cli-mcp list my games in Partner Center and their sandboxes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
xbox-cli-mcp
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 | ✗ | ✓ |
Changes off by default | ✗ | ✓ |
Irreversible commands blocked | ✗ | ✓ unless |
| ✗ | ✓ only via |
RETAIL / CERT / title-wide publishes detected | ✗ | ✓ also when |
| ✗ | ✓ |
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 | 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.clion Windows, or the install script on macOS and LinuxA 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-mcpClaude 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.jsSign in once with xbox auth login in a terminal, or have the agent call xbox_auth_login. Either way, a browser window opens.
Modes
| Reads | Changes | Irreversible changes |
| ✓ | ✗ ( | ✗ |
| ✓ | ✓ | ✗ |
| ✓ | ✓ | ✓ |
The server treats these commands as irreversible, following the CLI's safety docs:
game create,sandbox create,xbl business-partner create,xbl relying-party createxbl web-service certificate create,xbl binding create|delete,playfab privacy exportxbl config publishto RETAIL, CERT, CERT.DEBUG, ALL or HIDDEN, with--scope title|account, across sandboxes, or without an explicit--sandbox-id
Tools
Tool | What it does |
| Sign-in state; browser sign-in; sign out |
| Saved default seller, title, sandbox and PlayFab title |
| Common lookups |
| The installed CLI's Help for any command, which is the authority on its options |
| The CLI's built-in agent skill ( |
| Dry run: shows what a command would do, whether it can be undone, and which tool may run it |
| Runs any read-only command, including |
| Runs a change. Requires a |
Configuration
Variable | Default | |
|
|
|
|
| Path to the CLI |
|
| Per-command timeout |
|
| Longer output is truncated |
|
|
|
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 neededThe 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 toolsxbox_auth_loginSign in (opens a browser)AIdempotent
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 outAIdempotent
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 statusARead-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 somethingADestructive
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 doARead-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 defaultsARead-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 defaultAIdempotent
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 gamesARead-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 commandARead-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 playtestsARead-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 commandARead-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 sandboxesARead-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 sellersARead-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 skillARead-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
Scored across 14 tools
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.
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.
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.
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
Related MCP Connectors
Remote MCP for Copilot CLI switch gate MCP, structured receipts, audit logs, and reviewer-ready evid
Hosted remote MCP for protected account access, permissions, activity history and supported undo.
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Governed MCP gateway: one endpoint for your tools, with credential custody and audit log.
Related MCP Servers
- AlicenseCqualityBmaintenanceEnables managing Logto resources (users, applications, organizations, roles) via MCP clients like Cursor or Claude Desktop.351MIT
- AlicenseAqualityBmaintenanceEnables 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.1141 npm2MIT
- AlicenseNot gradedqualityBmaintenanceEnables developers to build, test, debug, and operate MCP servers from VS Code or CI, while also exposing trusted MCP capabilities to AI agents.MIT

fxrayofficial
AlicenseAqualityCmaintenanceEnables 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.23MIT