Skip to content

Commit 457cbb6

Browse files
authored
Refactor GitHub MCP configuration for HTTP usage
Signed-off-by: James Pether Sörling <pethers@users.noreply.github.com>
1 parent 12233cd commit 457cbb6

1 file changed

Lines changed: 27 additions & 32 deletions

File tree

.github/copilot-mcp.json

Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,47 @@
11
{
22
"mcpServers": {
3-
"github": {
4-
"type": "local",
5-
"command": "npx",
6-
"args": [
7-
"-y",
8-
"@modelcontextprotocol/server-github",
9-
"--toolsets",
10-
"all",
11-
"--tools",
12-
"*"
13-
],
14-
"env": {
15-
"GITHUB_TOKEN": "${{ secrets.COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN }}",
16-
"GITHUB_PERSONAL_ACCESS_TOKEN": "${{ secrets.COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN }}",
17-
"GITHUB_OWNER": "Hack23",
18-
"GITHUB_API_URL": "https://api.githubcopilot.com/mcp/insiders"
3+
"github": {
4+
"type": "http",
5+
"url": "https://api.githubcopilot.com/mcp/insiders",
6+
"headers": {
7+
"Authorization": "Bearer ${{ secrets.COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN }}"
8+
},
9+
"headers": {
10+
"X-MCP-Toolsets": "*"
1911
},
20-
"tools": ["*"]
12+
"tools": ["*"]
2113
},
2214
"filesystem": {
2315
"type": "local",
24-
"command": "npx",
25-
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/home/runner/work/riksdagsmonitor/riksdagsmonitor"],
26-
"tools": ["*"]
27-
},
28-
"git": {
29-
"type": "local",
30-
"command": "npx",
31-
"args": ["-y", "@modelcontextprotocol/server-git", "--repository", "/home/runner/work/riksdagsmonitor/riksdagsmonitor"],
16+
"command": "mcp-server-filesystem",
17+
"args": [
18+
"/home/runner/work/riksdagsmonitor/riksdagsmonitor"
19+
],
3220
"tools": ["*"]
3321
},
3422
"memory": {
35-
"type": "local",
36-
"command": "npx",
37-
"args": ["-y", "@modelcontextprotocol/server-memory"],
23+
"type": "local",
24+
"command": "mcp-server-memory",
25+
"args": [],
3826
"tools": ["*"]
3927
},
4028
"sequential-thinking": {
4129
"type": "local",
42-
"command": "npx",
43-
"args": ["-y", "@modelcontextprotocol/server-sequential-thinking"],
30+
"command": "mcp-server-sequential-thinking",
31+
"args": [],
4432
"tools": ["*"]
4533
},
46-
"playwright": {
34+
"playwright": {
4735
"type": "local",
4836
"command": "npx",
49-
"args": ["-y", "@modelcontextprotocol/server-playwright"],
37+
"args": [
38+
"-y",
39+
"@playwright/mcp@latest",
40+
"--headless"
41+
],
42+
"env": {
43+
"DISPLAY": ":99"
44+
},
5045
"tools": ["*"]
5146
}
5247
}

0 commit comments

Comments
 (0)