Skip to main content
Glama

mcp-appstore

by appreply-co
app.js817 B
'use strict'; const common = require('./common'); const ratings = require('./ratings'); function app (opts) { return new Promise(function (resolve) { if (!opts.id && !opts.appId) { throw Error('Either id or appId is required'); } const idField = opts.id ? 'id' : 'bundleId'; const idValue = opts.id || opts.appId; resolve(common.lookup([idValue], idField, opts.country, opts.lang, opts.requestOptions)); }) .then((results) => { if (results.length === 0) { throw Error('App not found (404)'); } const result = results[0]; if (opts.ratings) { if (!opts.id) { opts.id = result.id; } return ratings(opts).then((ratingsResult) => Object.assign({}, result, ratingsResult)); } return result; }); } module.exports = app;

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