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
Copy file name to clipboardExpand all lines: README.md
+31-24Lines changed: 31 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,7 +156,7 @@ Add to your MCP client configuration (e.g., Claude Desktop, VS Code):
156
156
157
157
### Run in GitHub Codespaces (Easiest)
158
158
159
-
The fastest way to get started — no local setup required! Codespaces provides automatic HTTPS URLs, eliminating the need for tunneling tools.
159
+
The fastest way to get started — no local setup required! Codespaces provides automatic HTTPS URLs and **auto-configures**the MCP client settings for you.
160
160
161
161
[](https://codespaces.new/samueltauil/copilot-compass?quickstart=1)
162
162
@@ -166,9 +166,19 @@ The fastest way to get started — no local setup required! Codespaces provides
166
166
2. Click **Code** → **Codespaces** → **Create codespace on main**
167
167
3. Wait for the container to build (~2 minutes)
168
168
169
-
#### Configure GitHub Token
169
+
#### What Happens Automatically
170
170
171
-
Before starting the server, add your GitHub token as a Codespaces secret:
171
+
When your Codespace starts:
172
+
1. ✅ Dependencies are installed and project is built
173
+
2. ✅ MCP server starts automatically on port 3001
174
+
3. ✅ Port 3001 is made public with HTTPS
175
+
4. ✅ VS Code's `mcp.json` is configured with your Codespace URL
176
+
177
+
The MCP server URL will be: `https://{codespace-name}-3001.app.github.dev/mcp`
178
+
179
+
#### Configure GitHub Token (Optional)
180
+
181
+
For live Copilot metrics (instead of demo data), add your GitHub token as a Codespaces secret:
172
182
173
183
1. Go to [github.com/settings/codespaces](https://github.com/settings/codespaces)
174
184
2. Click **New secret**
@@ -181,37 +191,34 @@ Alternatively, create a `.env` file in the Codespace terminal:
181
191
182
192
```bash
183
193
echo"GITHUB_TOKEN=your-token-here"> .env
194
+
npm start # Restart the server
184
195
```
185
196
186
-
#### Start the Server
197
+
#### Verify It's Working
187
198
188
-
```bash
189
-
npm start
190
-
```
199
+
1. Check the terminal — you should see:
200
+
```
201
+
🧭 Copilot Compass - Codespaces Setup
202
+
✅ Codespaces detected: your-codespace-name
203
+
✅ MCP config written to: ~/.vscode-server/data/User/mcp.json
204
+
🚀 Starting MCP server...
205
+
```
191
206
192
-
#### Get Your Public URL
207
+
2. Open the **Ports** tab and verify port 3001 is public
193
208
194
-
1. Open the **Ports** tab in VS Code (bottom panel)
195
-
2. Find port `3001` (labeled "MCP Server")
196
-
3. Right-click → **Port Visibility** → **Public** (if not already)
197
-
4. Copy the **Forwarded Address** (e.g., `https://username-codespace-abc123-3001.app.github.dev`)
209
+
3. The MCP server is now ready! Use it from Copilot Chat or any MCP client.
> **Tip**: The Codespaces URL persists as long as your Codespace is running. For long-term use, consider running the server as a background task or using a dedicated VM.
221
+
> **Tip**: The Codespaces URL persists as long as your Codespace is running. For long-term use, consider keeping the Codespace alive or using a dedicated VM.
0 commit comments