Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/daily-team-status.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 10 additions & 11 deletions actions/setup/sh/convert_gateway_config_claude.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ echo "Input: $MCP_GATEWAY_OUTPUT"
# }
# }
#
# Claude format (JSON without Copilot-specific fields):
# Claude format (JSON with HTTP type and headers):
# {
# "mcpServers": {
# "server-name": {
# "type": "http",
# "url": "http://domain:port/mcp/server-name",
# "headers": {
# "Authorization": "apiKey"
Expand All @@ -53,22 +54,20 @@ echo "Input: $MCP_GATEWAY_OUTPUT"
# }
# }
#
# Claude doesn't use "type" or "tools" fields like Copilot does.
# The format is cleaner JSON with just url and headers.
# Claude uses "type": "http" for HTTP-based MCP servers.
# The "tools" field is removed as it's Copilot-specific.

jq --arg apiKey "$MCP_GATEWAY_API_KEY" '
.mcpServers |= with_entries(
.value |= (
# Remove type field if present (Claude doesn'\''t use it)
del(.type) |
# Ensure type is set to http for HTTP-based servers
.type = "http" |
# Remove tools field if present (Claude doesn'\''t use it)
del(.tools) |
# Ensure headers Authorization uses actual API key
if .headers and .headers.Authorization then
.headers.Authorization = $apiKey
else
.
end
# Always ensure headers object exists with Authorization
.headers = {
"Authorization": $apiKey
}
)
)
' "$MCP_GATEWAY_OUTPUT" > /tmp/gh-aw/mcp-config/mcp-servers.json
Expand Down
10 changes: 4 additions & 6 deletions actions/setup/sh/convert_gateway_config_copilot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,10 @@ jq --arg apiKey "$MCP_GATEWAY_API_KEY" '
.value |= (
# Add tools field if not present
if .tools then . else . + {"tools": ["*"]} end |
# Ensure headers Authorization uses actual API key
if .headers and .headers.Authorization then
.headers.Authorization = $apiKey
else
.
end
# Always ensure headers object exists with Authorization
.headers = {
"Authorization": $apiKey
}
)
)
' "$MCP_GATEWAY_OUTPUT" > /home/runner/.copilot/mcp-config.json
Expand Down
Loading