mirror of
https://github.com/go-micro/go-micro.git
synced 2026-06-15 19:35:13 +02:00
Integrate the x402 payment protocol (HTTP 402) so a tool can require a stablecoin payment and an agent can settle it — the next step after autonomous agents (blog 21): agents that act, and pay. - wrapper/x402: HTTP middleware enforcing the 402 challenge/verify flow, with a pluggable Facilitator interface. Go Micro carries no chain or crypto code — verification/settlement is delegated to a facilitator (Coinbase CDP, Alchemy, self-hosted), so Base and Solana are just different facilitators behind one interface. HTTPFacilitator default; tests cover challenge / accept / reject via a mock facilitator. - MCP gateway: optional Options.Payment gates /mcp/call (listing tools and health stay free); off unless configured. - micro mcp serve and micro-mcp-gateway: opt-in --x402-pay-to/-price/ -network/-facilitator flags (env vars on the standalone binary). - blog/22 'Integrating x402: Payments for Agents'; README feature row. Pricing is flat per call for now; richer models and an agent-side spend cap (next to MaxSteps/ApproveTool) are follow-ups. Co-authored-by: Claude <noreply@anthropic.com>
65 lines
923 B
Plaintext
65 lines
923 B
Plaintext
# Develop tools
|
|
/.idea/
|
|
/.trunk
|
|
|
|
# VS Code workspace files (keep settings for consistency)
|
|
/.vscode/*
|
|
!/.vscode/settings.json
|
|
|
|
# Binaries for programs and plugins
|
|
*.exe
|
|
*.exe~
|
|
*.dll
|
|
*.so
|
|
*.dylib
|
|
|
|
# Folders
|
|
_obj
|
|
_test
|
|
_build
|
|
|
|
# Architecture specific extensions/prefixes
|
|
*.[568vq]
|
|
[568vq].out
|
|
|
|
*.cgo1.go
|
|
*.cgo2.c
|
|
_cgo_defun.c
|
|
_cgo_gotypes.go
|
|
_cgo_export.*
|
|
|
|
# Test binary, build with `go test -c`
|
|
*.test
|
|
|
|
# Output of the go coverage tool, specifically when used with LiteIDE
|
|
*.out
|
|
coverage.html
|
|
|
|
# vim temp files
|
|
*~
|
|
*.swp
|
|
*.swo
|
|
|
|
# go work files
|
|
go.work
|
|
go.work.sum
|
|
|
|
# Build artifacts
|
|
dist/
|
|
bin/
|
|
|
|
# Example binaries (go build in examples/)
|
|
examples/**/server/server
|
|
examples/**/client/client
|
|
examples/mcp/documented/documented
|
|
examples/mcp/hello/hello
|
|
|
|
# IDE-specific files
|
|
.DS_Store
|
|
/micro
|
|
|
|
# Built example/harness binaries (go build ./path/... drops these at repo root)
|
|
/plan-delegate
|
|
/agent-plan-delegate
|
|
/micro-mcp-gateway
|