Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

1.1 KB
Raw Blame
// JSON-RPC dispatch for the x402 Bazaar MCP server: a thin binding of the shared
// payment-free dispatcher (api/_lib/mcp-dispatch.js) to this server's catalog.
import { makeDispatcher, PROTOCOL_VERSION } from '../_lib/mcp-dispatch.js';
import { TOOL_CATALOG, TOOLS } from './catalog.js';

export { PROTOCOL_VERSION };
export { isPublicTool } from '../_lib/mcp-getting-started.js';

const INSTRUCTIONS = [
	'The x402 Bazaar lets you discover paid agent services across the live x402 facilitator network.',
	'search_services(query) finds services; browse_services() lists them; get_service(resource_url) returns',
	'the exact price, payment networks, input schema, and a ready pay link.',
	'Use this to answer "what can I pay for?" and to price and locate an external service before calling it.',
].join(' ');

export const dispatch = makeDispatcher({
	serverInfo: { name: 'three-ws-x402-bazaar', version: '1.0.0' },
	instructions: INSTRUCTIONS,
	catalog: TOOL_CATALOG,
	tools: TOOLS,
	logName: 'mcp-bazaar',
	policyServer: 'threews-x402-bazaar',
	resourceServer: 'mcp-bazaar',
});