@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
required
Umi instance with
mplAgentIdentity() plugin.string
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
Relationship to Metaplex Agents
ME Protocol SDK is always compatible with the underlying Metaplex primitives. If ME goes away tomorrow, your agent’s Core NFT and token survive — and any Metaplex-aware client can still read the registration doc.