Commit df7422e

mo khan <mo@mokhan.ca>
2025-08-18 20:43:12
chore: fix broken tests
1 parent ce09b14
Changed files (1)
test
integration
test/integration/main_test.go
@@ -221,14 +221,14 @@ func TestAllServers(t *testing.T) {
 	servers := []ServerTestConfig{
 		{
 			BinaryName:      "mcp-filesystem",
-			Args:            []string{"--allowed-directory", tempDir},
+			Args:            []string{tempDir},
 			ExpectedTools:   []string{"read_file", "write_file"},
 			ExpectedServers: "filesystem",
 			MinResources:    1, // Should have at least the temp directory
 		},
 		{
 			BinaryName:      "mcp-git",
-			Args:            []string{"--repository", getProjectRoot()},
+			Args:            []string{getProjectRoot()},
 			ExpectedTools:   []string{"git_status", "git_diff", "git_commit"},
 			ExpectedServers: "mcp-git",
 			MinResources:    1, // Should have git repository resources
@@ -263,7 +263,7 @@ func TestAllServers(t *testing.T) {
 		},
 		{
 			BinaryName:      "mcp-maildir",
-			Args:            []string{"--maildir-path", tempDir},
+			Args:            []string{tempDir},
 			ExpectedTools:   []string{"maildir_scan_folders", "maildir_list_messages"},
 			ExpectedServers: "maildir-server",
 			MinResources:    1, // Should have maildir resources
@@ -278,9 +278,9 @@ func TestAllServers(t *testing.T) {
 		{
 			BinaryName:      "mcp-bash",
 			Args:            []string{},
-			ExpectedTools:   []string{"bash_exec", "system_info", "get_env"},
+			ExpectedTools:   []string{"exec"},
 			ExpectedServers: "bash",
-			MinResources:    0, // Bash server has resources but they're dynamically registered
+			MinResources:    90, // Bash server has bash builtins and coreutils resources
 		},
 		{
 			BinaryName:      "mcp-semantic",
@@ -455,11 +455,11 @@ func TestServerStartupPerformance(t *testing.T) {
 			var args []string
 			switch serverName {
 			case "mcp-filesystem":
-				args = []string{"--allowed-directory", tempDir}
+				args = []string{tempDir}
 			case "mcp-git":
-				args = []string{"--repository", getProjectRoot()}
+				args = []string{getProjectRoot()}
 			case "mcp-maildir":
-				args = []string{"--maildir-path", tempDir}
+				args = []string{tempDir}
 			case "mcp-imap":
 				args = []string{"--server", "example.com", "--username", "test", "--password", "test"}
 			case "mcp-semantic":