Skip to main content
Glama
Jpisnice
by Jpisnice
get-theme-metadata.ts640 B
import fs from 'fs'; import path from 'path'; export async function handleGetThemeMetadata() { try { const metadataPath = path.join(process.cwd(), 'src', 'tools', 'tweakcn', 'assets_function', 'all_41_themes_metadata.json'); if (!fs.existsSync(metadataPath)) { throw new Error(`Metadata file not found at ${metadataPath}`); } const content = await fs.promises.readFile(metadataPath, 'utf8'); return { content, contentType: 'application/json' }; } catch (error) { throw new Error(`Failed to read theme metadata: ${error instanceof Error ? error.message : String(error)}`); } }

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/Jpisnice/shadcn-ui-mcp-server'

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