1---2name: mcp-scripts3description: MCP Script Rules4---567# MCP Script Rules
89When working with files in `scripts/`:
1011## DO
12- Use CLI arguments for all parameters (argparse)
13- Include USAGE docstring at top of file
14- Use `call_mcp_tool("server__tool", params)` pattern
15- Handle errors gracefully with informative messages
16- Print results to stdout for Claude to process
1718## DON'T
19- Hardcode parameters in the script
20- Edit scripts to change parameters (use CLI args instead)
21- Import from servers/ directly (use runtime.mcp_client)
2223## Tool Naming
24Tool IDs use double underscore: `serverName__toolName`
2526Examples:
27- `morph__warpgrep_codebase_search`
28- `ast-grep__ast_grep`
29- `perplexity__perplexity_ask`
3031## Testing
32Test with: `uv run python -m runtime.harness scripts/<script>.py --help`
3334---
3536**Source:** [`parcadei/Continuous-Claude-v3`](https://github.com/parcadei/Continuous-Claude-v3) → `.claude/skills/mcp-scripts/SKILL.md`
Run npx skillmds@latest add parcadei/mcp-scripts in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
MCP Script Rules It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: makes network calls. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
parcadei (@parcadei) published this skill. Their other Agent Skills are listed on their SkillMD profile.