Skip to content

Add Extra Finance (xLend) lending plugin to base-mcp #63

@ohbay

Description

@ohbay

Feature request

Add a base-mcp skill plugin for Extra Finance xLend, the Aave V3-forked
lending market on Base. It would cover supply / withdraw / borrow / repay,
plus reads for single-reserve state and full account positions (health factor).

Why

xLend is a live lending product on Base (USDC, WETH, wstETH, cbETH, cbBTC) and
is currently not covered by the base-mcp skill bundle. Agents can already
swap and bridge via base-mcp, but can't interact with this lending market.

Proposed approach

Follows the official send_calls custom-plugin pattern:

  1. A small viem-based runner (npx extrafi-prepare) reads state and encodes
    unsigned calldata for the Pool / ERC20 contracts.
  2. Emits { chain: "base", calls: [...] }.
  3. Agent passes it to Base MCP send_calls; user approves in Base Account.

I have a working implementation and would like to be assigned this issue so I
can open the PR. Happy to adjust scope to match project conventions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions