Skip to main content
Glama

mcp-appstore

by appreply-co
common.js998 B
'use strict'; const assert = require('chai').assert; const validator = require('validator'); function assertValidUrl (url) { return assert(validator.isURL(url, { allow_protocol_relative_urls: true }), `${url} is not a valid url`); } function assertValidApp (app) { assert.isString(app.appId); assert.isString(app.title); assert.isString(app.summary); assertValidUrl(app.url); assertValidUrl(app.icon); if (app.score !== undefined) { // would fail for new apps without score assert.isNumber(app.score); assert(app.score >= 0); assert(app.score <= 5); } assert.isBoolean(app.free); // FIXME this is only allowed for preregister, check for that when field is available if (app.priceText !== undefined) { assert.isString(app.priceText); } return app; } function assertIdsInArray (apps, ...ids) { assert.isTrue(ids.every((id) => apps.some((app) => app.appId === id))); } module.exports = { assertValidUrl, assertValidApp, assertIdsInArray };

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/appreply-co/mcp-appstore'

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