feat: stability upgrades, smart watcher, and professional refinements#4
Open
ThaRealJozef wants to merge 7 commits intoomar-haris:mainfrom
Open
feat: stability upgrades, smart watcher, and professional refinements#4ThaRealJozef wants to merge 7 commits intoomar-haris:mainfrom
ThaRealJozef wants to merge 7 commits intoomar-haris:mainfrom
Conversation
…expanded workspace variables
Ir7000129
added a commit
to Ir7000129/smart-coding-mcp
that referenced
this pull request
Jan 3, 2026
|
I love the workspace detection in this PR. The MCP tool is great, but can be tricky using it in multiple projects |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey!!
Loving this MCP server, but I ran into a couple of annoying issues while using it on my laptop (intense CPU usage and some pathing crashes). I decided to dive in and fix them to make the experience smoother.
Here is what I changed:
1. The "Smart Watcher" (Performance Fix)
The original file watcher was a bit too eager—it triggered a re-index on every single file save. If I was typing fast or switching branches, my CPU would spike and freeze the IDE.
The Fix:
I implemented a Debounced Queue in
features/index-codebase.js.Result: My laptop is silent now, and the index still stays up to date.
2. Information Security & Robustness (New!)
I hardened the server against common vulnerabilities and edge cases.
exectoexecFilefor Windows attribute commands, preventing shell injection attacks.configure_workspacetool to prevent crashes from malformed JSON or missing arguments.SMART_CODING_BATCH_SIZE) are now strictly parsed as numbers or strings, avoiding "magic" type coercion bugs.3. "Zero-Touch" Experience (New!)
The server is now much smarter about startup.
process.cwd()) if no workspace is provided.index.js --helpfor usage instructions.--workspacearguments, including quoted paths and paths with=signs.4. Crash Prevention
The server used to crash hard if a client sent an unexpanded variable like
${workspaceFolder}in the args.index.jsto catch this."[Wait] Workspace variable not expanded..."and falls back to a safe default instead of killing the process.5. New Tool:
configure_workspaceI added a new tool so we can fix the workspace path at runtime.
6. Better Logs
Added some loud-and-clear
=== INDEXING STARTED ===logs so you actually know when it's working in the background.Checked everything locally and it makes the whole workflow much snappier and safer. Hope this helps others too!