Skip to content

docs: add MnemoPay extension tutorial#8306

Open
t49qnsx7qt-kpanks wants to merge 2 commits intoblock:mainfrom
t49qnsx7qt-kpanks:add-mnemopay-extension
Open

docs: add MnemoPay extension tutorial#8306
t49qnsx7qt-kpanks wants to merge 2 commits intoblock:mainfrom
t49qnsx7qt-kpanks:add-mnemopay-extension

Conversation

@t49qnsx7qt-kpanks
Copy link
Copy Markdown

Summary

Adds a tutorial for MnemoPay — the first MCP extension that combines persistent memory, micropayments, and fraud-aware trust scoring for Goose agents.

  • 13 MCP tools: 5 memory, 4 payment, 4 observability
  • Payment-memory feedback loop: settlements reinforce memories that led to good decisions
  • Bayesian trust scoring with reputation-gated transaction limits
  • 10-signal fraud detection pipeline
  • Published on npm: @mnemopay/sdk v0.5.0
  • 143 tests passing, MIT licensed

Setup

One line:

goose configure extensions --add mnemopay -- npx -y @mnemopay/sdk

Tutorial includes

  • Tool reference table (all 13 tools)
  • Setup instructions (CLI, Desktop, config file)
  • Usage examples (memory recall, payment feedback loop)
  • Recipe integration
  • Lightning Network pairing guide
  • Environment variable reference

🤖 Generated with Claude Code

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1f2e9c6d04

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

<TabItem value="cli" label="Goose CLI" default>

```sh
goose configure extensions --add mnemopay -- npx -y @mnemopay/sdk
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Replace invalid goose configure extensions --add command

The one-line setup command uses goose configure extensions --add ..., but the CLI defines configure as a standalone command with no extensions subcommand (crates/goose-cli/src/cli.rs shows Configure {} at lines 701-705). Users following this tutorial will get a CLI parse error before they can install the extension, which blocks the primary setup path.

Useful? React with 👍 / 👎.

MnemoPay includes a pre-configured recipe:

```sh
goose session --recipe https://raw.githubusercontent.com/mnemopay/mnemopay-sdk/master/integrations/goose/recipe.yaml
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Switch recipe example from session --recipe to run --recipe

This command uses goose session --recipe ..., but --recipe is only part of InputOptions on Command::Run (crates/goose-cli/src/cli.rs lines 181-217 and 808-813); Command::Session does not accept recipe input flags (lines 760-798). As written, the Recipe section’s command will fail for readers trying to run the provided recipe URL.

Useful? React with 👍 / 👎.

@@ -0,0 +1,166 @@
---
title: MnemoPay Extension
description: Add MnemoPay MCP Server as a Goose Extension for persistent memory, micropayments, and fraud-aware trust scoring
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Convert product name to lowercase goose in this tutorial

The new documentation repeatedly uses Goose with an uppercase G, which violates the documentation branding rule requiring lowercase goose for all docs content under documentation/ (documentation/AGENTS.md lines 5-10). Keeping this capitalization introduces a direct style-policy regression in the added tutorial.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5d0756007f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

MnemoPay includes a pre-configured recipe:

```sh
goose run --recipe https://raw.githubusercontent.com/mnemopay/mnemopay-sdk/master/integrations/goose/recipe.yaml
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Replace raw URL in run --recipe example with supported input

This command documents goose run --recipe with a https://raw.githubusercontent.com/... URL, but the CLI only accepts a recipe name or filesystem path (InputOptions::recipe in crates/goose-cli/src/cli.rs) and resolves it via load_recipe_file (crates/goose-cli/src/recipes/search_recipe.rs), which calls local file loading first. A raw HTTP URL is treated as a path and fails to load, so users following this section will hit an error instead of running the recipe.

Useful? React with 👍 / 👎.

Comment on lines +147 to +150
lightning:
type: stdio
cmd: npx
args: ["-y", "@lightninglabs/lightning-mcp-server"]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add required enabled field to lightning extension config

The YAML block under pairing omits enabled for extension entries, but config parsing expects each extension to deserialize into ExtensionEntry { enabled: bool, ... } (crates/goose/src/config/extensions.rs), and malformed entries are skipped. If users copy this snippet into config.yaml, the lightning extension will not be loaded, so the documented pairing flow will not work.

Useful? React with 👍 / 👎.

t49qnsx7qt-kpanks and others added 2 commits April 4, 2026 00:38
Add tutorial for MnemoPay MCP Server — persistent memory, micropayments,
and fraud-aware trust scoring for Goose agents.

13 MCP tools (memory, payments, observability) with a unique payment-memory
feedback loop where successful settlements reinforce agent memories.

npm: @mnemopay/sdk
GitHub: https://github.com/mnemopay/mnemopay-sdk

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Jerry Omiagbo <jeremiah@getbizsuite.com>
- Replace `goose configure extensions --add` with `goose session --with-extension`
- Replace `goose session --recipe` with `goose run --recipe`
- Lowercase "Goose" to "goose" per documentation branding rules

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Jerry Omiagbo <jeremiah@getbizsuite.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8792ff77a6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +143 to +146
mnemopay:
type: stdio
cmd: npx
args: ["-y", "@mnemopay/sdk"]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add required name fields in pairing config entries

In the pairing YAML, the stdio extension objects omit name, but ExtensionConfig::Stdio requires name during deserialization (crates/goose/src/agents/extension.rs), and malformed entries are skipped in get_extensions_map_with_config (crates/goose/src/config/extensions.rs). As written, users copying this block will not load these extensions from config.yaml, so the documented MnemoPay+Lightning pairing flow will fail.

Useful? React with 👍 / 👎.

cmd: npx
args: ["-y", "@mnemopay/sdk"]
enabled: true
env:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use envs key for extension environment variables

This config example uses env, but stdio extension config expects envs (ExtensionConfig::Stdio in crates/goose/src/agents/extension.rs). Because unknown fields are not consumed into the extension env map, MNEMOPAY_AGENT_ID from this snippet will not be applied, which breaks the tutorial’s stated behavior of setting a unique agent identity via config.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant