Skip to content

feat(asset): expose asset_delete / asset_move / asset_rename as MCP tools#244

Open
zajalist wants to merge 1 commit into
mainfrom
feat/asset-tools
Open

feat(asset): expose asset_delete / asset_move / asset_rename as MCP tools#244
zajalist wants to merge 1 commit into
mainfrom
feat/asset-tools

Conversation

@zajalist

Copy link
Copy Markdown
Owner

The asset domain (delete/move/rename and more) is already implemented in the UE C++ HaybaMCPAssetHandler but was unreachable to the agent — hayba only exposes a UE command once it has a TS wrapper registered in index.ts (the ue_legacy route rejects anything not allow-listed in sidecar.json). This adds the missing wrapper layer for the three mutating asset ops, mirroring the material_* tools landed in #243.

Tools added

  • asset_delete {path}{deleted:true}
  • asset_move {path, target_dir}{ok, old_path, new_path} (keeps the asset name; references/redirectors handled by the C++ via FAssetRenameData)
  • asset_rename {path, new_name}{old_path, new_path}

Changes

  • New wrappers src/tools/asset/asset-{delete,move,rename}.ts (copy the material-get-info.ts shape; param names verified against the C++ TryGetStringField calls).
  • Registered in src/tools/index.ts: server.tool(...) + remember(...) + eager reg(...) for each.
  • Source-check test src/tools/asset/asset-tools.test.ts (12 assertions, green).

Verification

  • vitest run src/tools/asset/asset-tools.test.ts → 12/12 pass.
  • tsc --noEmit clean (after building the @hayba/* workspace deps).
  • Full suite: 557 pass / 27 fail — the 27 are the documented pre-existing UE-bridge mock failures, unrelated to this change.

No C++, plugin, or editor changes — the commands already ship in the plugin; this only makes them agent-callable after an MCP server reconnect.

🤖 Generated with Claude Code

…ools

The asset domain (delete/move/rename and more) is already implemented in the
UE C++ HaybaMCPAssetHandler but was unreachable to the agent — hayba only
exposes a UE command once it has a TS wrapper registered in index.ts (the
ue_legacy route rejects anything not allow-listed). Adds the wrapper layer
(mirroring the material_* tools) for the three mutating asset ops, with a
source-check test. No C++ / plugin changes.
@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hayba Ready Ready Preview, Comment Jun 22, 2026 2:36am

@coderabbitai

coderabbitai Bot commented Jun 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@zajalist, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 41 minutes and 46 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 84a2193e-ffad-416b-bc26-b40b05eaa88d

📥 Commits

Reviewing files that changed from the base of the PR and between 87c388f and 72e1ad3.

📒 Files selected for processing (5)
  • mcp-tools/hayba-mcp/src/tools/asset/asset-delete.ts
  • mcp-tools/hayba-mcp/src/tools/asset/asset-move.ts
  • mcp-tools/hayba-mcp/src/tools/asset/asset-rename.ts
  • mcp-tools/hayba-mcp/src/tools/asset/asset-tools.test.ts
  • mcp-tools/hayba-mcp/src/tools/index.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/asset-tools

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant