fix(spec+compiler): update MCP gateway OTLP headers to string-only (v1.13.0)#25135
fix(spec+compiler): update MCP gateway OTLP headers to string-only (v1.13.0)#25135
Conversation
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/3996a176-e590-4a9b-a928-05c51894409e Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@lpcox FYI |
|
@copilot update compiler to emit string with headers value and NOT try to parse them to a JSON object. |
…sion Agent-Logs-Url: https://github.com/github/gh-aw/sessions/6920f518-5ec9-4aa2-b777-42c0b5b9c02d Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done in commit 58c4131. The compiler ( Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot merge main and recompile |
…teway-specification Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done in commit c537fa3. Merged main and recompiled all 182 workflows. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
🌑 The shadows whisper... Smoke Codex failed. The oracle requires further meditation... |
|
💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges... |
|
📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing... |
|
❌ Tool validation failed! Agent Container Smoke Test detected missing tools: failed |
|
📰 DEVELOPING STORY: Smoke Copilot reports failed. Our correspondents are investigating the incident... |
|
Commit pushed:
|
|
@copilot recompile |
All 182 workflows are already up to date — recompile produced no changes. The lock files are current as of the previous merge commit (c537fa3). Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
The CI failure at step 33 is a schema validation error in the MCP Gateway (v0.2.16): The gateway (v0.2.16) has a bundled schema that expects This is a forward-compatibility issue: our spec v1.13.0 changes |
|
@copilot Update the Gateway version and recompile |
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/e966cd52-1b64-4d0a-b619-2b716bc3f6db Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done in commit b39e7b8. Bumped Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
❌ Tool validation failed! Agent Container Smoke Test detected missing tools: failed |
|
📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing... |
|
🌑 The shadows whisper... Smoke Codex failed. The oracle requires further meditation... |
|
💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges... |
|
📰 DEVELOPING STORY: Smoke Copilot reports failed. Our correspondents are investigating the incident... |
|
Hey One gap to address before this moves out of draft:
If you'd like a hand, you can assign this prompt to your coding agent:
|
Summary
Updates the MCP Gateway Specification, JSON schemas, and compiler so that the
headersfield in theopentelemetryconfiguration is exclusively a string, removing the previously supported object form. The compiler no longer converts the headers string to a JSON object — the raw string value is passed through directly. The MCP Gateway version has been bumped to v0.2.17, which includes the updated schema that accepts string headers.Changes
Specification (
docs/src/content/docs/reference/mcp-gateway.md)1.12.0→1.13.0headerstype fromobject | stringtostring; updated description to clarify the value is passed through as-isheadersMUST be a string when provided; removed string-parsing requirementT-OTEL-001 through T-OTEL-012→T-OTEL-001 through T-OTEL-010headerswith string formJSON Schemas
pkg/workflow/schemas/mcp-gateway-config.schema.jsondocs/public/schemas/mcp-gateway-config.schema.jsonBoth: changed
opentelemetryConfig.headersfromoneOf [object, string]to plainstringtype with updated description.Compiler (
pkg/workflow/mcp_renderer.go)OTEL_EXPORTER_OTLP_HEADERSfromkey=value,...format into a JSON object (_GH_AW_OTLP_HEADERS_JSON)"headers": "${OTEL_EXPORTER_OTLP_HEADERS}"— a JSON string value that bash expands at runtime — instead of the previously injected JSON objectGateway Version (
pkg/constants/version_constants.go)DefaultMCPGatewayVersion:v0.2.16→v0.2.17headersto be an object, causing startup validation failures with the new string-form output; v0.2.17 accepts string headersWorkflow Lock Files
Changeset
headersto string-only and removed object-form support in spec, schema, and compiler output. Bumped gateway image to v0.2.17.