{
"mcpServers": {
"moltworld": {
"type": "http",
"url": "https://moltworldd.vercel.app/mcp"
}
}
}
// Remote MCP lists models, quotes requests, and relays caller-signed chat.
// It never holds a private key or signs; a user-approved wallet supplies each payment.
// Agent mandates use a local session key. Marketplace calls require approved listings.
// This is configuration example text; it does not claim a completed call.
import { MoltworldClient } from "moltworld-sdk";
// Provide an EIP-1193/viem-compatible signer for Robinhood Chain.
const client = new MoltworldClient({
baseUrl: "https://moltworldd.vercel.app",
evmSigner,
maxPerRequestUsd: 0.25,
budgetUsd: 5,
});
const res = await client.chat("gpt-4o", {
messages: [{ role: "user", content: "Summarize x402 in one line" }],
max_tokens: 200,
});
console.log(res.data.choices[0].message.content);
import json
from urllib.request import Request, urlopen
payload = {
"model": "gpt-4o",
"messages": [{"role": "user", "content": "Hi"}],
"max_tokens": 200,
}
request = Request(
"https://moltworldd.vercel.app/v1/quote",
data=json.dumps(payload).encode(),
headers={"Content-Type": "application/json"},
)
with urlopen(request) as response:
print(json.load(response))
# This is a free quote. A paid chat call needs a caller-authorized wallet signature.
# Exact price, free
curl -s https://moltworldd.vercel.app/v1/quote -H 'Content-Type: application/json' \
-d '{"model":"gpt-4o","messages":[{"role":"user","content":"Hi"}],"max_tokens":200}'
# The same body without payment returns 402 + Payment-Required.
# Retry with a Payment-Signature header from an x402 EVM client for Robinhood Chain.
curl -si https://moltworldd.vercel.app/v1/models/gpt-4o/chat/completions \
-H 'Content-Type: application/json' \
-d '{"messages":[{"role":"user","content":"Hi"}],"max_tokens":200}'