alonf/mcppythondemo/mcp-roots-snapshot-paging
Claude Code and agent skill by alonf/mcppythondemo
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install alonf/mcppythondemo/mcp-roots-snapshot-pagingSKILL.md
MCP Roots + Snapshot Paging Skill
Use When
You need to add a safe sandboxed read surface to an MCP server without breaking older tools.
Pattern
- Keep the new sandbox feature additive:
- preserve older tools unchanged
- add a dedicated
request_*_accesstool plus a dedicated snapshot tool
- Put all normalization and authorization in one validator:
- absolute-path requirement
- traversal rejection
- supported-root restriction
- symlink-escape rejection
- allowed-root match before reading
- Reuse the existing snapshot/resource UX:
- tool returns
{resource_uri, paginated_resource_template} - resource returns metadata + entries + pagination
- Page different source kinds with the same envelope:
- file snapshots → line entries
- directory snapshots → deterministic child metadata entries
- Tell the model the order explicitly:
request_*_accessfirst for blocked pathscreate_*_snapshotsecondread_resourcethird
- Be defensive with MCP resource query handling:
- register the paged template
- also parse
?limit=...&offset=...if it leaks through the base{id}route
Reference Files
src/mcp_linux_diag_server/tools/proc_snapshots.pysrc/mcp_linux_diag_server/server.pysrc/mcp_linux_diag_server/client.pytests/test_proc_snapshots.pytests/test_m7_http.py
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.squad/skills/mcp-roots-snapshot-paging/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alonf/mcppythondemo/mcp-roots-snapshot-paging)