Skip to main content
Glama

mcp-appstore

by appreply-co
lib.permissions.js1.94 kB
'use strict'; const gplay = require('../index'); const assert = require('chai').assert; describe('Permissions method', () => { it('should return an array of permissions and descriptions', () => gplay.permissions({ appId: 'com.sgn.pandapop.gp' }) .then((results) => { assert(results.length); results.map((perm) => { assert.isString(perm.permission); assert.isString(perm.type); }); })); it('should return an array of permissions and descriptions for different response format', () => gplay.permissions({ appId: 'air.tv.ingames.cubematch.free' }) .then((results) => { assert(results.length); results.map((perm) => { assert.isString(perm.permission); assert.isString(perm.type); }); })); it('should return skip descriptions if short option is passed', () => gplay.permissions({ appId: 'com.sgn.pandapop.gp', short: true }) .then((results) => { assert(results.length); results.map(assert.isString); })); it('should return skip descriptions if short option is passed for different response format', () => gplay.permissions({ appId: 'air.tv.ingames.cubematch.free', short: true }) .then((results) => { assert(results.length); results.map(assert.isString); })); it('should return even if app have no common permissions', () => gplay.permissions({ appId: 'com.skybornegames.battlepop' }) .then((results) => { assert(results.length); results.map((perm) => { assert.isString(perm.permission); assert.isString(perm.type); }); })); it('should return empty if app have no common permissions and short option is passed', () => gplay.permissions({ appId: 'com.skybornegames.battlepop', short: true }) .then((results) => { assert.equal(0, results.length); })); });

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