Skip to main content
Glama

Structured Workflow Engine MCP Server

by mlaurel
MIT License
next.config.ts1.13 kB
import type { NextConfig } from "next"; const nextConfig: NextConfig = { // Enable static optimization output: 'standalone', // Configure static file serving publicRuntimeConfig: { staticFolder: '/public', }, // Webpack configuration for MCP server files webpack: (config, { isServer }) => { if (isServer) { // Copy static files during build config.externals = [...(config.externals || [])]; } return config; }, // Headers for MCP server async headers() { return [ { source: '/api/mcp', headers: [ { key: 'Access-Control-Allow-Origin', value: '*', }, { key: 'Access-Control-Allow-Methods', value: 'GET, POST, PUT, DELETE, OPTIONS', }, { key: 'Access-Control-Allow-Headers', value: 'Content-Type, Authorization, mcp-session-id', }, { key: 'Access-Control-Expose-Headers', value: 'mcp-session-id', }, ], }, ]; }, }; export default nextConfig;

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/mlaurel/mcp-workflow-engine'

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