Skip to main content
Glama

mcp-appstore

by appreply-co
indexBy.js879 B
var reduceBy = require('./reduceBy'); /** * Given a function that generates a key, turns a list of objects into an * object indexing the objects by the given key. Note that if multiple * objects generate the same value for the indexing key only the last value * will be included in the generated object. * * @func * @memberOf R * @since v0.19.0 * @category List * @sig (a -> String) -> [{k: v}] -> {k: {k: v}} * @param {Function} fn Function :: a -> String * @param {Array} array The array of objects to index * @return {Object} An object indexing each array element by the given property. * @example * * var list = [{id: 'xyz', title: 'A'}, {id: 'abc', title: 'B'}]; * R.indexBy(R.prop('id'), list); * //=> {abc: {id: 'abc', title: 'B'}, xyz: {id: 'xyz', title: 'A'}} */ module.exports = reduceBy(function(acc, elem) { return elem; }, null);

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