<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[Bug Report] [Cloud Code / MCP] Different leaderboard entry fields between Portal and MCP execution]]></title><description><![CDATA[<p dir="auto">Hi BrainCloud Team</p>
<p dir="auto">The same uploaded Cloud Code script succeeds in Portal Run and Debug, but fails when called through MCP using the same app and parameters.</p>
<p dir="auto">Inside Cloud Code, the script calls:</p>
<p dir="auto">leaderboardProxy.getGlobalLeaderboardPageByVersion(<br />
leaderboardId, "HIGH_TO_LOW", 0, 0, 1<br />
);</p>
<p dir="auto">The original script successfully reads score, rank, and data when executed from the Portal. However, diagnostics during MCP execution show:</p>
<ul>
<li>score, rank, and data are undefined.</li>
<li>The entry contains bestScore, otherData, and tRank instead.</li>
<li>isClientBridge() returns true; isServerBridge() returns false.</li>
</ul>
<p dir="auto">This difference is observable inside the Cloud Code script, before its result is returned to MCP.</p>
<p dir="auto">Steps to reproduce</p>
<ol>
<li>Use a client-callable Cloud Code script that reads an existing historical division leaderboard.</li>
<li>Inspect the first entry’s keys and its score, rank, and data fields.</li>
<li>Compare Portal Run and Debug with MCP initClientSession → runScript, using identical inputs.</li>
</ol>
<p dir="auto">Expected: consistent entry fields across both execution paths.</p>
<p dir="auto">Supporting both field formats in our script works around the issue. Is this difference intentional, or could it be a response-conversion bug?</p>
]]></description><link>https://forums.getbraincloud.com/topic/392/bug-report-cloud-code-mcp-different-leaderboard-entry-fields-between-portal-and-mcp-execution</link><generator>RSS for Node</generator><lastBuildDate>Tue, 20 Oct 2026 17:19:09 GMT</lastBuildDate><atom:link href="https://forums.getbraincloud.com/topic/392.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Oct 2026 13:09:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Bug Report] [Cloud Code / MCP] Different leaderboard entry fields between Portal and MCP execution on Tue, 20 Oct 2026 13:36:38 GMT]]></title><description><![CDATA[<p dir="auto">Can you copy the errors here or send us a support chat message with them?</p>
]]></description><link>https://forums.getbraincloud.com/post/1433</link><guid isPermaLink="true">https://forums.getbraincloud.com/post/1433</guid><dc:creator><![CDATA[Paul Winterhalder]]></dc:creator><pubDate>Tue, 20 Oct 2026 13:36:38 GMT</pubDate></item></channel></rss>