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-paging

SKILL.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

  1. Keep the new sandbox feature additive:
  • preserve older tools unchanged
  • add a dedicated request_*_access tool plus a dedicated snapshot tool
  1. Put all normalization and authorization in one validator:
  • absolute-path requirement
  • traversal rejection
  • supported-root restriction
  • symlink-escape rejection
  • allowed-root match before reading
  1. Reuse the existing snapshot/resource UX:
  • tool returns {resource_uri, paginated_resource_template}
  • resource returns metadata + entries + pagination
  1. Page different source kinds with the same envelope:
  • file snapshots → line entries
  • directory snapshots → deterministic child metadata entries
  1. Tell the model the order explicitly:
  • request_*_access first for blocked paths
  • create_*_snapshot second
  • read_resource third
  1. 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.py
  • src/mcp_linux_diag_server/server.py
  • src/mcp_linux_diag_server/client.py
  • tests/test_proc_snapshots.py
  • tests/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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/alonf/mcppythondemo/mcp-roots-snapshot-paging/badge)](https://verified-skill.com/skills/alonf/mcppythondemo/mcp-roots-snapshot-paging)

Something wrong with this skill or its page? Tell us.