fix MCP auth token refresh and disable legacy SSE
This commit is contained in:
@@ -40,6 +40,8 @@ export const LOCAL_SERVER_URL = process.env.LOCAL_SERVER_URL || 'http://localhos
|
||||
// Auth headers para llamadas internas al server Python
|
||||
export function getLocalServerHeaders() {
|
||||
const headers = { "Content-Type": "application/json" };
|
||||
const authHeader = process.env.ACAI_AUTH_HEADER || "";
|
||||
if (authHeader) headers["Authorization"] = authHeader;
|
||||
// En Forge, usar X-Acai-Token para auth interna
|
||||
const token = process.env.ACAI_TOKEN || "";
|
||||
const website = process.env.ACAI_WEBSITE || "";
|
||||
|
||||
Reference in New Issue
Block a user