Skip to content

[Bug]: AI无法正确使用ManageAsset的Search action,且错误调用该工具会造成Unity卡死 #1177

Open

Description

@WinderBear

What happened?

尝试让AI搜索引擎中的某个文件,因为没有提示参数格式,AI极大概率填错参数,search action不会拦截错误,而是直接用空字符串去搜,结果会把整个项目的资源返回,如果项目资源极多,引擎会一直处理GetAssetData

Reproduction steps

  1. Open Window > MCP for Unity
  2. Click Start Server
  3. In Claude Desktop, prompt: "用 manage_asset工具搜索xxx"(xxx为项目的资产名)
  4. Observe tool use in Claude Desktop

Unity version

2022.3.54.f1

MCP for Unity package version

9.6.3

Python server version

No response

MCP client

Claude Code

Transport

HTTP (default)

OS

Windows

Relevant logs / console output


Checks

  • I searched existing issues and did not find a duplicate
  • I included logs / steps to reproduce

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions