# @xgamesfun/solana [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/XGamesFun/solana-kit  
**GitHub Stars:** 0  
**npm Downloads (last month):** 14902  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/xgamesfun-solana

## Description
A toolkit for building game economies on Solana: design, check, simulate and review shops, items, crafting, rewards, NFT staking, loot boxes and auctions as a JSON spec, with no smart contract to write. One shared program, its JS client, a CLI, and an MCP

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## What @xgamesfun/solana does

@xgamesfun/solana helps agents and developers define Solana game economies in an `xsolana.json` file. Supported designs include shops, loot boxes, gacha systems, lotteries, raffles, auctions, NFT staking, crafting, contests, predictions, quests, airdrops, and player-to-player trading. Items can use SOL, project tokens, or NFTs as prices, and the specification can describe rewards and payout rules.

The shared on-chain program is called `loot`; projects use the same program rather than writing a separate smart contract. Each action produces a public on-chain receipt. Random outcomes use MagicBlock verifiable randomness (VRF).

## How it works

An agent or developer creates an economy specification, then runs validation and analysis before setup. The `check` operation finds specification errors, `simulate` estimates payouts, and `cost` reports fees. `explain` describes the rules, while `review` identifies who can claim each payout.

`approve` first displays the setup transactions for inspection. Running it again with the confirmation code sends the reviewed transactions. The signing wallet becomes the project owner. Setup can be resumed if it stops after some transactions have already been confirmed.

The specification can select devnet or mainnet. A treasury address may be set explicitly; otherwise, sales use the signing wallet by default.

## Setup and configuration

Use Node.js 22 or newer. For an MCP client that launches local processes, run:

```bash
npx -y --package=@xgamesfun/solana@latest xsolana mcp
```

Claude Desktop, claude.ai, and ChatGPT can connect through `https://xgames.fun/mcp`. Claude Code and Codex also provide plugin installation commands through the `XGamesFun/solana-kit` marketplace. Cursor and Cline can use the local `xsolana mcp` command.

For terminal workflows, create a project key with `xsolana keygen`, then pass the key file to `approve`. Keep that file outside the repository and protect it because it controls the project. Start with devnet and test funds before using mainnet.

## Tools and capabilities

- Create and inspect JSON economy specifications.
- Validate rules with `check`.
- Estimate payouts with `simulate`.
- Calculate fees with `cost`.
- Explain economy behavior with `explain`.
- Review payout claimers with `review`.
- Preview and submit setup transactions with `approve`.
- Find example specifications with the `examples` command.
- Read an existing token definition from Solana with `token`.
- Emit detailed or machine-readable CLI output using `--verbose` and `--json`.

## Limitations and notes

The program has not been independently audited. Mainnet use involves real funds. The owner key can authorize actions for the project, so it should be backed up and secured; hardware-backed browser wallets are recommended for real funds. Collection resale royalties go to the original signing wallet, and changing the treasury later requires a separate owner transaction outside the specification.

Consumable items are not automatically delivered by the program: mark them with `"kind": "normal"` and have the game backend fulfill them from the purchase receipt. Player-facing integrations can use the package's JavaScript client, while the MCP interface is intended for agent workflows.

_Full upstream README: https://allmcps.com/mcp/xgamesfun-solana/readme_

