Directories
¶
| Path | Synopsis |
|---|---|
|
Package client provides an HTTP client with automatic 402 Payment Required handling.
|
Package client provides an HTTP client with automatic 402 Payment Required handling. |
|
mcp
|
|
|
client
Package client pays for MCP tool calls made with the official MCP Go SDK (github.com/modelcontextprotocol/go-sdk), matching mppx's McpClient.wrap.
|
Package client pays for MCP tool calls made with the official MCP Go SDK (github.com/modelcontextprotocol/go-sdk), matching mppx's McpClient.wrap. |
|
internal/payment
Package payment holds the MCP payment flow shared by the MCP SDK and raw JSON-RPC server integrations: reading the Credential from _meta, running the charge, and building the payment error.
|
Package payment holds the MCP payment flow shared by the MCP SDK and raw JSON-RPC server integrations: reading the Credential from _meta, running the charge, and building the payment error. |
|
jsonrpc
Package jsonrpc charges for MCP tool calls handled as raw JSON-RPC messages, without an MCP SDK, matching mppx's raw MCP server transport (Transport.mcp()):
|
Package jsonrpc charges for MCP tool calls handled as raw JSON-RPC messages, without an MCP SDK, matching mppx's raw MCP server transport (Transport.mcp()): |
|
server
Package server charges for MCP tools served with the official MCP Go SDK (github.com/modelcontextprotocol/go-sdk), matching the mppx/mcp/server transport (Transport.mcpSdk):
|
Package server charges for MCP tools served with the official MCP Go SDK (github.com/modelcontextprotocol/go-sdk), matching the mppx/mcp/server transport (Transport.mcpSdk): |
|
Package mpp implements the Machine Payments Protocol (MPP) types and header serialization for Go.
|
Package mpp implements the Machine Payments Protocol (MPP) types and header serialization for Go. |
|
Package server provides the generic challenge-or-verify flow for Payment authentication on the server side.
|
Package server provides the generic challenge-or-verify flow for Payment authentication on the server side. |
|
echo
Package echoadapter provides Echo middleware for MPP-protected routes.
|
Package echoadapter provides Echo middleware for MPP-protected routes. |
|
fiber
Package fiberadapter provides Fiber middleware for MPP-protected routes.
|
Package fiberadapter provides Fiber middleware for MPP-protected routes. |
|
gin
Package ginadapter provides Gin middleware for MPP-protected routes.
|
Package ginadapter provides Gin middleware for MPP-protected routes. |
|
Package tempo contains the Tempo-specific charge method built on top of the generic pkg/client and pkg/server HTTP 402 flow, including request helpers, attribution utilities, and replay stores for single-process and Redis-backed deployments.
|
Package tempo contains the Tempo-specific charge method built on top of the generic pkg/client and pkg/server HTTP 402 flow, including request helpers, attribution utilities, and replay stores for single-process and Redis-backed deployments. |
|
client
Package chargeclient contains the Tempo charge client method for creating Payment Credentials that satisfy Tempo HTTP 402 Challenges.
|
Package chargeclient contains the Tempo charge client method for creating Payment Credentials that satisfy Tempo HTTP 402 Challenges. |
|
server
Package chargeserver contains the Tempo charge server method and verifier.
|
Package chargeserver contains the Tempo charge server method and verifier. |
Click to show internal directories.
Click to hide internal directories.