iDos Games SDK

v0.1.66
com.idosgames/sdk Checked 5 hours ago Published 16 hours ago

Game modules, project scaffold and SDK skills for building web games on iDos Games.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_modules List game modules

List the composable iDosGames modules in the catalog. Each entry has id, name, type (template = a complete ready-to-run game to start FROM, e.g. voxelcraft; feature = a capability to add on top), engine, genre, a short summary, what it 'provides' (its features), tags, preview media, a live demo url, and its dependency count. Read 'provides' to reuse a ready module instead of building the feature from scratch, then get_module to pull its source. Entries may also carry 'sharedUi' ({provides, requires, drawsOwn}: shared chrome roles currency-bar | wallet | status | account | menu | modes — the…

get_module Get module source

Get one module's full source (a map of files) plus install instructions. Write each file under src/modules/{id}/, install its dependencies, and register it in src/modules.ts. Requires a host scaffold in the project (see get_host_scaffold). Its module.ts declares 'sharedUi' (roles it draws for every mode or needs) and its module.meta.json declares 'events' (topics it emits with their payload shapes, and topics it listens to).

ParameterTypeDescription
id *stringModule id, e.g. board-game

list_skills List SDK skills

List available skills (name + description). Skills are instructions for working with @idosgames/core services, the module contract, and composition. Use get_skill to load one.

get_skill Get SDK skill

Get one skill's full SKILL.md content and its reference files. Load the relevant skill before writing code against that part of the SDK.

ParameterTypeDescription
name *stringSkill name, e.g. currency-system

get_host_scaffold Get project scaffold

Get the base every NEW project starts from — the host shell with sign-in and the lobby (index.html, main.tsx, src/app.config.ts, the wallet files, empty src/modules.ts, config; the lobby and sign-in come from @idosgames/app-shell). Write these to the project root, then add modules with get_module: the systems with inBase (profile, inventory, invite, friends, quests, mailbox), the game(s) with the modules each game 'uses', and any other system the app needs.

get_manifest Get runtime package versions

Get the @idosgames runtime packages and their exact versions (core, wallet, module-sdk, react, app-shell). Install these so a seeded host/module resolves its imports.

validate_asset Validate a video asset

Check one asset of the iDos Games video studio (actor, set, prop or music — e.g. the answer of the platform MCP's generate_asset, or one you wrote) against the asset contract the studio itself uses: ref, style, title and tags, and the body — a voxel CharacterSpec, a 2D rig recipe (parts, colours, its own SVG art), a cut-out picture, a scene's anchors and camera shots, https addresses. Returns ok and the issues (error = the studio will drop the asset, warning = it works but the AI director will hardly pick it). Free, offline.

ParameterTypeDescription
asset *objectThe asset JSON.

validate_video Validate a video package

Check a video PACKAGE of the iDos Games video studio ({ spec, assets } — what the platform MCP's plan_video and generate_asset return) exactly as the studio will open it: the VideoSpec (format, style, set, cast, lines, captions, overrides), every asset, and that each own:/pack: ref of the spec is among the package's assets (lib: refs are the studio library — see search_assets on the platform MCP). With title_id it also returns the link that opens the package in that app's editor (https://{titleId}.idos.games/#videodata=…) — rebuild the link after you edit the package. Free, offline.

ParameterTypeDescription
package *object{ spec, assets } — a VideoSpec and the assets it uses.
title_idstringThe app with the video studio, for the link (optional).

get_local_wallet Local wallet addresses

Addresses of the wallets this local MCP can sign with (from IDOSGAMES_EVM_PRIVATE_KEY / IDOSGAMES_SOLANA_KEYPAIR). Pass one as 'wallet' to the platform MCP tool build_token_launch_tx. Keys are never returned.

build_launch_tx Build a token launch transaction

Turn the answer of the platform MCP tool build_token_launch_tx into unsigned transactions for YOUR wallet: EVM calls (approvals, then the launch) or a base64 Solana transaction. Sign and send them yourself, then call the platform MCP tool submit_launch_tx with the hash/signature.

ParameterTypeDescription
launch *objectThe whole answer of the platform MCP tool build_token_launch_tx (Transaction/Approvals or SolanaLaunch).

send_launch_tx Sign and send a token launch

Sign the launch from build_token_launch_tx with the local key and send it (spends the creation fee and the optional first buy from that wallet). The wallet must be the one passed to build_token_launch_tx. Returns the hash/signature: then call the platform MCP tool submit_launch_tx with it.

ParameterTypeDescription
launch *objectThe whole answer of the platform MCP tool build_token_launch_tx (Transaction/Approvals or SolanaLaunch).

quote_token_trade Quote a token trade

Live quote for buying or selling a game's token (new stack: EVM Uniswap V4 or Solana): what you receive and the minimum after slippage. Read-only.

ParameterTypeDescription
amount *stringDecimal amount: buy = pair currency to spend (e.g. "0.05"), sell = tokens to sell.
game_id *stringTitleID of the game whose token to trade.
side *string
slippage_percentnumberMax slippage, percent (default 5).

build_token_trade Build a token trade

Unsigned trade for a wallet you control: EVM calls (approvals, then the swap) or a base64 Solana transaction. Sign and send them yourself. Solana: 'referral' (a Solana address) receives the referral share of the community fee.

ParameterTypeDescription
amount *stringDecimal amount: buy = pair currency to spend (e.g. "0.05"), sell = tokens to sell.
game_id *stringTitleID of the game whose token to trade.
side *string
wallet *stringAddress that will sign and send.
referralstringSolana only: referral address (yours, for example).
slippage_percentnumberMax slippage, percent (default 5).

send_token_trade Sign and send a token trade

Buy or sell a game's token with the local key (spends from that wallet) and wait for confirmation. Returns the hash.

ParameterTypeDescription
amount *stringDecimal amount: buy = pair currency to spend (e.g. "0.05"), sell = tokens to sell.
game_id *stringTitleID of the game whose token to trade.
side *string
referralstringSolana only: referral address.
slippage_percentnumberMax slippage, percent (default 5).