Make compatible with JSON-RPC 3.x
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3580162. -->
Reported by: [scott_euser](https://www.drupal.org/user/3267594)
Related to !50
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p><del>It seems like without a semver increase this module can be compatible with 3.x JSON-RPC</del>. Updating the module to be compatible with the 3.x JSON-RPC has breaking changes that are not backwards compatible, so would require a semver jump to 2.x here in the MCP module (which will also resolve the test warning e.g. see <a href="https://git.drupalcode.org/project/mcp/-/pipelines">https://git.drupalcode.org/project/mcp/-/pipelines</a>)</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Checkout jsonrpc 3.x branch<br>
See fatal error when attempting to enable MCP module</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<ol>
<li>Adding static return type + composer.json update makes it compatible<del>, while still remaining compatible with 2.x branch</del></li>
<li>Update all plugins to use JSON RPC object and set matching return types with JSON RPC parent class</li>
</ol>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>MR</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>N/A</p>
<h3 id="summary-api-changes">API changes</h3>
<p>N/A</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>N/A</p>
issue