Skip to content

Console read fails to retrieve Assert Error log entries #199

Closed

Description

@ibytergj

Having an issue with

“com.coplaydev.unity-mcp": "https://github.com/dsarno/unity-mcp.git?path=/UnityMcpBridge#feat/bridge-stability“

Where only messages and warnings are retrieved via the read console command - errors are not returned.

Image Image Image Image

Activity

  1. ibytergj commented on Aug 10, 2025

    @ibytergj
    Author

    So to follow up the issue appears be incomplete support for Assert Type error logs. If these types of errors could be retrieved from the Unity console that would be useful for complete log support.

            // Apply the observed "one level lower" correction
            switch (initialType)
            {
                case LogType.Error:
                    return LogType.Warning; // Error becomes Warning
                case LogType.Warning:
                    return LogType.Log; // Warning becomes Log
                case LogType.Assert:
                    return LogType.Assert; // Assert remains Assert (no lower level defined)
                case LogType.Log:
                    return LogType.Log; // Log remains Log
                default:
                    return LogType.Log; // Default fallback
            }
    

    """Gets messages from or clears the Unity Editor console.

        Args:
            ctx: The MCP context.
            action: Operation ('get' or 'clear').
            types: Message types to get **('error', 'warning', 'log', 'all').**
            count: Max messages to return.
            filter_text: Text filter for messages.
            since_timestamp: Get messages after this timestamp (ISO 8601).
            format: Output format ('plain', 'detailed', 'json').
            include_stacktrace: Include stack traces in output.
    
        Returns:
            Dictionary with results. For 'get', includes 'data' (messages).
        """
    
  2. changed the title [-]Console read fails to retrieve error entries[/-] [+]Console read fails to retrieve Assert Error log entries[/+] on Aug 10, 2025
  3. added
    bug
    on Aug 10, 2025
  4. self-assigned this
    on Aug 10, 2025
  5. added
    duplicate
    on Aug 11, 2025
  6. dsarno commented on Aug 11, 2025

    @dsarno
    Collaborator

    Duplicate of #125 . Fix in progress.

  7. dsarno commented on Aug 12, 2025

    @dsarno
    Collaborator

    Should be fixed by #202 . Closing this issue, let us know if any problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugduplicate

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions