Skip to main content
Glama
utils.ts634 B
import type { Identity, IdentityData, SchemaType } from "./types"; type AllFields = { schemaType: SchemaType; alternateName: string; description: string; bitcoinAddress: string; }; export const buildIdentity = ({ schemaType, alternateName, description, bitcoinAddress, }: AllFields): string => { const identity: Identity = { "@context": "https://schema.org", "@type": schemaType as SchemaType, alternateName, description, bitcoinAddress, }; if (description) { identity.description = description; } if (bitcoinAddress) { identity.bitcoinAddress = bitcoinAddress; } return JSON.stringify(identity); };

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/b-open-io/bsv-mcp'

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