Skip to content

feat: sample plugin - #3

Merged
hieu-w merged 1 commit into
mainfrom
feat/ship-sample-plugin
Sep 2, 2026
Merged

feat: sample plugin#3
hieu-w merged 1 commit into
mainfrom
feat/ship-sample-plugin

Conversation

@hieu-w

@hieu-w hieu-w commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds plugins/sample, a reference plugin moved from the standalone agent-wallet-plugin-template repo into this examples monorepo.
  • Demonstrates the full plugin API: input schemas (ping), wallet-read / wallet-submit, and reserved capability declarations (mnemonic-read, config-write, network-manage).
  • Follows the same workspace layout as ens (portal devDependency to @metamask/agent-wallet, yarn build + oclif manifest).

Commands

Command Capability Purpose
mm ping [name] none No-auth greet; input schema + positional args
mm demo balance wallet-read Active address, native balance, tx count
mm demo submit wallet-submit Obtain ctx.walletExecutor
mm vault mnemonic mnemonic-read (reserved) Declares SRP disclosure; SRP stays host-only
mm admin config config-write (reserved) Declares config-write capability
mm admin network network-manage (reserved) Declares network-manage capability

Test plan

  • yarn install && yarn build — both ens and sample compile and generate oclif manifests
  • yarn workspace sample run type-check
  • yarn setup then mm ping Alice
  • mm demo balance (requires login + init)
  • mm plugins uninstall sample

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@hieu-w
hieu-w merged commit 189e20b into main Sep 2, 2026
9 checks passed
@hieu-w
hieu-w deleted the feat/ship-sample-plugin branch September 2, 2026 07:19
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.

3 participants