Repository navigation
Conversation
An agent can now see which wallets exist, which are unlocked and how much session time is left, and ask the user to unlock before starting a task. The listing logic moves into a shared action, so the CLI and MCP return the same shape and `wdk wallet list` output doesn't change.
G9NCUE
marked this pull request as ready for review
November 5, 2026 08:50
This was referenced Nov 5, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a
list_walletsMCP tool. An agent can now see which wallets exist, which is the default, which are unlocked and how much session time is left, then ask the user to unlock before starting a task. It takes no parameters and returns the same shape aswdk wallet list --json. It doesn't start the daemon, and it can't unlock a wallet.The listing logic moves out of the
wallet listcommand into a newsrc/actions/wallet.js, shared by the CLI and MCP like the other actions. The README's MCP tools table gets a row for the new tool.Motivation and Context
Today an agent only learns that a wallet is locked when a call fails with
WALLET_NOT_UNLOCKED, and it can't tell how long a session has left. Using a wallet doesn't extend its session, so with the default 5 minutes a session can expire between a preview and the confirmed send.Related Issue
Closes #60
Type of change
Testing
npm run lint,npm run typecheckandnpm testpass, and so does the fullnpm run test:integration.tests/unit/actions/wallet.test.js, andtests/integration/mcp.test.js, which calls the tool through a real MCP client and daemon. These are the first integration tests for the MCP server.wdk wallet listis unchanged: table and--jsonoutput matchedmainwith no daemon, with unlocked sessions, with an unreachable daemon, and with no wallets.Known limitation
A daemon that is running but doesn't reply within 5 seconds reads as "every wallet locked".
wallet listalready behaved this way, and I kept it so the command's behaviour doesn't change.