首页/ AI 技能 / @skilllib/skill-2014279409744687107
Skill站外收录 @skilllib/skill-2014279409744687107

mcp-scripts

通过命令行参数接收输入,使用标准化工具调用格式实现对远程服务的安全访问与执行,支持代码搜索、静态分析及外部信息查询等操作,输出结构化结果供主系统处理。

0.0 (0) 177 次安装 原作者 编程导航
收录于 2026-01-22
商业与营销 AI 技能

Skills.MD

# MCP Script Rules When working with files in `scripts/`: ## DO - Use CLI arguments for all parameters (argparse) - Include USAGE docstring at top of file - Use `call_mcp_tool("server__tool", params)` pattern - Handle errors gracefully with informative messages - Print results to stdout for Claude to process ## DON'T - Hardcode parameters in the script - Edit scripts to change parameters (use CLI args instead) - Import from servers/ directly (use runtime.mcp_client) ## Tool Naming Tool IDs use double underscore: `serverName__toolName` Examples: - `morph__warpgrep_codebase_search` - `ast-grep__ast_grep` - `perplexity__perplexity_ask` ## Testing Test with: `uv run python -m runtime.harness scripts/<script>.py --help`

评论 0

还没有评论,来抢沙发。