Skip to main content
Glama
test-get-type-info.jsâ€ĸ843 B
// Test for handleGetTypeInfo const { handleGetTypeInfo } = require('../dist/handlers/handleGetTypeInfo'); const assert = require('assert'); async function run() { // Allow overriding type_name via command line arguments const type_name = process.argv[2] || '/CBY/MMSKLCARD'; const result = await handleGetTypeInfo({ type_name }); assert(result && result.content && Array.isArray(result.content), 'Result must have content array'); console.dir(result, { depth: null }); const jsonBlock = result.content.find(x => x.type === 'json'); assert(jsonBlock, 'Result must contain JSON block'); console.dir(jsonBlock.json, { depth: null }); console.log('handleGetTypeInfo test passed'); process.exit(0); } run().catch(e => { console.error('handleGetTypeInfo test failed:', e); process.exit(1); });

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/fr0ster/mcp-abap-adt'

If you have feedback or need assistance with the MCP directory API, please join our Discord server