Skip to main content
This page shows the subscription-backed producer path. There is no create-feed transaction: derive 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.
Both legacy paths below reach the same outcome: a threshold-signed value verified on Solana Devnet. Pick the one that matches how you work.

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.0 for the SDK and >=24.0.0 for the MCP server
Current releases target Solana Devnet and Sepolia verifier networks. Write operations spend Devnet SOL and may consume subscription quota.

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

For local development, set a memory signer and Solana RPC in .env:
Leave 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.
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

2

Initialize, subscribe, and derive a feed

3

Request a signed result and submit

Gateway execution requires a signAuthMessage-capable wallet. The gateway verifies a real Ed25519 authSig and rejects all-zero signatures.

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.