Skip to main content
Glama

mcp-shell-server

by tumf
import pytest from mcp_shell_server.server import ExecuteToolHandler @pytest.mark.asyncio async def test_server_input_validation(): """Test input validation in execute tool""" handler = ExecuteToolHandler() # Test command must be an array with pytest.raises(ValueError, match="'command' must be an array"): await handler.run_tool({"command": "not an array", "directory": "/"}) # Test directory is required with pytest.raises(ValueError, match="Directory is required"): await handler.run_tool({"command": ["echo", "test"], "directory": ""}) # Test command without arguments with pytest.raises(ValueError, match="No command provided"): await handler.run_tool({"directory": "/"})

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/tumf/mcp-shell-server'

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