mirror of
https://github.com/waynesutton/markdown-site.git
synced 2026-01-12 04:09:14 +00:00
feat: added HTTP-Based MCP Server on Netlify
This commit is contained in:
@@ -171,6 +171,17 @@ export interface WeeklyDigestConfig {
|
||||
subject: string; // Email subject template
|
||||
}
|
||||
|
||||
// MCP Server configuration
|
||||
// HTTP-based Model Context Protocol server for AI tool integration
|
||||
// Runs on Netlify Edge Functions at /mcp endpoint
|
||||
export interface MCPServerConfig {
|
||||
enabled: boolean; // Global toggle for MCP server
|
||||
endpoint: string; // Endpoint path (default: "/mcp")
|
||||
publicRateLimit: number; // Requests per minute for public access
|
||||
authenticatedRateLimit: number; // Requests per minute with API key
|
||||
requireAuth: boolean; // Require API key for all requests
|
||||
}
|
||||
|
||||
// Social link configuration for social footer
|
||||
export interface SocialLink {
|
||||
platform:
|
||||
@@ -277,6 +288,9 @@ export interface SiteConfig {
|
||||
|
||||
// Weekly digest configuration (optional)
|
||||
weeklyDigest?: WeeklyDigestConfig;
|
||||
|
||||
// MCP Server configuration (optional)
|
||||
mcpServer?: MCPServerConfig;
|
||||
}
|
||||
|
||||
// Default site configuration
|
||||
@@ -556,6 +570,18 @@ Created by [Wayne](https://x.com/waynesutton) with Convex, Cursor, and Claude Op
|
||||
dayOfWeek: 0, // Sunday
|
||||
subject: "Weekly Digest", // Email subject prefix
|
||||
},
|
||||
|
||||
// MCP Server configuration
|
||||
// HTTP-based Model Context Protocol server for AI tool integration
|
||||
// Runs on Netlify Edge Functions at /mcp endpoint
|
||||
// Set MCP_API_KEY in Netlify env vars for authenticated access
|
||||
mcpServer: {
|
||||
enabled: true, // Global toggle for MCP server
|
||||
endpoint: "/mcp", // Endpoint path
|
||||
publicRateLimit: 50, // Requests per minute for public access (Netlify rate limiting)
|
||||
authenticatedRateLimit: 1000, // Requests per minute with API key
|
||||
requireAuth: false, // Set to true to require API key for all requests
|
||||
},
|
||||
};
|
||||
|
||||
// Export the config as default for easy importing
|
||||
|
||||
Reference in New Issue
Block a user