bhauman / bhauman/clojure-mcp-light
.nrepl-port sometimes not honored
- Dominant language
- Clojure
- Stars
- 188
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
Hi @bhauman !
I'm using a vanilla installation following the provided instructions faitfhully, over Claude Code.
I found that sometimes `--discover-ports`, as invoked by CC, sometimes finds nothing, despite .nrepl-port existing and referring to an active port.
Perhaps the cwd may be incorrectly set at times?
This is how it can look in CC:
```
⏺ Bash(clj-nrepl-eval --discover-ports)
⎿ No nREPL servers found.
```
What about this change?
```diff
-No nREPL servers found.
+No nREPL servers found. Are you running this command in the right cwd?
```
The extended message may nudge the models into doing the right thing - else, they can skip instructions in Skills/etc.
Thanks - V
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the `clj-nrepl-eval --discover-ports` entry point and locate where the `No nREPL servers found.` output is produced. Update the message to mention checking the current working directory, then run the discovery command in a case with no discovered servers to verify the wording.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100