Skip to main content
Glama
connectionsRoutes.ts605 B
import { Router } from 'express'; import { ConnectionRepository } from '../db/connectionRepository'; const router = Router(); router.get('/', (_req, res) => { const userId = typeof _req.query.userId === 'string' ? _req.query.userId : undefined; const connections = ConnectionRepository.findAll(userId).map((connection) => ({ id: connection.id, userId: connection.user_id, provider: connection.provider, expiresAt: connection.expires_at, createdAt: connection.created_at, updatedAt: connection.updated_at })); return res.json({ connections }); }); export default router;

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/CrBatista/mcp-cli-github-integration'

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