Skip to main content
Glama
01-init-pgvector.sh397 B
#!/bin/bash set -e # Run this as the postgres user psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL -- Create the pgvector extension if it doesn't exist CREATE EXTENSION IF NOT EXISTS vector; -- Set appropriate permissions GRANT ALL PRIVILEGES ON DATABASE $POSTGRES_DB TO $POSTGRES_USER; EOSQL echo "PostgreSQL initialized with pgvector extension"

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/visheshd/docmcp'

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