Skip to main content

Module server

Module server 

Source
Available on crate feature payments only.
Expand description

Server and router integration for payment protocols.

This module provides helpers for exposing ACP stable 2026-01-30 and AP2 v0.1-alpha (2026-03-22) commerce endpoints from ADK deployments.

§ACP routes

When the acp feature is enabled, AcpRouterBuilder produces an Axum router covering the stable checkout session lifecycle and delegated payment endpoints. The acp-experimental feature adds discovery and webhook routes via AcpExperimentalRouterBuilder.

§AP2 integration

AP2 flows are mandate-based and typically operate over A2A message or MCP tool surfaces rather than dedicated HTTP routes. The Ap2Adapter in crate::protocol::ap2 can be wired into existing A2A or MCP server helpers already present in adk-server.

§Payment tools

crate::tools::PaymentToolsetBuilder produces scope-protected tools suitable for registration with adk-tool or any agent tool registry.