Skip to main content
Glama

mcp-appstore

by appreply-co
wrap.js1.12 kB
var _concat = require('./internal/_concat'); var _curry2 = require('./internal/_curry2'); var curryN = require('./curryN'); /** * Wrap a function inside another to allow you to make adjustments to the * parameters, or do other processing either before the internal function is * called or with its results. * * @func * @memberOf R * @since v0.1.0 * @category Function * @sig (a... -> b) -> ((a... -> b) -> a... -> c) -> (a... -> c) * @param {Function} fn The function to wrap. * @param {Function} wrapper The wrapper function. * @return {Function} The wrapped function. * @example * * var greet = name => 'Hello ' + name; * * var shoutedGreet = R.wrap(greet, (gr, name) => gr(name).toUpperCase()); * * shoutedGreet("Kathy"); //=> "HELLO KATHY" * * var shortenedGreet = R.wrap(greet, function(gr, name) { * return gr(name.substring(0, 3)); * }); * shortenedGreet("Robert"); //=> "Hello Rob" */ module.exports = _curry2(function wrap(fn, wrapper) { return curryN(fn.length, function() { return wrapper.apply(this, _concat([fn], arguments)); }); });

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