-
-
Notifications
You must be signed in to change notification settings - Fork 158
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·72 lines (61 loc) · 1.84 KB
/
setup.sh
File metadata and controls
executable file
·72 lines (61 loc) · 1.84 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
# Parallel Search MCP Setup Script
# Web search integration for Claude Code
# Created by Sterling Chin
set -e
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
echo ""
echo -e "${BLUE}========================================${NC}"
echo -e "${BLUE} Parallel Search MCP Setup${NC}"
echo -e "${BLUE}========================================${NC}"
echo ""
# Check Claude Code
if command -v claude &> /dev/null; then
echo -e "${GREEN}✓ Claude Code installed${NC}"
else
echo -e "${RED}✗ Claude Code not found${NC}"
echo "Install with: npm install -g @anthropic-ai/claude-code"
exit 1
fi
echo ""
echo "Where should this integration be available?"
echo " 1) All projects (user-scoped)"
echo " 2) This project only (project-scoped)"
echo ""
echo -e "${YELLOW}Choice [1]:${NC}"
read -r SCOPE_CHOICE
SCOPE_CHOICE=${SCOPE_CHOICE:-1}
if [[ "$SCOPE_CHOICE" == "1" ]]; then
SCOPE_FLAG="-s user"
else
SCOPE_FLAG=""
fi
echo ""
echo -e "${BLUE}Adding Parallel Search MCP to Claude Code...${NC}"
# Remove existing if present
claude mcp remove parallel-search 2>/dev/null || true
# Add Parallel Search remote MCP server
claude mcp add parallel-search $SCOPE_FLAG --transport http https://search-mcp.parallel.ai/mcp
echo ""
echo -e "${GREEN}Parallel Search MCP added!${NC}"
echo ""
echo -e "${BLUE}========================================${NC}"
echo -e "${BLUE} Setup Complete!${NC}"
echo -e "${BLUE}========================================${NC}"
echo ""
echo "Next steps:"
echo ""
echo " 1. Start Claude Code:"
echo -e " ${YELLOW}claude${NC}"
echo ""
echo " 2. Try it out:"
echo -e " ${YELLOW}\"Search the web for latest Node.js releases\"${NC}"
echo -e " ${YELLOW}\"What's the weather in San Francisco?\"${NC}"
echo ""
echo -e "${GREEN}You're all set!${NC}"
echo ""