Skip to main content
Glama

Skill Management MCP Server

by fkesheh

run_skill_script

Execute scripts within skill directories with automatic dependency installation, environment variable loading, and argument passing for Python, Bash, and other executable files.

Instructions

Execute a script or executable program within a skill directory with optional arguments and automatic dependency management.

This tool runs scripts in multiple languages and automatically manages dependencies:

SUPPORTED LANGUAGES:

  • Python: Automatically installs PEP 723 inline dependencies via 'uv run' if declared in the script

  • Bash: Executes shell scripts (.sh files)

  • Other: Any executable file with proper shebang line

FEATURES:

  • Automatic dependency installation: Python scripts with PEP 723 metadata (/* script */ dependencies) are run with 'uv run' automatically

  • Environment variables: Loads skill-specific .env file and injects variables into script environment

  • Working directory: Can specify a subdirectory to run the script from

  • Arguments: Pass command-line arguments to the script

  • Output capture: Returns stdout, stderr, and exit code

PARAMETERS:

  • skill_name: The name of the skill directory (e.g., 'weather-skill')

  • script_path: Relative path to the script (e.g., 'scripts/fetch_weather.py', 'bin/process.sh')

  • args: Optional list of command-line arguments to pass to the script (e.g., ['--verbose', 'input.txt'])

  • working_dir: Optional working directory for execution (relative to skill root)

BEHAVIOR:

  • Python scripts with PEP 723 metadata are detected automatically and run with 'uv run'

  • Environment variables from skill's .env file are available to the script

  • Script must be executable or have proper shebang line

  • Script path is relative to the skill directory

RETURNS: Script execution result with:

  • Exit code (0 = success, non-zero = failure)

  • STDOUT (standard output)

  • STDERR (error output)

Input Schema

NameRequiredDescriptionDefault
argsNoOptional command-line arguments to pass to the script
script_pathYesRelative path to the script within the skill directory
skill_nameYesName of the skill
working_dirNoOptional working directory for script execution

Input Schema (JSON Schema)

{ "properties": { "args": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "Optional command-line arguments to pass to the script", "title": "Args" }, "script_path": { "description": "Relative path to the script within the skill directory", "title": "Script Path", "type": "string" }, "skill_name": { "description": "Name of the skill", "title": "Skill Name", "type": "string" }, "working_dir": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Optional working directory for script execution", "title": "Working Dir" } }, "required": [ "skill_name", "script_path" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fkesheh/skill-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server