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
The adcp library provides spec-compliant types, but there's no example showing how to wire them into a working sales agent. The reference salesagent (prebid/salesagent) is ~15,000 lines across 50+ files with PostgreSQL, multi-tenancy, A2A, admin UI, multiple ad server adapters, and AI-powered ranking. There's no simple path from pip install adcp to a running server.
A minimal starter template shipped with this library would dramatically lower the barrier to entry.
What's Missing
When building a sales agent from scratch using this library, I had to:
Clone and reverse-engineer the full reference implementation to understand patterns
Manually introspect every type via model_fields (checking required vs optional)
Runs with python examples/minimal_agent.py (no Docker, no Postgres)
Includes comments mapping to AdCP spec sections
Is testable with npx @adcp/client http://localhost:8000/mcp
I built a working example (~250 lines) for a local news publisher with four products (newsletter sponsorship, website display, mobile display, event sponsorship). Happy to submit as a PR.
Why This Matters
This library is the primary building block for Python-based AdCP agents. The current onramp is:
pip install adcp → read 15K-line reference impl → extract patterns → build your own
Summary
The
adcplibrary provides spec-compliant types, but there's no example showing how to wire them into a working sales agent. The reference salesagent (prebid/salesagent) is ~15,000 lines across 50+ files with PostgreSQL, multi-tenancy, A2A, admin UI, multiple ad server adapters, and AI-powered ranking. There's no simple path frompip install adcpto a running server.A minimal starter template shipped with this library would dramatically lower the barrier to entry.
What's Missing
When building a sales agent from scratch using this library, I had to:
model_fields(checking required vs optional)The docs site has a quickstart, but it focuses on the client side (calling agents), not the server side (building agents with this library).
Proposal
Add an
examples/directory with a single-file sales agent that:get_adcp_capabilities,get_products, andcreate_media_buyfastmcp+ this library's types (Product,FormatId,CpmFixedRatePricingOption,FlatRatePricingOption,CreateMediaBuySuccessResponse, etc.)python examples/minimal_agent.py(no Docker, no Postgres)npx @adcp/client http://localhost:8000/mcpI built a working example (~250 lines) for a local news publisher with four products (newsletter sponsorship, website display, mobile display, event sponsorship). Happy to submit as a PR.
Why This Matters
This library is the primary building block for Python-based AdCP agents. The current onramp is:
The ideal onramp is:
Scope
Intentionally minimal: