Skip to content

feat(shell): add configurable SHELL_TIMEOUT environment variable - #15

Merged
mudler merged 1 commit into
mudler:masterfrom
localai-bot:feature/timeout-env
Feb 26, 2026
Merged

feat(shell): add configurable SHELL_TIMEOUT environment variable#15
mudler merged 1 commit into
mudler:masterfrom
localai-bot:feature/timeout-env

Conversation

@localai-bot

Copy link
Copy Markdown
Contributor

Adds a configurable timeout via the SHELL_TIMEOUT environment variable for shell command execution in the shell MCP server.\n\nThis allows users to set a default timeout for all commands by setting the SHELL_TIMEOUT environment variable (in seconds). The default remains 30 seconds if not set or invalid.\n\nThe timeout can still be overridden per-request using the existing parameter in the tool input.\n\nFixes: The shell MCP needed a configurable timeout via environment variable.

- Add getTimeout() function to read SHELL_TIMEOUT env var (default: 30s)
- Update ExecuteCommand to use getTimeout() instead of hardcoded value
- Update tool description to document the new env variable
@localai-bot
localai-bot marked this pull request as ready for review February 26, 2026 20:59
@mudler
mudler merged commit e1e1142 into mudler:master Feb 26, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants