Skip to main content
Glama

MCP Toolbox for Databases

by googleapis
Apache 2.0
11,037
  • Linux
regionInclude.html1.46 kB
{{/* snippet.html Usage: {{< regionInclude "filename.md" "region_name" >}} {{< regionInclude "filename.python" "region_name" "python" >}} */}} {{ $file := .Get 0 }} {{ $region := .Get 1 }} {{ $lang := .Get 2 | default "text" }} {{ $path := printf "%s%s" .Page.File.Dir $file }} {{ if or (not $file) (eq $file "") }} {{ errorf "The file parameter (first argument) is required and must be non-empty in %s" .Page.File.Path }} {{ end }} {{ if or (not $region) (eq $region "") }} {{ errorf "The region parameter (second argument) is required and must be non-empty in %s" .Page.File.Path }} {{ end }} {{ if not (fileExists $path) }} {{ errorf "File %q not found (referenced in %s)" $path .Page.File.Path }} {{ end }} {{ $content := readFile $path }} {{ $start_tag := printf "[START %s]" $region }} {{ $end_tag := printf "[END %s]" $region }} {{ $snippet := "" }} {{ $in_snippet := false }} {{ range split $content "\n" }} {{ if $in_snippet }} {{ if in . $end_tag }} {{ $in_snippet = false }} {{ else }} {{ $snippet = printf "%s%s\n" $snippet . }} {{ end }} {{ else if in . $start_tag }} {{ $in_snippet = true }} {{ end }} {{ end }} {{ if eq (trim $snippet "") "" }} {{ errorf "Region %q not found or empty in file %s (referenced in %s)" $region $file .Page.File.Path }} {{ end }} {{ if eq $lang "text" }} {{ $snippet | markdownify }} {{ else }} {{ highlight (trim $snippet "\n") $lang "" }} {{ end }}

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/googleapis/genai-toolbox'

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