Skip to content

Commit 4f5636d

Browse files
feat: correct MCP configuration with required parameters for GitHub and Coder integrations
1 parent a6170e4 commit 4f5636d

File tree

1 file changed

+14
-4
lines changed
  • registry/coder-labs/modules/copilot-cli/scripts

1 file changed

+14
-4
lines changed

registry/coder-labs/modules/copilot-cli/scripts/install.sh

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,21 @@ setup_mcp_config() {
127127
if command_exists jq; then
128128
mcp_servers=$(echo "$mcp_servers" | jq '. + {
129129
"github": {
130-
"command": "@github/copilot-mcp-github"
130+
"command": "@github/copilot-mcp-github",
131+
"args": [],
132+
"type": "local",
133+
"tools": []
131134
}
132135
}')
133136
elif command_exists node; then
134137
mcp_servers=$(node -e "
135138
const servers = JSON.parse(\`$mcp_servers\`);
136-
servers.github = { command: '@github/copilot-mcp-github' };
139+
servers.github = {
140+
command: '@github/copilot-mcp-github',
141+
args: [],
142+
type: 'local',
143+
tools: []
144+
};
137145
console.log(JSON.stringify(servers));
138146
")
139147
fi
@@ -145,7 +153,8 @@ setup_mcp_config() {
145153
"coder": {
146154
"command": "coder",
147155
"args": ["exp", "mcp", "server"],
148-
"type": "stdio",
156+
"type": "local",
157+
"tools": [],
149158
"env": {
150159
"CODER_MCP_APP_STATUS_SLUG": "'"$ARG_MCP_APP_STATUS_SLUG"'",
151160
"CODER_MCP_AI_AGENTAPI_URL": "http://localhost:3284"
@@ -158,7 +167,8 @@ setup_mcp_config() {
158167
servers.coder = {
159168
command: 'coder',
160169
args: ['exp', 'mcp', 'server'],
161-
type: 'stdio',
170+
type: 'local',
171+
tools: [],
162172
env: {
163173
CODER_MCP_APP_STATUS_SLUG: '$ARG_MCP_APP_STATUS_SLUG',
164174
CODER_MCP_AI_AGENTAPI_URL: 'http://localhost:3284'

0 commit comments

Comments
 (0)