Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
pythonUtils.ts652 B
/** * A function that converts it to a python friendly string */ function sanitizePythonStr(value: string) { return value.replaceAll("\n", "\\n").replaceAll('"', '\\"'); } /** * A function that converts a javascript primitive to a python primitive string * @param val - The value to convert * @returns The python primitive string */ export function toPythonPrimitiveStr(val: string | number | boolean): string { if (typeof val === "boolean") { return val ? "True" : "False"; } if (typeof val === "number") { return val.toString(); } if (typeof val === "string") { return `"${sanitizePythonStr(val)}"`; } return ""; }

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