Skip to main content

Basic MCP Server

A minimal paid MCP server:
basic-server.ts
Run it:

Mixed Free and Paid Tools

Offer some tools for free to attract users:
mixed-pricing.ts

HTTP Transport Server

For web-deployed MCP servers:
http-server.ts
Agents connect with:

Custom Error Messages

Customize how errors appear to agents:
custom-errors.ts

Debug Logging

Enable verbose logging for development:
debug-logging.ts

Custom Logger

Integrate with your logging system:
custom-logger.ts

Fail Open Mode

Keep working during Payo outages:
fail-open.ts
Only use failOpen: true if availability is critical and you accept free usage during outages.

TypeScript Types

Using SDK types for type safety:
typed-server.ts