We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kpeacocke/souschef'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
# LWRP provider for database management
action :create do
execute "create_database" do
command "createdb -h #{new_resource.host} -p #{new_resource.port} -U #{new_resource.username} #{new_resource.db_name}"
not_if "psql -h #{new_resource.host} -p #{new_resource.port} -U #{new_resource.username} -lqt | cut -d \\| -f 1 | grep -qw #{new_resource.db_name}"
end
end
action :drop do
execute "drop_database" do
command "dropdb -h #{new_resource.host} -p #{new_resource.port} -U #{new_resource.username} #{new_resource.db_name}"
only_if "psql -h #{new_resource.host} -p #{new_resource.port} -U #{new_resource.username} -lqt | cut -d \\| -f 1 | grep -qw #{new_resource.db_name}"
end
end
action :backup do
execute "backup_database" do
command "pg_dump -h #{new_resource.host} -p #{new_resource.port} -U #{new_resource.username} #{new_resource.db_name} > /backup/#{new_resource.db_name}.sql"
end
end