feedId, request signed data, and the first successful submit creates the Solana Feed account lazily.
AI Agents
First verified request through MCP — then Delegate or x402 escrow.
Smart Contracts
Verify a Molpha payload inside your app.
Backends
Request signed data with the TypeScript SDK.
Prerequisites
- A Solana wallet with Devnet SOL
- Devnet USDC for the subscription — use Circle’s faucet (select USDC on Solana Devnet)
- Node.js
>=20.19.0for the SDK and>=24.0.0for the MCP server
MCP server
The MCP server exposes typed tools for AI agents over stdio. Full tool reference, architecture, guardrails, and troubleshooting live on that page.1
Clone, build, and configure
.env:GATEWAY_ENDPOINTS empty to use the SDK default. The same wallet must subscribe, own feeds, and sign gateway auth messages. For Privy or Turnkey, see signer configuration.2
Validate and subscribe
npm run doctor prints MCP client snippets with resolved absolute paths. 20000000 is 20 USDC at 6 decimals — a safety cap that aborts if the on-chain price is higher.3
Connect your MCP client
Add the compiled server to your client config, restart, and call
molpha_get_capabilities. Use absolute paths — clients may start the server from a different working directory.- Cursor / Claude Desktop
- Codex
4
Try an agent prompt
Ask your client to inspect the network (read-only):
Use Molpha to inspect the current protocol capabilities. Summarize the registry version, node count, supported chains, and gateway endpoints. Do not make any writes.More example prompts are on the MCP server page.
Subscription and extension operations stay in the provisioning CLI because they debit USDC. They are not exposed as MCP tools.
TypeScript SDK
Install@molpha/sdk v0.1.0 and wire the gateway and Solana clients behind one wallet. The SDK overview covers the full API surface.
1
Install
- pnpm
- npm
- yarn
2
Initialize, subscribe, and derive a feed
3
Request a signed result and submit
Next steps
Maintain a feed
Producer flow: subscriptions, feed constraints, and keeping feeds current.
Read and verify
Consumer flow: read cached feeds or verify fresh signed payloads.
MCP server reference
Tool reference, architecture, guardrails, and troubleshooting.
SDK reference
Types, methods, and EVM/Starknet argument builders.