Skip to main content
Glama
deleonio
by deleonio
update-publiccode.mjs793 B
#! /usr/bin/env node import yaml from 'js-yaml'; import fs from 'fs'; import * as prettier from 'prettier'; const packageJsonPath = new URL('../packages/components/package.json', import.meta.url); const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')); const filePath = new URL('../publiccode.yml', import.meta.url); const doc = yaml.load(fs.readFileSync(filePath, 'utf8')); doc.releaseDate = new Date().toISOString().split('T')[0]; doc.softwareVersion = packageJson.version; const yamlString = yaml.dump(doc); const prettierOptions = await prettier.resolveConfig(new URL('../prettier.config.js', import.meta.url)); const formattedYamlString = await prettier.format(yamlString, { ...prettierOptions, parser: 'yaml' }); fs.writeFileSync(filePath, formattedYamlString);

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/deleonio/public-ui-kolibri'

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