cambios mcp remoto
This commit is contained in:
@@ -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" }],
|
||||
|
||||
Reference in New Issue
Block a user