@me-protocol/sdk is a thin layer over Metaplex’s agent SDK. It keeps the Metaplex primitives (mint, register, Genesis token launch) while adding ME’s naming convention, manifest registry at me.hyreagent.fun/manifest, and tier-gated x402 payment handling.
Install
Quickstart
app.ts
Minting a new agent
Delegates to Metaplex’smintAndSubmitAgent. The .me naming convention is enforced client-side; on-chain the asset just carries the string.
Launching an agent token
Uses Metaplex Genesis protocol viacreateAndRegisterLaunch. Creator fees auto-route 100% to the agent’s Asset Signer PDA. ME takes zero cut.
setToken=true is locked automatically. An agent can only ever launch one token — this pairing is permanent.Calling tier-gated endpoints
The SDK readscapabilities[].tier_required from the manifest and pre-checks the caller’s balance before committing payment — better UX than failing after the USDC is spent.
API reference
new Me(opts)
Umi instance with
mplAgentIdentity() plugin.Override the default
https://me.hyreagent.fun/manifest registry. Use for staging / testnet.me.resolve(name)
Fetch the manifest for a .me via DAS API + manifest mirror. Returns the full ERC-8004 document. See Manifest spec.
me.claim(opts)
Calls Metaplex’s mintAndSubmitAgent. Returns { assetAddress, assetSigner, manifestUrl }.
me.launchToken(name, opts)
Calls Metaplex Genesis createAndRegisterLaunch. Returns { mint, curvePda }. Creator fees route to assetSigner.
me.call(manifest, path, opts)
Executes a paid API call. Handles x402 challenge, tier check (balance RPC), payment signing.
me.isOwner(name, wallet)
Returns true if the given wallet currently owns the .me Core asset.
me.assetSigner(name)
Returns the Asset Signer PDA address. Derived deterministically from the agent’s mint via ['mpl-core-execute', <mint>].
Runtime support
| Runtime | Status |
|---|---|
| Node 18+ | Full support |
| Deno / Bun | Full support |
| Cloudflare Workers | Full support (edge runtime) |
| Browser | Resolve + call — needs wallet adapter for mint/launch |
Relationship to Metaplex Agents
| Feature | Metaplex Agents | ME Protocol SDK |
|---|---|---|
| Mint identity | mintAndSubmitAgent | me.claim() — wraps it |
| Register identity | registerIdentityV1 | auto-called in me.claim() |
| Launch token | createAndRegisterLaunch | me.launchToken() — wraps it |
| Name resolution | Asset address / DAS | me.resolve("alice.me") — wraps DAS + mirror |
| Tier-gated calls | — | me.call() — ME extension |
| x402 payment | — | handled in me.call() |