Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
applyTemplate.ts427 B
import { Template } from "../types/templating"; import Mustache from "mustache"; /** * A function that applies a set of variables to a template (e.g. a prompt) * Uses the Mustache library to apply the variables to the template */ export function formatTemplate(args: { template: Template; variables: Record<string, unknown>; }) { const { template, variables } = args; return Mustache.render(template, variables); }

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/Arize-ai/phoenix'

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