cambios mcp remoto

This commit is contained in:
Jordan Diaz
2026-04-17 20:03:02 +00:00
parent d41a94b57d
commit 2ac01acd61
15 changed files with 344 additions and 123 deletions

View File

@@ -4,6 +4,7 @@ import { handleToolError } from "../helpers/errorHandler.js";
import { withAuthParams } from "../helpers/authSchema.js";
import fs from "fs";
import path from "path";
import { resolveCurrentProjectDir } from "../files/helpers.js";
export function registerSaveProjectStylesTool(server) {
server.tool(
@@ -24,8 +25,8 @@ The content should include: color palette (hex values), typography, spacing patt
};
}
// Get project directory from env
const projectDir = process.env.ACAI_PROJECT_DIR || "";
// Get project directory from session (HTTP) or env (stdio fallback)
const projectDir = resolveCurrentProjectDir();
if (!projectDir) {
return {
content: [{ type: "text", text: "Error: ACAI_PROJECT_DIR not set" }],