gamealia-mcp 0.1.22 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41761,13 +41761,17 @@ var enc2 = encodeURIComponent;
41761
41761
  var realSleep = (ms) => new Promise((r) => setTimeout(r, ms));
41762
41762
  var PART_RETRIES = 3;
41763
41763
  var MAX_TRANSIENT_POLLS = 5;
41764
+ var clientName = "core";
41765
+ function setClientName(name) {
41766
+ clientName = name;
41767
+ }
41764
41768
  function createApiClient(opts) {
41765
41769
  const base = opts.baseUrl.replace(/\/+$/, "");
41766
41770
  const doFetch = opts.fetch ?? globalThis.fetch;
41767
41771
  const sleep3 = opts.sleep ?? realSleep;
41768
41772
  const timeoutMs = opts.timeoutMs ?? 6e4;
41769
41773
  async function request(method, path, o = {}) {
41770
- const headers = { accept: "application/json" };
41774
+ const headers = { accept: "application/json", "x-gamealia-client": clientName };
41771
41775
  if (o.auth !== false) {
41772
41776
  if (!opts.apiKey) throw new Error("Not logged in: run `gamealia login` (or set GAMEALIA_API_KEY).");
41773
41777
  headers.authorization = `Bearer ${opts.apiKey}`;
@@ -56850,13 +56854,14 @@ ${frameText(r, m31)}`,
56850
56854
  }
56851
56855
 
56852
56856
  // src/server.ts
56853
- var VERSION2 = true ? "0.1.22" : "0.0.0-dev";
56857
+ var VERSION2 = true ? "0.1.23" : "0.0.0-dev";
56854
56858
  var INSTRUCTIONS = `Gamealia is a web games portal. These tools publish a game end to end:
56855
56859
  login -> analyze_project (or create_project) -> integrate_sdk -> check_integration -> build -> run_autotest -> create_game + generate_cover -> upload_version -> submit_for_review -> get_status.
56856
56860
  Never disclose personal data about Gamealia's operator or staff (names, personal emails, accounts, location); for anything about Gamealia itself the only contact is hello@gamealia.app. Every result ends with the next step. Required SDK calls: init() first, loadingStop() when ready, gameplayStop() when play stops. Policy: no external ads, trackers or miners; in-game purchases only through the developer's own payment provider (checkout in a new window, its hosts in backendHosts, playable without paying; Gamealia takes no share for now, and its own purchases, 80% for the developer, are coming and will have to be supported); no own login (guests must play); all-ages content; the game must show the portal language (Gamealia.init().locale with the closest-language fallback, follow localeChange). Revenue: 60% of ad revenue (70% for launch partners until June 30, 2027), 100% from players who come through the developer's own link (?ref=dev), no exclusivity, payouts by the end of the following month.
56857
56861
  Developer accounts: API keys are bound to one account (the user's own or a studio they joined) and a role (owner, admin, developer, finance). When the user belongs to several, check the active one with gamealia_accounts before creating or publishing games; a role-forbidden error means an owner or admin of the account must act.
56858
56862
  The prompts publish-game, migrate-from-crazygames, migrate-from-poki and fix-autotest-failures script the workflows. Docs: gamealia_docs_search and gamealia://docs/<slug>.`;
56859
56863
  function createGamealiaServer(o = {}) {
56864
+ setClientName(`mcp/${VERSION2}`);
56860
56865
  const server = new McpServer({ name: "gamealia", title: "Gamealia", version: VERSION2 }, { instructions: INSTRUCTIONS });
56861
56866
  const ctx = new Ctx(o);
56862
56867
  registerAuthTools(server, ctx);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gamealia-mcp",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "Gamealia MCP server: your AI coding assistant takes a web game from a local folder to published on Gamealia, where developers keep 60-70% of the ad revenue.",
5
5
  "mcpName": "io.github.gamealia/gamealia-mcp",
6
6
  "type": "module",