Skip to main content
Glama
migrate.ts445 B
import { drizzle } from "drizzle-orm/node-postgres"; import { migrate } from "drizzle-orm/node-postgres/migrator"; import { Client } from "pg"; const pool = new Client({ connectionString: process.env.POSTGRES_URL ?? "", }); const db = drizzle(pool); export async function migratation() { console.log("Migration started"); await migrate(db, { migrationsFolder: "./drizzle" }); console.log("Migration completed"); await pool.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/metacode0602/open-mcp'

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