Skip to content

decisioning: surface advertise_all=False on create_adcp_server_from_platform #519

@bokelley

Description

@bokelley

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()).handlerhandler.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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions