You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[prompt_router] in rmcp-macros 1.4+ generates a private associated function by default — now passes vis = "pub(crate)" so XcStringsMcpServer::new() (in a different module) can call Self::prompt_router() once at startup.
The handler attributes now point at cached struct fields (#[tool_handler(router = self.tool_router)], #[prompt_handler(router = self.prompt_router)]) so the routers are built once in XcStringsMcpServer::new() instead of being rebuilt on every JSON-RPC dispatch (rmcp 1.4+ macros default to Self::tool_router() / Self::prompt_router() function calls, which would allocate a fresh HashMap + per-route Arc<closure> on each tools/call, tools/list, prompts/get, prompts/list).