@n0zer0d4y/vulcan-file-ops 1.1.1 → 1.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/CHANGELOG.md +16 -0
- package/README.md +7 -0
- package/dist/tools/filesystem-tools.js +22 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.1.2] - 2025-01-12
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Added defensive string-to-array parsing for `make_directory` tool to handle MCP clients that incorrectly serialize array parameters as stringified JSON
|
|
13
|
+
- Workaround for Claude Desktop serialization issue
|
|
14
|
+
- Zero impact on correctly-functioning MCP clients (Cursor IDE verified)
|
|
15
|
+
- Includes diagnostic logging to identify problematic clients
|
|
16
|
+
- Comprehensive test coverage for stringified arrays and edge cases
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- 4 new test cases for MCP client serialization workaround
|
|
21
|
+
- Diagnostic logging when stringified array parameters are detected
|
|
22
|
+
- Root Cause Analysis document in `local_docs/make_directory_batch_failure_rca.md`
|
|
23
|
+
|
|
8
24
|
## [1.1.1] - 2025-11-11
|
|
9
25
|
|
|
10
26
|
### Fixed
|
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
[](https://modelcontextprotocol.io)
|
|
7
7
|
[](https://github.com/RichardLitt/standard-readme)
|
|
8
8
|
[](https://opensource.org/licenses/MIT)
|
|
9
|
+
[](https://mseep.ai/app/n0zer0d4y-vulcan-file-ops)
|
|
9
10
|
|
|
10
11
|
**Transform your desktop AI assistants into powerful development partners.** Vulcan File Ops bridges the gap between conversational AI (Claude Desktop, ChatGPT Desktop, etc.) and your local filesystem, unlocking the same file manipulation capabilities found in AI-powered IDEs like Cursor and Cline. Write code, refactor projects, manage documentation, and perform complex file operations—matching the power of dedicated AI coding assistants. With enterprise-grade security controls, dynamic directory registration, and intelligent tool filtering, you maintain complete control while your AI assistant handles the heavy lifting.
|
|
11
12
|
|
|
@@ -442,6 +443,8 @@ The AI will use the `register_directory` tool to gain access, then perform opera
|
|
|
442
443
|
|
|
443
444
|
Read file contents with flexible modes (full, head, tail, range)
|
|
444
445
|
|
|
446
|
+
**Note:** This tool is limited to single-file operations only. **RECOMMENDED:** Use `read_multiple_files` instead, which supports both single and batch file operations for greater flexibility.
|
|
447
|
+
|
|
445
448
|
**Input:**
|
|
446
449
|
|
|
447
450
|
- `path` (string): File path
|
|
@@ -482,6 +485,8 @@ Batch read multiple files concurrently
|
|
|
482
485
|
|
|
483
486
|
Create or replace file content
|
|
484
487
|
|
|
488
|
+
**Note:** This tool is limited to single-file operations only. **RECOMMENDED:** Use `write_multiple_files` instead, which supports both single and batch file operations for greater flexibility.
|
|
489
|
+
|
|
485
490
|
**Input:**
|
|
486
491
|
|
|
487
492
|
- `path` (string): File path
|
|
@@ -577,6 +582,8 @@ List directory contents with multiple output formats
|
|
|
577
582
|
|
|
578
583
|
Relocate or rename files and directories
|
|
579
584
|
|
|
585
|
+
**Note:** This tool is limited to single-file operations only. **RECOMMENDED:** Use `file_operations` instead, which supports move, copy, and rename operations for both single and batch files with greater flexibility.
|
|
586
|
+
|
|
580
587
|
**Input:**
|
|
581
588
|
|
|
582
589
|
- `source` (string): Source path
|
|
@@ -433,10 +433,29 @@ export async function handleFileSystemTool(name, args) {
|
|
|
433
433
|
if (!parsed.success) {
|
|
434
434
|
throw new Error(`Invalid arguments for make_directory: ${parsed.error}`);
|
|
435
435
|
}
|
|
436
|
+
// Defensive handling for MCP clients that may stringify arrays
|
|
437
|
+
// Some MCP clients (e.g., Claude Desktop) incorrectly serialize array parameters
|
|
438
|
+
// as stringified JSON instead of proper arrays. This workaround detects and fixes that.
|
|
439
|
+
let pathsInput = parsed.data.paths;
|
|
440
|
+
// If paths is a string that looks like a JSON array, try to parse it
|
|
441
|
+
if (typeof pathsInput === "string" && pathsInput.trim().startsWith("[")) {
|
|
442
|
+
try {
|
|
443
|
+
const parsedArray = JSON.parse(pathsInput);
|
|
444
|
+
if (Array.isArray(parsedArray)) {
|
|
445
|
+
pathsInput = parsedArray;
|
|
446
|
+
// Log for diagnostics - helps identify which clients have serialization issues
|
|
447
|
+
console.error("[INFO] make_directory: Detected and corrected stringified array parameter");
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
catch {
|
|
451
|
+
// If parsing fails, treat as single path (existing behavior)
|
|
452
|
+
// This handles edge cases like paths literally named "[something]"
|
|
453
|
+
}
|
|
454
|
+
}
|
|
436
455
|
// Normalize to array (single path or multiple paths)
|
|
437
|
-
const pathsToCreate = Array.isArray(
|
|
438
|
-
?
|
|
439
|
-
: [
|
|
456
|
+
const pathsToCreate = Array.isArray(pathsInput)
|
|
457
|
+
? pathsInput
|
|
458
|
+
: [pathsInput];
|
|
440
459
|
// Validate all paths first (atomic - fail before any creation)
|
|
441
460
|
const allowedDirs = getAllowedDirectories();
|
|
442
461
|
const validatedPaths = pathsToCreate.map((dirPath) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n0zer0d4y/vulcan-file-ops",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "MCP server that gives Claude Desktop and other AI assistants filesystem superpowers—read, write, edit, and manage files like AI coding assistants",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Lloyd Barcatan",
|