Skip to content

Comments

Fix: tool list_files_in_dir throws error when the dirpath passed in endswith slash#67

Open
BHznJNs wants to merge 2 commits intoMarkusPfundstein:mainfrom
BHznJNs:main
Open

Fix: tool list_files_in_dir throws error when the dirpath passed in endswith slash#67
BHznJNs wants to merge 2 commits intoMarkusPfundstein:mainfrom
BHznJNs:main

Conversation

@BHznJNs
Copy link

@BHznJNs BHznJNs commented Jul 22, 2025

In the tool list_files_in_dir implementation, when the dirpath passed in is ends with slash, it will build the final obsidian path with the extra slash, which will cause error.

ernestkoe added a commit to ernestkoe/mcp-obsidian-ek that referenced this pull request Dec 29, 2025
- Add Windows UTF-8 STDIO encoding fix (PR MarkusPfundstein#75)
- Add ensure_ascii=False to json.dumps for proper Unicode (PR MarkusPfundstein#74)
- Add Dataview query tool for arbitrary DQL queries (PR MarkusPfundstein#53)

Skipped (already fixed by PR MarkusPfundstein#77):
- PR MarkusPfundstein#87: dirpath trailing slashes
- PR MarkusPfundstein#67: list_files_in_dir slash

Skipped (not needed):
- PR MarkusPfundstein#89: env var defaults (our approach works)
- PR MarkusPfundstein#69: too large, needs review

70 tests passing, 26 tools total.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants