Keep author-provided _meta.ui on tools without a view, or document the rewrite
Author: aiden-laneCreated Sep 28, 2026Updated Sep 28, 2026
Labelsclient
We maintain @getonlane/mcp-auth, an adapter for mcp-use servers (mcp-use 2.5.2).
What we see: for a tool with no view, mcp-use deletes an author's _meta.ui.resourceUri and _meta["ui/resourceUri"]. For a tool with a view, it adds them and ui.visibility.
What we need: either keep author-provided _meta.ui intact on tools without a view, or document the rewrite as part of the serialization contract.
Why: metadata an author sets should reach the client as set, or the rewrite should be predictable enough to reproduce.
We are happy to send a PR for either option.
Source: mcp-use/mcp-use