Skip to main content
Glama

mcp-appstore

by appreply-co
lib.suggest.js751 B
'use strict'; const gplay = require('../index'); const assert = require('chai').assert; describe('Suggest method', () => { it('should return five suggestion for a common term', () => gplay.suggest({ term: 'p' }) .then((results) => { assert.equal(results.length, 5, `expected ${results} to have 5 elements`); results.map((r) => assert.include(r.toLowerCase(), 'p')); })); it('should return different results for different languages', () => Promise.all([ gplay.suggest({ term: 'p' }), gplay.suggest({ term: 'p', country: 'fr', lang: 'fr' }) ]) .then(([resultsEn, resultsFr]) => { assert.notSameOrderedMembers(resultsEn, resultsFr, `expected ${resultsEn} and ${resultsFr} not to be the same`); })); });

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