You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2.[GitHub Personal Access Token](https://github.com/settings/personal-access-tokens/new) with appropriate scopes
6
+
3. For local installation: [Docker](https://www.docker.com/) installed and running
4
7
5
-
1. Windsurf IDE installed
6
-
2.[GitHub Personal Access Token](https://github.com/settings/personal-access-tokens/new)
7
-
3.[Docker](https://www.docker.com/) installed and running
8
+
## Remote Server Setup (Recommended)
8
9
9
-
## Installation Steps
10
-
11
-
### Option 1: Plugin Installation (Recommended)
10
+
The remote GitHub MCP server is hosted by GitHub at `https://api.githubcopilot.com/mcp/` and supports both HTTP and SSE protocols. Windsurf currently supports PAT authentication only.
12
11
13
-
1. Click the `Plugins` icon or the MCP hammer icon in the Cascade window
14
-
2. Search for and select the `GitHub MCP Server`
15
-
3. Click `Install` at the top of the page
16
-
4. Input your GitHub PAT token in the input field when prompted
17
-
5. Click `Refresh` on the plugin page and restart Windsurf, if needed
12
+
### Direct SSE Configuration
13
+
Windsurf supports SSE servers with a `serverUrl` field:
**Note**: The npm package has a deprecation notice but remains functional.
45
68
46
-
⚠️ **Environment Variable Limitations**: Environment-variable interpolation (using a `$GITHUB_PAT` variable) is not supported in Windsurf.
69
+
## Installation Steps
70
+
71
+
### Via Plugin Store
72
+
1. Open Windsurf and navigate to Cascade
73
+
2. Click the **Plugins** icon or **hammer icon** (🔨)
74
+
3. Search for "GitHub MCP Server"
75
+
4. Click **Install** and enter your PAT when prompted
76
+
5. Click **Refresh** (🔄)
47
77
48
-
### Security Best Practices
78
+
### Manual Configuration
79
+
1. Click the hammer icon (🔨) in Cascade
80
+
2. Click **Configure** to open `~/.codeium/windsurf/mcp_config.json`
81
+
3. Add your chosen configuration from above
82
+
4. Save the file
83
+
5. Click **Refresh** (🔄) in the MCP toolbar
49
84
50
-
-**File Permissions**: Lock down file permissions for the configuration file:
51
-
```bash
52
-
chmod 600 ~/.codeium/windsurf/mcp_config.json
53
-
```
54
-
-**Version Control**: Avoid committing configuration files with tokens to version control
55
-
-**Token Scope**: Limit PAT scopes to necessary repositories and tools only
56
-
-**Token Rotation**: Regularly rotate your GitHub Personal Access Tokens
85
+
## Security Best Practices
57
86
58
-
## Configuration File Location
87
+
### Critical Security Note
88
+
⚠️ **Windsurf does NOT support environment variable interpolation**. You must hardcode your PAT in the configuration file. This makes security practices crucial.
59
89
60
-
The MCP configuration is stored at:
61
-
-`~/.codeium/windsurf/mcp_config.json`
90
+
### File Protection
91
+
```bash
92
+
# Secure the configuration file
93
+
chmod 600 ~/.codeium/windsurf/mcp_config.json
94
+
95
+
# Verify permissions
96
+
ls -la ~/.codeium/windsurf/mcp_config.json
97
+
```
62
98
63
-
## Post-Installation
99
+
### Token Security
100
+
- Create PATs with minimum required scopes:
101
+
-`repo` - For repository operations
102
+
-`read:packages` - For Docker image pull (local setup)
103
+
- Additional scopes based on tools you need
104
+
- Use separate PATs for different projects
105
+
- Regularly rotate tokens
106
+
- Never commit configuration files to version control
0 commit comments