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 CHANGED
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "mcpServers": {
3
3
  "encoding-aware-fs": {
4
- "command": "npx",
4
+ "command": "cmd",
5
5
  "args": [
6
+ "/c",
7
+ "npx",
6
8
  "-y",
7
9
  "encoding-aware-fs",
8
10
  "serve"
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "encoding-aware-fs",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Encoding-aware file operations MCP Server for AI tools working with GB18030 projects",
5
5
  "main": "dist/server.js",
6
6
  "bin": {