feat: Add MnemoPay tools — agent memory + wallet#7514
Conversation
Add 12 BaseTool subclasses under autogen_ext.tools.mnemopay that give AutoGen agents persistent memory and a micropayment wallet via the MnemoPay MCP server (npx -y @mnemopay/sdk). Memory tools: remember, recall, forget, reinforce, consolidate Wallet tools: charge, settle, refund Info tools: balance, profile, history, logs Each tool follows AutoGen's BaseTool[ArgsT, ReturnT] pattern with Pydantic arg/return models and communicates over stdio using the existing autogen_ext.tools.mcp session infrastructure. Includes mnemopay_tools() factory and [mnemopay] optional dependency. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
i agree to CLA |
|
No [company=...] part needed |
|
@microsoft-github-policy-service agree |
|
Hey team — just checking in on this. Happy to address any feedback or make changes if needed. Let me know if there's anything blocking review. |
|
hey — checking in on this. shipped a few things since the original PR that might be relevant to the review: v1.2.2 went out this week with a full stress test (200K transactions, 741 tests passing). also added a commerce engine for autonomous purchasing and tightened the FICO scoring model. happy to rebase on main or split this into a smaller PR if that helps move it through review. just let me know what would make this easier to merge. |
|
Closing this — MnemoPay is going fully standalone (npm + MCP + landing page). Thanks for the review bandwidth; no action needed on your end. |
Summary
BaseToolsubclasses underautogen_ext.tools.mnemopaythat give AutoGen agents persistent memory and a micropayment wallet via the MnemoPay MCP serverremember,recall,forget,reinforce,consolidate— store, search, boost, and prune agent knowledge across sessionscharge,settle,refund— escrow-based micropayments with reputation trackingbalance,profile,history,logs— agent stats, tx history, and audit trailMotivation
AI agents today are stateless and cannot transact. MnemoPay solves both problems through a single MCP server (
npx -y @mnemopay/sdk):The
mnemopay-autogenPyPI package (v1.0.0) already exists as a standalone integration. This PR brings the tools directly intoautogen-extso AutoGen users can access them natively.Architecture
BaseTool[ArgsT, ReturnT]subclass with typed Pydantic arg/return models_MnemoPayMixinprovides shared MCP client logic using AutoGen's existingcreate_mcp_server_sessioninfrastructuremnemopay_tools(config)factory returns all 12 tools ready to pass toAssistantAgent[mnemopay]optional dependency inpyproject.toml(depends onmcp>=1.11.0)Usage
Or use individual tools:
Files changed
autogen_ext/tools/mnemopay/__init__.pyautogen_ext/tools/mnemopay/_config.pyMnemoPayConfig(agent_id, mode, server_url, npx_command)autogen_ext/tools/mnemopay/_tools.pymnemopay_tools()factoryautogen-ext/pyproject.toml[mnemopay]optional dependencyTest plan
python -c "from autogen_ext.tools.mnemopay import mnemopay_tools"imports cleanlylen(mnemopay_tools()) == 12name,description, andschemapropertiesRememberTool→RecallToolround-trip with live MCP serverChargeTool→SettleToolround-trip with live MCP serverRelated
🤖 Generated with Claude Code