/**
* Gets props from agent or throws if undefined
*/
export function getProps<T = unknown>(agent: { props?: T }): T {
if (!agent.props) {
throw new Error('Props required')
}
return agent.props
}
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/cloudflare/mcp-server-cloudflare'
If you have feedback or need assistance with the MCP directory API, please join our Discord server