Skip to main content
Glama
overrides.ts1.5 kB
import { addQualificationFunction, addScalarProp, suggest, widget, } from "../generic/overrides.ts"; import { PropOverrideFn, SchemaOverrideFn } from "../types.ts"; const HETZNER_LOCATIONS = ["fsn1", "nbg1", "hel1", "ash", "hil", "sin"]; // Hetzner-specific property overrides (empty for now) export const HETZNER_PROP_OVERRIDES: Record< string, Record<string, PropOverrideFn | PropOverrideFn[]> > = { ".*": { // Add location dropdown and suggestion to "location" prop on all resources location: [ suggest("Hetzner::Cloud::Locations", "/domain/name"), widget("ComboBox", HETZNER_LOCATIONS), ], }, "Hetzner::Cloud::Locations": { name: widget("ComboBox", HETZNER_LOCATIONS), }, "Hetzner::Cloud::Servers": { "ssh_keys/ssh_keysItem": suggest("Hetzner::Cloud::SshKeys", "/domain/name"), }, }; // Hetzner-specific schema overrides export const HETZNER_SCHEMA_OVERRIDES = new Map< string, SchemaOverrideFn | SchemaOverrideFn[] >( Object.entries({ // // Add Hetzner::Cloud::Locations.name so it can be selected and filled in // "Hetzner::Cloud::Locations": [ addScalarProp("/domain/name", "string", true), addQualificationFunction( "./src/pipelines/hetzner/funcs/overrides/Hetzner::Cloud::Locations/qualifications/locationQualification.ts", "Hetzner::Cloud::Locations Check Valid Location Name", "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", ), ], }), );

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/systeminit/si'

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