Install Kx402 in Goose

What you need first

  • Goose, installed.
  • Node.js, which gives the npx command the server starts with.
  • Your own values for YOUR_KASPA_X402_KASPA_WASM_MODULE,YOUR_KASPA_X402_FUNDING_WALLET.

Steps

  1. Open ~/.config/goose/config.yaml. On Windows it is %APPDATA%\Block\goose\config\config.yaml.
  2. Add this entry. If the file already has extensions, add only the entry inside it.
extensions:
  "kx402":
    type: stdio
    name: "kx402"
    enabled: true
    cmd: "npx"
    args: ["-y", "[email protected]", "mcp"]
    env_keys: []
    envs: { "KASPA_X402_KASPA_WASM_MODULE": "YOUR_KASPA_X402_KASPA_WASM_MODULE", "KASPA_X402_FUNDING_WALLET": "YOUR_KASPA_X402_FUNDING_WALLET" }
    timeout: 300
  1. Replace YOUR_KASPA_X402_KASPA_WASM_MODULE,YOUR_KASPA_X402_FUNDING_WALLET with your own values.
  2. Save the file and start a new Goose session.

Check it worked

Ask Goose: List the tools of kx402.

If it does not start

spawn npx ENOENT
Node.js is not on the PATH that Goose sees. Install it, or write the full path of npx in the config.
The server starts, but its tools fail
A YOUR_… placeholder is still in the config, or its value is wrong.
Nothing changes after a restart
The file is not valid YAML any more. Check that the entry is indented like the lines around it.

Back to Kx402