Service Discovery
Overview
MPP Service Directory
Query the directory
import { MoltMPPClient } from '@moltmpp/sdk'
const mpp = new MoltMPPClient({
solanaRpc: 'https://api.mainnet-beta.solana.com',
wallet: wallet
})
// Search for services by category
const services = await mpp.discoverServices({
category: 'weather',
paymentMethods: ['solana/usdc'],
maxPriceUSD: 10.00
})
console.log(`Found ${services.length} services:`)
for (const service of services) {
console.log(`- ${service.name}: $${service.priceUSD} per request`)
console.log(` URL: ${service.endpoint}`)
console.log(` Rating: ${service.rating}/5`)
}Service metadata
HTTP Header Detection
Check for MPP support
Detect payment methods
HTTP 402 Payment Required
Request resource
Parse 402 response
Complete 402 response
Agent Service Discovery
OpenClaw integration
Custom discovery logic
Building a Service Catalog
Catalog structure
MCP Server Discovery
MCP manifest with MPP
Discover MCP servers
Service Reputation
Reputation tracking
Production Example
Next Steps
Resources
Last updated
Was this helpful?
