Skip to main content
Glama

MCP Server Demo

by elvisleyva49
mcp-protocol.js317 B
// Example MCP message validation function validateMCPMessage(msg) { // Simple validation: must have type and command if ( typeof msg === 'object' && typeof msg.type === 'string' && typeof msg.command === 'string' ) { return true; } return false; } module.exports = { validateMCPMessage };

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/elvisleyva49/mcp-server-demo'

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