Skip to main content
Glama
features.js614 B
/** * @param {string} route_id * @param {any} config * @param {string} feature * @param {import('@sveltejs/kit').Adapter | undefined} adapter */ export function check_feature(route_id, config, feature, adapter) { if (!adapter) return; switch (feature) { case '$app/server:read': { const supported = adapter.supports?.read?.({ route: { id: route_id }, config }); if (!supported) { throw new Error( `Cannot use \`read\` from \`$app/server\` in ${route_id} when using ${adapter.name}. Please ensure that your adapter is up to date and supports this feature.` ); } } } }

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/MatheusgVentura/Project-One'

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