Skip to main content
Glama

MCP Agent TypeScript Port

by waldzellai
xml-escape.js971 B
/** * @fileoverview XML character escaper * @author George Chung */ "use strict"; //------------------------------------------------------------------------------ // Public Interface //------------------------------------------------------------------------------ /** * Returns the escaped value for a character * @param {string} s string to examine * @returns {string} severity level * @private */ module.exports = function(s) { return (`${s}`).replace(/[<>&"'\x00-\x1F\x7F\u0080-\uFFFF]/gu, c => { // eslint-disable-line no-control-regex -- Converting controls to entities switch (c) { case "<": return "&lt;"; case ">": return "&gt;"; case "&": return "&amp;"; case "\"": return "&quot;"; case "'": return "&apos;"; default: return `&#${c.charCodeAt(0)};`; } }); };

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/waldzellai/mcp-agent-ts'

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