Description
stats.vault throws an internal parse error when the vault contains notes with backtick + single-quote sequences inside fenced code blocks (e.g. PowerShell commands using backtick escaping).
Error
internal: expected hexadecimal character at line 14, column 1510:
... maquina pro S3 aws s3 cp `'C:\Users\...
^
Steps to reproduce
- Have a vault with a note containing a fenced code block with a PowerShell command that uses backtick escaping, e.g.:
```powershell
aws s3 cp `'C:\Users\username\Documents\file.txt'` s3://bucket/
```
- Call
stats.vault
- Tool returns the internal parse error above instead of vault statistics
Expected behavior
stats.vault should either skip the problematic note or handle the character gracefully and return statistics for the rest of the vault.
Environment
- kObsidian: latest (via
npx -y kobsidian-mcp)
- Client: Claude Cowork (Windows)
- Vault: ~1,200 notes, many from Confluence exports containing PowerShell/bash code blocks
- OS: Windows 11
Description
stats.vaultthrows an internal parse error when the vault contains notes with backtick + single-quote sequences inside fenced code blocks (e.g. PowerShell commands using backtick escaping).Error
Steps to reproduce
stats.vaultExpected behavior
stats.vaultshould either skip the problematic note or handle the character gracefully and return statistics for the rest of the vault.Environment
npx -y kobsidian-mcp)