feat: add allowed Linear API operations to MCP config

This commit is contained in:
Do Siki
2025-09-05 03:10:17 +02:00
parent 7e7d3fb1cc
commit b6365543ef
36 changed files with 14648 additions and 1 deletions
+43
View File
@@ -0,0 +1,43 @@
import { NextResponse } from 'next/server';
export async function GET() {
try {
// Basic health check
const healthData = {
status: 'ok',
timestamp: new Date().toISOString(),
uptime: process.uptime(),
version: process.env.npm_package_version || '1.0.0',
environment: process.env.NODE_ENV || 'development',
};
return NextResponse.json(healthData, {
status: 200,
headers: {
'Cache-Control': 'no-cache, no-store, must-revalidate',
'Pragma': 'no-cache',
'Expires': '0',
},
});
} catch (error) {
console.error('Health check error:', error);
return NextResponse.json(
{
status: 'error',
timestamp: new Date().toISOString(),
message: 'Health check failed',
},
{ status: 503 }
);
}
}
// Also support HEAD requests for lighter health checks
export async function HEAD() {
return new Response(null, {
status: 200,
headers: {
'Cache-Control': 'no-cache, no-store, must-revalidate',
},
});
}