Skip to main content
Glama
mjmorales

simple-mcp-runner

by mjmorales
executor_unix_test.go616 B
//go:build !windows package executor import ( "testing" "github.com/mjmorales/simple-mcp-runner/pkg/types" ) func getTimeoutTestCase() testCase { return testCase{ name: "command with timeout", req: &types.CommandExecutionRequest{ Command: "sleep", Args: []string{"10"}, Timeout: "100ms", }, wantErr: false, check: func(t *testing.T, result *types.CommandExecutionResult) { if !result.TimedOut { t.Error("expected command to timeout") } if result.ErrorMessage != "command timed out" { t.Errorf("expected timeout error message, got %s", result.ErrorMessage) } }, } }

Latest Blog Posts

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/mjmorales/simple-mcp-runner'

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