<html>
    <head>
      <base href="https://bugzilla.suse.com/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - mcp-server-uyuni container crashes: asyncio.run() called on non-async main_cli() function"
   href="https://bugzilla.suse.com/show_bug.cgi?id=1263587">1263587</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>mcp-server-uyuni container crashes: asyncio.run() called on non-async main_cli() function
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>SUSE AI
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>SUSE AI Application Containers
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5 - None
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>container
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>ai-maintainers@lists.suse.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>orruiz@clinic.cat
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>ai-maintainers@lists.suse.com
          </td>
        </tr>

        <tr>
          <th>Target Milestone</th>
          <td>---
          </td>
        </tr>

        <tr>
          <th>Found By</th>
          <td>---
          </td>
        </tr>

        <tr>
          <th>Blocker</th>
          <td>---
          </td>
        </tr></table>
        <p>
          <div>
          <pre>The container image
registry.suse.com/suse/agentic/mcp/multi-linux-manager:latest 
fails to start with the following error:

  ValueError: a coroutine was expected, got None

Root cause: __init__.py calls asyncio.run(main_cli()), but main_cli() in
server.py 
is a regular non-async function, so it returns None instead of a coroutine.

Workaround: override the container entrypoint to call main_cli() directly:

  python3 -c "from mcp_server_uyuni.server import main_cli; main_cli()"

Environment:
- Image: registry.suse.com/suse/agentic/mcp/multi-linux-manager:latest
- FastMCP: 2.12.4 / MCP SDK: 1.15.0 / Python 3.13</pre>
          </div>
        </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>