Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: CoderGamester/mcp-unity
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.1.0
Choose a base ref
...
head repository: CoderGamester/mcp-unity
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.1.1
Choose a head ref
  • 15 commits
  • 21 files changed
  • 3 contributors

Commits on May 27, 2025

  1. Configuration menu
    Copy the full SHA
    5e7f497 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cb4b03c View commit details
    Browse the repository at this point in the history

Commits on May 31, 2025

  1. fix: Map 'info' log type to Unity's 'Log' type for console log retrieval

    The get_console_logs tool was unable to retrieve info logs because MCP's "info"
    parameter didn't match Unity's internal "Log" type string. Added mapping logic
    to convert "info" to "Log" before filtering log entries.
    
    🤖 Generated with [Claude Code](https://claude.ai/code)
    
    Co-Authored-By: Claude <[email protected]>
    Saqoosha and claude committed May 31, 2025
    Configuration menu
    Copy the full SHA
    cc2cb1a View commit details
    Browse the repository at this point in the history
  2. perf: Optimize log type mapping performance in ConsoleLogsService

    Move log type mapping logic outside the loop to avoid repeated processing.
    Added static Dictionary for MCP-to-Unity log type mappings with case-insensitive
    comparison. This improves performance and provides better extensibility for
    future log type mappings.
    
    Addresses CodeRabbit review feedback for performance optimization.
    
    🤖 Generated with [Claude Code](https://claude.ai/code)
    
    Co-Authored-By: Claude <[email protected]>
    Saqoosha and claude committed May 31, 2025
    Configuration menu
    Copy the full SHA
    1ecfd45 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2025

  1. feat: Expand error log type mapping to include Exception and Assert

    Per PR review feedback, expanded the log type mapping to handle multi-value
    mappings. The "error" filter now returns all error-related log types.
    
    We found that filtering by "error" was not comprehensive enough for
    development purposes - Exception and Assert logs are also error conditions
    that developers need to see.
    
    Changes:
    - Changed LogTypeMapping from Dictionary<string, string> to
      Dictionary<string, HashSet<string>> to support 1-to-many mappings
    - Added "error" → {"Error", "Exception", "Assert"} mapping
    - Updated GetAllLogsAsJson filtering logic to use HashSet.Contains()
    
    This ensures developers can see all error-related logs when filtering
    by "error" type, making debugging more effective.
    
    🤖 Generated with [Claude Code](https://claude.ai/code)
    
    Co-Authored-By: Claude <[email protected]>
    Saqoosha and claude committed Jun 1, 2025
    Configuration menu
    Copy the full SHA
    1f28ea4 View commit details
    Browse the repository at this point in the history
  2. feat: Add pagination support to console logs to prevent LLM token limits

    - Add offset and limit parameters to GetConsoleLogsResource and GetConsoleLogsTool
    - Implement GetLogsAsJson method with pagination in ConsoleLogsService
    - Return logs in newest-first order for better debugging workflow
    - Add automatic memory management with configurable cleanup thresholds
    - Update resource descriptions with pagination usage recommendations
    - Enhance Unity-side and Node.js-side implementations consistently
    
    🤖 Generated with [Claude Code](https://claude.ai/code)
    
    Co-Authored-By: Claude <[email protected]>
    Saqoosha and claude committed Jun 1, 2025
    Configuration menu
    Copy the full SHA
    925431d View commit details
    Browse the repository at this point in the history
  3. refactor: Improve parameter validation and safety in GetConsoleLogsRe…

    …source
    
    - Add bounds validation for offset (≥0) and limit (1-1000) parameters
    - Simplify parameter extraction with helper method
    - Add defensive programming for pagination metadata access
    - Reduce code duplication and improve maintainability
    
    Addresses CodeRabbit review feedback for better error handling and robustness.
    
    🤖 Generated with [Claude Code](https://claude.ai/code)
    
    Co-Authored-By: Claude <[email protected]>
    Saqoosha and claude committed Jun 1, 2025
    Configuration menu
    Copy the full SHA
    6f1ddc0 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #40 from Saqoosha/fix/info-log-type-mapping

    fix: Map 'info' log type to Unity's 'Log' type for console log retrieval
    CoderGamester authored Jun 1, 2025
    Configuration menu
    Copy the full SHA
    b8b9cf8 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2025

  1. Merge upstream/main and resolve conflicts in ConsoleLogsService.cs

    Resolved conflict by combining pagination functionality with the new log type mapping feature from upstream.
    Saqoosha committed Jun 2, 2025
    Configuration menu
    Copy the full SHA
    2ca51d7 View commit details
    Browse the repository at this point in the history
  2. refactor: simplify console logs response format based on PR feedback

    - Remove pagination object and consolidate info into message field
    - Delete deprecated GetAllLogsAsJson method
    - Optimize log counting with single loop for better performance
    - Add default offset/limit values to resource templates
    - Simplify response to only include logs, message, and success fields
    - Move count information (total, filtered, returned) into message text
    - Add parameter validation for offset/limit in TypeScript
    
    This addresses all review comments from PR #42 to make the response
    format more concise and easier for AI agents to process.
    
    🤖 Generated with [Claude Code](https://claude.ai/code)
    
    Co-Authored-By: Claude <[email protected]>
    Saqoosha and claude committed Jun 2, 2025
    Configuration menu
    Copy the full SHA
    5e35e08 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2025

  1. Merge pull request #42 from Saqoosha/feature/console-logs-pagination

    feat: Add pagination support to console logs to prevent LLM token limits
    CoderGamester authored Jun 4, 2025
    Configuration menu
    Copy the full SHA
    b4b4bd6 View commit details
    Browse the repository at this point in the history
  2. feat: Add includeStackTrace option to console logs for token optimiza…

    …tion
    
    - Add includeStackTrace parameter to get_console_logs tool and resource
    - Default to true for backward compatibility (except info logs in resource)
    - Reduces token usage by 80-90% when set to false
    - Update tool/resource descriptions with clear hints for LLMs to use this option
    - Add ⚠️ emoji to highlight token-saving recommendations
    - Implement stack trace filtering in Unity-side ConsoleLogsService
    
    This helps prevent LLM context window overflow when retrieving Unity console logs.
    
    🤖 Generated with [Claude Code](https://claude.ai/code)
    
    Co-Authored-By: Claude <[email protected]>
    Saqoosha and claude committed Jun 4, 2025
    Configuration menu
    Copy the full SHA
    7c14c02 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2025

  1. Merge pull request #44 from Saqoosha/feature/console-logs-stacktrace-…

    …option
    
    feat: Add includeStackTrace option to reduce LLM token usage by 80-90%
    CoderGamester authored Jun 5, 2025
    Configuration menu
    Copy the full SHA
    cb5f0dd View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2025

  1. ## feat(editor): Enhance MCP Unity Editor UI and documentation. These…

    … changes aim to make the MCP Unity Editor more user-friendly, easier to configure, and better documented for developers.
    
    Key changes include:
    - **Editor UI Enhancements:** Updated `McpUnityEditorWindow.cs` to include new sections for connected clients, npm executable path configuration, and direct buttons for configuring Windsurf, Claude Desktop, and Cursor IDEs.
    - **New Settings:** Added `NpmExecutablePath` to `McpUnitySettings.cs` to allow users to specify a custom npm executable path.
    - **Utility Functions:** Implemented new utility methods in `McpUtils.cs` for generating MCP configuration JSON, integrating with various IDEs, and running npm commands for server installation/building.
    - **Comprehensive Documentation:** Overhauled `README.md` and its localized versions (`README-ja.md`, `README_zh-CN.md`) with detailed features, installation steps, usage guides, debugging information, and an extensive FAQ section.
    - **Documentation Assets:** Added a new `docs/` directory containing images referenced in the updated README files.
    CoderGamester committed Jun 12, 2025
    Configuration menu
    Copy the full SHA
    342bc50 View commit details
    Browse the repository at this point in the history
  2. pacakge updated

    CoderGamester committed Jun 12, 2025
    Configuration menu
    Copy the full SHA
    c709528 View commit details
    Browse the repository at this point in the history
Loading