Skip to main content
Glama

MCP 3D Printer Server

validations.js853 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateTopic = validateTopic; exports.validateTopics = validateTopics; function validateTopic(topic) { const parts = topic.split('/'); for (let i = 0; i < parts.length; i++) { if (parts[i] === '+') { continue; } if (parts[i] === '#') { return i === parts.length - 1; } if (parts[i].indexOf('+') !== -1 || parts[i].indexOf('#') !== -1) { return false; } } return true; } function validateTopics(topics) { if (topics.length === 0) { return 'empty_topic_list'; } for (let i = 0; i < topics.length; i++) { if (!validateTopic(topics[i])) { return topics[i]; } } return null; } //# sourceMappingURL=validations.js.map

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/DMontgomery40/mcp-3D-printer-server'

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