Skip to main content
Glama
printf.js515 B
'use strict'; const { MESSAGE } = require('triple-beam'); class Printf { constructor(templateFn) { this.template = templateFn; } transform(info) { info[MESSAGE] = this.template(info); return info; } } /* * function printf (templateFn) * Returns a new instance of the printf Format that creates an * intermediate prototype to store the template string-based formatter * function. */ module.exports = opts => new Printf(opts); module.exports.Printf = module.exports.Format = Printf;

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/PancrePal-xiaoyibao/get-biji-dev-by-gemini3pro'

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