Skip to main content
Glama
no-payment.ts815 B
import { PaymentProvider } from "../payment-manager.js"; /** * No-payment provider for free tier access * Allows all operations without any payment validation */ export class NoPaymentProvider implements PaymentProvider { async initialize(): Promise<void> { console.log("💸 Payment mode: FREE TIER (no payment required)"); } async validatePayment(userId: string, action: string): Promise<boolean> { // Always allow free access for all operations return true; } async recordUsage(userId: string, action: string, cost: number): Promise<void> { // No-op for free tier, but we could log usage for analytics console.log(`📊 [FREE] Usage recorded: ${action} for user ${userId} (cost would be $${cost.toFixed(4)})`); } getName(): string { return "NoPaymentProvider"; } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/oregpt/moluabi-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server