-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest-quick-connect.sh
More file actions
executable file
·58 lines (51 loc) · 1.86 KB
/
Copy pathtest-quick-connect.sh
File metadata and controls
executable file
·58 lines (51 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
# Test script for quick connection modes
echo "Testing MCP-TUI Quick Connection Modes"
echo "======================================"
# Build first
echo "Building mcp-tui..."
make build
echo ""
echo "Available test modes:"
echo "1. Quick connect with positional argument"
echo "2. Quick connect with --cmd and --args flags"
echo "3. Quick connect with --url flag"
echo "4. Interactive mode (no arguments)"
echo ""
read -p "Choose a test mode (1-4): " choice
case $choice in
1)
echo "Testing: mcp-tui \"npx -y @modelcontextprotocol/server-everything stdio\""
echo "This should skip the connection screen and go directly to the main interface"
echo "Press Ctrl+C to exit when you're done testing"
echo ""
./bin/mcp-tui "npx -y @modelcontextprotocol/server-everything stdio"
;;
2)
echo "Testing: mcp-tui --cmd npx --args \"-y,@modelcontextprotocol/server-everything,stdio\""
echo "This should skip the connection screen and go directly to the main interface"
echo "Press Ctrl+C to exit when you're done testing"
echo ""
./bin/mcp-tui --cmd npx --args "-y,@modelcontextprotocol/server-everything,stdio"
;;
3)
echo "Testing: mcp-tui --url http://localhost:8000/mcp"
echo "This should skip the connection screen and attempt HTTP connection"
echo "Note: This will likely fail unless you have an MCP server running on localhost:8000"
echo "Press Ctrl+C to exit when you're done testing"
echo ""
./bin/mcp-tui --url http://localhost:8000/mcp
;;
4)
echo "Testing: mcp-tui (interactive mode)"
echo "This should show the connection screen where you can manually configure the connection"
echo "Press 'q' or Ctrl+C to exit when you're done testing"
echo ""
./bin/mcp-tui
;;
*)
echo "Invalid choice. Please run the script again and choose 1-4."
;;
esac
echo ""
echo "Test completed!"