import * as dotenv from "dotenv";
export const MCP_VERSION = "2.0.3-wp-api";
dotenv.config();
export const WP_API_URL = process.env.WP_API_URL || "";
export const WP_API_KEY = process.env.WP_API_KEY || "";
if (!WP_API_URL) {
    console.error("ERROR: WP_API_URL is required. Please set it in your .env file.");
}
if (!WP_API_KEY) {
    console.error("ERROR: WP_API_KEY is required. Please set it in your .env file.");
}
export const ALLOW_INSERT_OPERATION = false;
export const ALLOW_UPDATE_OPERATION = false;
export const ALLOW_DELETE_OPERATION = false;
export const ALLOW_DDL_OPERATION = false;
export const SCHEMA_INSERT_PERMISSIONS = {};
export const SCHEMA_UPDATE_PERMISSIONS = {};
export const SCHEMA_DELETE_PERMISSIONS = {};
export const SCHEMA_DDL_PERMISSIONS = {};
export const IS_REMOTE_MCP = process.env.IS_REMOTE_MCP === "true";
export const REMOTE_SECRET_KEY = process.env.REMOTE_SECRET_KEY || "";
export const PORT = process.env.PORT || 3000;
export const isMultiDbMode = false;
export const mcpConfig = {
    server: {
        name: "@df/mcp-server-wp-api",
        version: MCP_VERSION,
        connectionTypes: ["stdio", "streamableHttp"],
    },
    wordpress: {
        apiUrl: WP_API_URL,
        apiKey: WP_API_KEY,
    },
    paths: {
        schema: "schema",
    },
};
