MCP publishing tools
Guide version 1.10.0
Connect to MCP and make your first call
An MCP client can ask the store which actions it supports and then call them by name. Start with a read-only request that needs no game ID.
Before you start
- A confirmed account and a personal API key from account settings.
Steps
- Create a Streamable HTTP connection to /mcp on your store API origin. In the client’s secret settings, supply X-Api-Key with your personal key, or Authorization with Bearer and your store access token.
- Let your client initialize the connection. Request tools/list and follow nextCursor by supplying it as cursor until the list ends. Each tool advertises its inputSchema.
- Call list_store_vocabulary with an empty arguments object. The example shows the complete MCP message after initialization. In a tool form or the CLI, enter only the arguments object.
Example
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_store_vocabulary",
"arguments": {}
}
}Expected result
The result contains the store vocabulary. Find the language codes and eventKinds, then use them when you write a game page or announce an event.
If something goes wrong
A 401 means the connection needs a valid store credential. With a 403, check the permission for the specific action and confirm the publisher’s email before trying a publishing action.
Use the same tools from the command lineCreate and check a private draft
Create Orbit Orchard as a practice draft. Only its publisher can see it.
Steps
- Generate a new UUID for this draft. Save it with the title and description you intend to send.
- Call create_game using the saved fields. Keep the integer id from the returned game.
- Call get_my_game with that gameId. Look for status draft and your saved title.
Example
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "create_game",
"arguments": {
"draft": {
"requestId": "b13e2100-de3a-46e3-9e4a-ff5b811bc580",
"title": "Orbit Orchard",
"description": "A game about growing fruit in orbit."
}
}
}
}Expected result
You have a private game ID to use for translation, news, uploads and pricing.
If something goes wrong
If the response was lost, send the identical request again. If the draft has since been edited and returns 409, use list_my_games and get_my_game to recover it.
Resume an interrupted build upload
The publisher skill includes a Python 3.11 example that transfers only the ZIP parts still missing.
Before you start
- Install inspacy-game-publishing from Skills and Agents.
- Set INSPACY_API_ORIGIN and INSPACY_API_KEY locally. Keep upload-state.json for the duration of the upload.
Steps
- Run the example from the installed skill folder with your game ID, archive and entry point.
- The script calls begin_build_upload with the byte count and SHA-256. It PUTs each missing part to the returned upload ID’s parts route with X-Part-SHA256.
- Run the same command after an interruption. It calls get_build_status, skips acknowledged parts and calls complete_build_upload when all parts are present.
Example
python scripts/upload.py --game 42 --zip game.zip --entry Game.exe --state upload-state.jsonExpected result
The result identifies the build. Its status progresses from queued or packaging to ready and reports outstanding approvals.
If something goes wrong
If the reservation expired, start a new upload with a new state file. Changing the ZIP or entry point requires a new reservation.
Browse the public catalog
Look up the codes the store accepts, find a game, then open its public page. The game ID in these examples is illustrative.
- list_store_vocabulary
- Read the allowed genre, feature, language, age rating, content and event codes before editing a page.
Example
{} - list_games
- Search public games. The first page of cards includes the IDs you can pass to get_game.
Example
{ "search": "Orbit", "pageNumber": 1, "pageSize": 10 } - get_game
- Read one public page, including its gallery and store details. Use language to request a published translation.
Example
{ "gameId": 42, "language": "pt-BR" }
Manage drafts, translations and gallery order
Use your confirmed publisher account. Start with list_my_games or create_game and use the returned game ID. Look up media IDs in get_my_game.
- list_my_games
- Find your games, including private drafts. Read the ID and publication status from each row.
Example
{ "pageNumber": 1, "pageSize": 10 } - create_game
- Create a private draft. Generate a fresh requestId for a new game and keep it with the original fields for retries.
Example
{ "draft": { "requestId": "b13e2100-de3a-46e3-9e4a-ff5b811bc580", "title": "Orbit Orchard", "description": "Grow fruit on a space station." } } - get_my_game
- Read the saved draft, delivery settings, translations and ordered gallery for a game you own.
Example
{ "gameId": 42 } - update_game
- Change selected fields and read back the saved page. Omitted fields keep their previous values.
Example
{ "gameId": 42, "update": { "developerName": "Orbit Studio", "tags": [ "Space" ] } } - set_game_translation
- Save translated copy for one language from the vocabulary. The result includes the saved translations.
Example
{ "gameId": 42, "language": "pt-BR", "translation": { "title": "Pomar Orbital", "description": "Cultive frutas em uma estação espacial." } } - remove_game_translation
- Remove one language from the page. Readers of that language will see the original copy.
Example
{ "gameId": 42, "language": "pt-BR" } - reorder_game_media
- Set gallery order. Supply every current media ID exactly once. Upload new images and videos in the game editor.
Example
{ "gameId": 42, "order": { "mediaIds": [ 12, 9 ] } } - remove_game_media
- Delete the chosen gallery item and its stored file. Confirm the media ID on your own page first.
Example
{ "gameId": 42, "mediaId": 12 }
Upload a build and release a game
Use uploadId while transferring a ZIP and buildId when releasing it. The sample size, digest, paths and IDs stand for values from your own archive and responses.
- begin_build_upload
- Reserve the upload and save uploadId, buildId, partSizeBytes and partCount. Calculate expectedBytes and SHA-256 from the complete ZIP.
Example
{ "upload": { "gameId": 42, "requestId": "f42c52f1-4044-4df1-abcc-dd36aec785cc", "expectedBytes": 2048, "sha256": "7e03f78e8e9ad2c8a1bc03049b846e4d04ee8018e0d79d0856b025fa4894c4a3", "entryPoint": "Game.exe", "policyVersion": 2, "drmMode": "none" } } - get_build_status
- Read receivedParts to find missing parts. After completion, inspect status, failure details and missingApproval.
Example
{ "uploadId": "f42c52f1-4044-4df1-abcc-dd36aec785cc" } - complete_build_upload
- Verify the assembled ZIP and queue it for packaging. A 409 for missing parts means you can finish the transfer first.
Example
{ "uploadId": "f42c52f1-4044-4df1-abcc-dd36aec785cc" } - list_my_game_builds
- Find a game’s builds and their upload IDs, newest first. Check which build is ready and approved.
Example
{ "gameId": 42 } - publish_game
- Release an approved Windows build with buildId. An empty publication announces a coming-soon page. For a configured browser game, use browserAction with release or withdraw.
Example
{ "gameId": 42, "publication": { "buildId": 17 } }
Write and read game news
News posts have a title and a Markdown body. Read the postId from the creation result or the publisher list before editing or deleting.
- post_game_news
- Create a post. Add publishAtUtc with a future timestamp to schedule it. Each successful call creates a post.
Example
{ "gameId": 42, "post": { "title": "First harvest", "body": "The greenhouse is open." } } - list_my_game_news
- List your published and scheduled posts and their IDs. Check here after losing a creation response.
Example
{ "gameId": 42, "pageNumber": 1, "pageSize": 10 } - edit_game_news
- Edit the title or body. For a scheduled post, you can also reschedule it or use publishNow.
Example
{ "gameId": 42, "postId": 7, "edit": { "body": "The greenhouse opens on Friday." } } - delete_game_news
- Delete a published or scheduled post. A deleted scheduled post will never appear on the public page.
Example
{ "gameId": 42, "postId": 7 } - list_game_news
- Read the posts visible to players on a public game page.
Example
{ "gameId": 42, "pageNumber": 1, "pageSize": 10 }
Manage game events
Use event kinds from list_store_vocabulary and timestamps that include a time zone. Replace the sample date with the date of your event.
- post_game_event
- Create an event. Save its ID from the response before changing the announcement.
Example
{ "gameId": 42, "event": { "kind": "stream", "title": "Greenhouse livestream", "startsAtUtc": "2030-05-10T18:00:00Z" } } - list_my_game_events
- Find upcoming and past events for your game, including events on a private draft.
Example
{ "gameId": 42, "pageNumber": 1, "pageSize": 10 } - edit_game_event
- Change the supplied event fields. Use clearEndsAt to remove a previously announced end time.
Example
{ "gameId": 42, "eventId": 6, "edit": { "title": "Greenhouse livestream with the developers" } } - delete_game_event
- Remove one event using the ID in the publisher list.
Example
{ "gameId": 42, "eventId": 6 } - list_game_events
- List the public calendar. Use upcoming for current and upcoming events, or past for events that have ended.
Example
{ "gameId": 42, "when": "upcoming", "pageNumber": 1, "pageSize": 10 }
Set prices and schedule discounts
Money uses whole BRL centavos. For example, 2000 represents R$20.00. Use dates and discount limits that fit your current selling policy.
- get_selling_eligibility
- Find outstanding approvals, applicable waiting periods and the earliest time the clocks allow activation.
Example
{ "gameId": 42 } - get_game_offer
- Read your list price, paid-offer activation and discount calendar. Use its discount IDs to change the calendar.
Example
{ "gameId": 42 } - set_game_price
- Set the list price. Activate the paid offer separately when the game is eligible.
Example
{ "gameId": 42, "change": { "currency": "BRL", "listPriceMinor": 2000 } } - activate_game_offer
- Start selling at the configured price, or pass false to return to free claims.
Example
{ "gameId": 42, "change": { "active": true } } - schedule_game_discount
- Schedule a discount on an active paid offer. For a percentage, send percent and set amountMinor to null. For a fixed discount, set kind to fixed, supply amountMinor in centavos and set percent to null.
Example
{ "gameId": 42, "change": { "kind": "percent", "percent": 10, "amountMinor": null, "startsAtUtc": "2030-05-10T00:00:00Z", "endsAtUtc": "2030-05-17T00:00:00Z" } } - cancel_game_discount
- Cancel a scheduled discount. Canceling a running discount ends it immediately.
Example
{ "gameId": 42, "discountId": 3 }
Find SDK examples and publisher skills
Discover the versions on your deployment before pinning one. Skill downloads include a versioned URL, a ZIP encoded in base64, its byte count and its SHA-256.
- get_sdk_docs
- List languages and releases with an empty argument object. Specify language, version, topic and locale to retrieve one article.
Example
{ "language": "javascript", "version": "1.2.0", "topic": "functions", "locale": "en" } - list_publisher_skills
- List installable skills and their compatible tool and SDK versions.
Example
{ "locale": "en" } - download_game_publishing_skill
- Download the publishing instructions and resumable upload script for a game project.
Example
{ "version": "1.4.0" } - download_cli_skill
- Download the instructions and examples for operating the Inspacy CLI.
Example
{ "version": "2.2.0" } - download_sdk_skill
- Download the instructions for integrating a released game SDK.
Example
{ "version": "1.4.0" }
Administrator access
This tool requires an interactive store administrator’s access token. A publisher account can read its schema during discovery.
- list_accounts
- List store accounts one page at a time and optionally filter by display name, account dates or presence of an avatar.
Example
{ "pageNumber": 1, "pageSize": 10 }
Read game analytics
Read the same six owner-only metrics shown in the game's analytics page. Views require the visitor's opt-in. Refunds appear on their refund date. Gross amounts and refunds stay in their original currencies. Retail playtime counts newly credited intervals.
- get_game_analytics_summary
- Read totals for the period.
Example
{"gameId":42,"from":"2027-01-05","to":"2027-01-08"} - get_game_analytics_series
- Read one row per UTC day.
Example
{"gameId":42,"from":"2027-01-05","to":"2027-01-08"}
Before you start
- Sign in with the confirmed account that owns the game, or use its personal API key. Use the sold title or edition's own ID.
Steps
- In the owned-game editor, select View game analytics. Choose a UTC start date and an exclusive end date up to 90 days apart. You can include today.
- For MCP, call either tool below with the same game and dates. Replace the example ID and dates with your own. The game owner can also use the analytics commands in CLI 2.2.0.
Expected result
Summary totals and daily rows carry exact decimal quantities, per-metric coverage and the last checked time. Only a covered, processed zero means no activity.
If something goes wrong
Use covered days if a metric is partial or uncovered. Refresh delayed data. For a refusal, verify ownership, email confirmation and the UTC date bounds.
Manage ranking categories
A ranking category is one leaderboard of a base game you own. Players see its standings on the game page. Your game's backend submits each player's score through a game SDK, with a credential that has the score permission, and a player keeps their best score in each category.
- list_ranking_categories
- List the ranking categories of an owned game.
Example
{"gameId":42} - create_ranking_category
- Create a ranking category.
Example
{"gameId":42,"category":{"code":"fastest-lap","title":"Fastest lap","order":"ascending","unit":"ms","published":true}} - update_ranking_category
- Replace a category's title, order, unit and state.
Example
{"gameId":42,"code":"fastest-lap","changes":{"title":"Fastest lap","order":"ascending","unit":"ms","state":"archived"}}
Before you start
- Sign in with the confirmed account that owns the game, or use its personal API key. Rankings belong to a base game: downloadable content has none.
Steps
- In the owned-game editor, open the Rankings tab, or call create_ranking_category. Choose a permanent code, the title players read, and the order: ascending when a lower score ranks first, such as a lap time, or descending when a higher score does. A unit such as ms or pts is optional.
- Publish the category when your game is ready to submit scores. To rename, publish, archive or restore it, call update_ranking_category with its complete new values.
- In Redemption credentials, create a credential with the score permission for your game's backend. The Game SDKs section shows how to submit a score and read the standings.
Expected result
list_ranking_categories returns every category of the game with its state and hasScores. A published category appears on the game page. While available is false, the store's policies for rankings are not in force yet: players see no category and scores are refused, and you can still prepare categories.
If something goes wrong
A duplicate code or a 51st category answers 409. Once a category holds a score, its order and unit are frozen: archive it and create another to rank differently. A category never returns to draft. For a refusal, verify ownership and email confirmation.