/**
* Helper to build a response for MCP from an array of text strings.
*/
export function buildMCPResponse(texts: string[]) {
return {
content: texts.map((text) => ({ type: 'text', text })),
};
}
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/apify/actors-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server