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
{{ message }}
Repository navigation
Public executeToolCall routes MCPL tools by first matching prefix, not by listing owner / longest prefix #227
Found while reviewing connectome-host #191; pre-existing on main (e457abd, v0.21.0) and unchanged by #220.
What happens
executeToolCallFrom (the path behind the public executeToolCall, used for promise-based and programmatic callers) scans the server configs and takes the first whose prefix matches:
With two servers whose prefixes nest (foo and foo--bar), a call to foo--bar--x resolves to ['inner', 'foo--bar'] on the model path, but the public path invokes server outer with tool bar--x. The same tool name runs a different server operation depending on which dispatcher it entered through. An in-memory RPC probe reproduced exactly that.
Needs nested prefixes to bite, so low frequency, but it is a wrong-target dispatch when it does.
Suggested direction
Use resolveMcplTool in executeToolCallFrom as well, and strip the resolved prefix when deriving the server-side tool name.
Activity
fix(mcpl): a programmatic tool call reaches the server the model's ca…