Skip to main content
Glama

mcp-appstore

by appreply-co
metadata.ts628 B
import express, { RequestHandler } from "express"; import { OAuthMetadata } from "../../../shared/auth.js"; import cors from 'cors'; import { allowedMethods } from "../middleware/allowedMethods.js"; export function metadataHandler(metadata: OAuthMetadata): RequestHandler { // Nested router so we can configure middleware and restrict HTTP method const router = express.Router(); // Configure CORS to allow any origin, to make accessible to web-based MCP clients router.use(cors()); router.use(allowedMethods(['GET'])); router.get("/", (req, res) => { res.status(200).json(metadata); }); 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/appreply-co/mcp-appstore'

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