Port v2 thread metadata tool to main

Replace the standalone rename implementation in PR #12018 with a port of t3_thread_update from v2 PR #8690. Wout selected the complete tool.

Preserved contract

BehaviorPort
ActionsRename, regenerate title, link pull request, unlink pull request.
TargetOptional threadId defaults to the caller. Explicit targets must belong to the caller's project.
InputObject-root schema, action-specific validation, trimmed titles matching V1’s uncapped title contract, validated HTTP(S) PR URLs.
Retry keysOptional clientRequestId derives a stable command ID scoped to the provider session, target, and action. The existing command receipt suppresses duplicate mutations.

Main-specific adaptations

Use main's thread.meta.update command and existing manual-title protection. Link adds the requested PR through main's multi-link command; unlink removes the current PR and preserves other links. The response's linkedPullRequest is the current PR, including links outside the project's repository. Existing standalone PR tools remain supported.

Use main's thread projections for project authorization and returned metadata. Return the accepted command's ID and sequence with the current saved title, regeneration state, linked PR, and update time. On a retry, the receipt remains stable while the response reflects current saved metadata. Do not add another persistence system or import v2 orchestration.

Keep the thread-metadata capability independent of browser and device access. Register the port in the shared MCP server used by all providers. The existing metadata events synchronize web, desktop, and mobile. Add the tool's existing display name to the shared tool-label mapping.

Proof and delivery

Port schema validation tests. Exercise all four actions through the registered MCP tool against the real orchestration engine and SQLite projection. Verify same-project targeting, foreign and missing targets, retry deduplication including concurrent calls, invalid inputs, manual-title protection, and PR link/unlink state. Run focused contract, server, and presentation checks.

Update the existing PR title, description, and reproducible proof around the complete port, credit #8690, audit the final revision, and monitor CI and reviews until no actionable findings remain. Human approval and merge remain separate.