feat: add MCP server for AI agent integration

Adds a Streamable HTTP MCP server at /mcp that exposes 19 tools
covering rundown entries, rundown management, runtime state, project
info, automations, and custom fields. Includes Bearer token auth
support and a UI card in Settings > Sharing showing the endpoint URL
and Claude Desktop config.

https://claude.ai/code/session_01U24MeuUacYXeQhbX3tatEe
This commit is contained in:
Claude
2026-04-22 18:24:17 +00:00
committed by Carlos Valente
parent 41a09bf5c3
commit ac3694ce4d
6 changed files with 809 additions and 2 deletions
@@ -90,6 +90,14 @@ export function makeAuthenticateMiddleware(prefix: string) {
}
}
const authHeader = req.headers.authorization;
if (authHeader?.startsWith('Bearer ')) {
const bearerToken = authHeader.slice(7);
if (bearerToken === hashedPassword) {
return next();
}
}
res.status(401).send('Unauthorized');
}