encoding-aware-fs 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mcp.json +3 -1
- package/dist/index.js +5 -3
- package/package.json +1 -1
package/.mcp.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -26725,9 +26725,10 @@ async function writeClaudeCodeConfig(cwd) {
|
|
|
26725
26725
|
if (!merged.mcpServers) {
|
|
26726
26726
|
merged.mcpServers = {};
|
|
26727
26727
|
}
|
|
26728
|
+
const isWindows = process.platform === "win32";
|
|
26728
26729
|
merged.mcpServers["encoding-aware-fs"] = {
|
|
26729
|
-
command: "npx",
|
|
26730
|
-
args: ["-y", "encoding-aware-fs", "serve"],
|
|
26730
|
+
command: isWindows ? "cmd" : "npx",
|
|
26731
|
+
args: isWindows ? ["/c", "npx", "-y", "encoding-aware-fs", "serve"] : ["-y", "encoding-aware-fs", "serve"],
|
|
26731
26732
|
env: {}
|
|
26732
26733
|
};
|
|
26733
26734
|
await writeJsonFile(configPath, merged);
|
|
@@ -26740,9 +26741,10 @@ async function writeOpenCodeConfig(cwd) {
|
|
|
26740
26741
|
if (!merged.mcp) {
|
|
26741
26742
|
merged.mcp = {};
|
|
26742
26743
|
}
|
|
26744
|
+
const isWindows = process.platform === "win32";
|
|
26743
26745
|
merged.mcp["encoding-aware-fs"] = {
|
|
26744
26746
|
type: "local",
|
|
26745
|
-
command: ["npx", "-y", "encoding-aware-fs", "serve"],
|
|
26747
|
+
command: isWindows ? ["cmd", "/c", "npx", "-y", "encoding-aware-fs", "serve"] : ["npx", "-y", "encoding-aware-fs", "serve"],
|
|
26746
26748
|
enabled: true,
|
|
26747
26749
|
timeout: 3e4
|
|
26748
26750
|
};
|