We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/chatmcp/mcp-server-chatsum'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
db.ts•375 B
import sqlite3 from "sqlite3";
export function getDb(): sqlite3.Database {
const dbName = process.env.CHAT_DB_PATH || "";
if (!dbName) {
throw new Error("CHAT_DB_PATH is not set");
}
const db = new sqlite3.Database(dbName, (err) => {
if (err) {
console.error("chat db connect failed: ", dbName, err.message);
return;
}
});
return db;
}