Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Export documented Python MCP client factory helpers from ``x402.mcp``.
11 changes: 11 additions & 0 deletions python/x402/mcp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ async def get_weather(city: str) -> str:
"SyncPaymentWrapperConfig",
# Client
"create_x402_mcp_client",
"create_x402_mcp_client_from_config",
"wrap_mcp_client_with_payment",
"wrap_mcp_client_with_payment_from_config",
"x402MCPSession",
"x402MCPClient",
"x402MCPClientSync",
Expand Down Expand Up @@ -90,6 +93,14 @@ def __getattr__(name: str):
from . import client as _client

return getattr(_client, name)
if name in (
"create_x402_mcp_client_from_config",
"wrap_mcp_client_with_payment",
"wrap_mcp_client_with_payment_from_config",
):
from . import client_async as _client_async

return getattr(_client_async, name)
if name == "MCPToolResult":
from .types import MCPToolResult

Expand Down
Loading