Skip to main content
Glama
shared-server.js1.04 kB
/** * `$env/dynamic/private` * @type {Record<string, string>} */ export let private_env = {}; /** * `$env/dynamic/public`. When prerendering, this will be a proxy that forbids reads * @type {Record<string, string>} */ export let public_env = {}; /** * The same as `public_env`, but without the proxy. Use for `%sveltekit.env.PUBLIC_FOO%` * @type {Record<string, string>} */ export let safe_public_env = {}; /** @param {any} error */ export let fix_stack_trace = (error) => error?.stack; /** @type {(environment: Record<string, string>) => void} */ export function set_private_env(environment) { private_env = environment; } /** @type {(environment: Record<string, string>) => void} */ export function set_public_env(environment) { public_env = environment; } /** @type {(environment: Record<string, string>) => void} */ export function set_safe_public_env(environment) { safe_public_env = environment; } /** @param {(error: Error) => string} value */ export function set_fix_stack_trace(value) { fix_stack_trace = value; }

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