From the salesagent v3.12 → 4.x migration (SDK_FEEDBACK.md, item #14).
A fresh MockSellerPlatform with 5 methods shows ~50 entries in handler.advertised_tools after create_adcp_server_from_platform(). The advertise_all flag controls this but isn't surfaced in create_adcp_server_from_platform's signature — only in serve()/create_mcp_server.
So the standalone "build the handler" path doesn't have an obvious knob for "advertise only what I implement."
Ask
Add advertise_all=False (default) to create_adcp_server_from_platform's signature and have it filter advertised_tools to declared methods, matching serve()'s default.
Acceptance
handler = create_adcp_server_from_platform(platform=MyPlatform()).handler — handler.advertised_tools returns only methods the platform implements, without an extra kwarg.
Existing callers passing advertise_all=True continue to opt into the full spec surface.
From the salesagent v3.12 → 4.x migration (
SDK_FEEDBACK.md, item #14).A fresh
MockSellerPlatformwith 5 methods shows ~50 entries inhandler.advertised_toolsaftercreate_adcp_server_from_platform(). Theadvertise_allflag controls this but isn't surfaced increate_adcp_server_from_platform's signature — only inserve()/create_mcp_server.Ask
Add
advertise_all=False(default) tocreate_adcp_server_from_platform's signature and have it filteradvertised_toolsto declared methods, matchingserve()'s default.Acceptance
handler = create_adcp_server_from_platform(platform=MyPlatform()).handler—handler.advertised_toolsreturns only methods the platform implements, without an extra kwarg.Existing callers passing
advertise_all=Truecontinue to opt into the full spec surface.