AgentSkillsCN

python-executor

执行Python脚本与代码片段。可用于“运行Python脚本”、“用Python进行计算”或“测试代码片段”。

SKILL.md
--- frontmatter
name: python-executor
description: Execute Python scripts and snippets. Use this for "run python script", "calculate with python", or "test snippet".

Python Executor Skill

Uses mcp-run-python to execute Python code safely.

Usage

Command Template:

bash
npx mcporter call --command "uvx mcp-run-python" --tool <tool_name> --args <json_args>

Common Tools

  • run_python: Execute a python script or code block.

Example: Run a calculation

bash
npx mcporter call --command "uvx mcp-run-python" --tool run_python --args '{"code": "print(25 * 4)"}'