Skip to main content
Glama
metadata.ts469 B
/** * Metadata conversion utilities */ import type { CustomMetadata, MetadataInput } from "../types/index.js"; /** * Convert simple key-value metadata to Gemini API CustomMetadata format */ export function convertMetadataInput( input: MetadataInput, ): CustomMetadata[] { return Object.entries(input).map(([key, value]) => { if (typeof value === "string") { return { key, stringValue: value }; } return { key, numericValue: value }; }); }

Latest Blog Posts

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/masseater/gemini-rag-mcp'

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