dsh-tool-json
JSON queries with a JMESPath subset.
JMESPath 子集 JSON 查询。
How to install
dsh plugin add github:omdsh-dev/dsh-tool-json About
dsh-tool-json English DSH JSON 查询工具插件 —— JMESPath-inspired 路径查询(自定义子集),零依赖递归下降解析器。 为什么需要 Agent 处理 JSON 是高频操作——API 返回值、配置文件、工具输出到处都是 JSON。当前做法是起 bash 进程跑 node -e 或 jq,每次都有进程开销和字符串序列化成本。 DSH 内置 grep 可以做正则匹配,但无法理解 JSON 结构。对于 {"items":[{"id":1}]}: grep 只能做字符串级搜索,容易误匹配值、key、或嵌套子对象中的同名 key json 走结构化路径,只匹配指定路径,不混淆 key 和 value 安全模型 手写递归下降解析器,无 eval/new Function;Object.hasOwn 防原型链污染(constructor/__proto__ 读取不触发原型链)。资源上限(**对象与字符串两条输入路径统一执行**): 查询表达式长度 ≤ 200 字符、解析深度 ≤ 20 层、数组索引必须是安全整数 字符串输入 ≤ 1,000,000 bytes(UTF-8);输入嵌套深度 ≤ 100 单次 wildcard 投影 ≤ 100,000 元素 只接受 JSON-compatible 值(null/boolean/有限 number/strin…
Recommendation signals
Meta
- License
- MIT
- Language
- TypeScript
- GitHub stars
- 3
- mo. downloads
- –
- Last push
- 2026-09-10
- Created
- 2026-08-05
Links
Basic safety check
- Findings
- curated 收录但无 npm 包/安装命令
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- dsh, dsh-plugin, jmespath, json, query
Related plugins
mobile-mcp
mobile-next/mobile-mcp
Model Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices)
davinci-resolve-mcp
samuelgursky/davinci-resolve-mcp
MCP server integration for DaVinci Resolve Studio
ssh-mcp
tufantunc/ssh-mcp
MCP server exposing SSH control for Linux servers via Model Context Protocol.