Skip to main content
Glama

Astro Blog MCP Server

validate-routes.ts775 B
import { Router, Request, Response } from "express"; import { PostService } from "../services/post-service.js"; export function createValidateRouter(postService: PostService): Router { const router = Router(); router.get("/", async (req: Request, res: Response) => { try { const isValid = await postService.validateAccess(); if (isValid) { res.json({ success: true, message: "GitHub access validated successfully", }); } else { res.status(500).json({ success: false, error: "Failed to validate GitHub access", }); } } catch (error: any) { res.status(500).json({ success: false, error: error.message, }); } }); return 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/amilcar-laniakea/mcp-auto-post-astro'

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