Skip to main content
Glama

EverArt Forge MCP Server

removeDesc.js1.01 kB
'use strict'; const { detachNodeFromParent } = require('../lib/xast.js'); exports.name = 'removeDesc'; exports.description = 'removes <desc>'; const standardDescs = /^(Created with|Created using)/; /** * Removes <desc>. * Removes only standard editors content or empty elements 'cause it can be used for accessibility. * Enable parameter 'removeAny' to remove any description. * * https://developer.mozilla.org/docs/Web/SVG/Element/desc * * @author Daniel Wabyick * * @type {import('./plugins-types').Plugin<'removeDesc'>} */ exports.fn = (root, params) => { const { removeAny = false } = params; return { element: { enter: (node, parentNode) => { if (node.name === 'desc') { if ( removeAny || node.children.length === 0 || (node.children[0].type === 'text' && standardDescs.test(node.children[0].value)) ) { detachNodeFromParent(node, parentNode); } } }, }, }; };

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/nickbaumann98/everart-forge-mcp'

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