Skip to content

sandbox.mcp.payloadSizeThreshold is ignored during frontmatter extraction #21135

@strawgate

Description

@strawgate

Summary

sandbox.mcp.payloadSizeThreshold (and related payload fields) are documented but appear to be ignored at compile time, so generated workflows still export the default MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD=524288.

Repro

Use frontmatter like:

sandbox:
  mcp:
    container: ghcr.io/github/gh-aw-mcpg
    payloadSizeThreshold: 65536

Compile workflow and inspect generated lock/setup step.
Expected: MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD=65536
Actual: MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD=524288

Likely cause

extractMCPGatewayConfig() does not extract payload fields from frontmatter (payloadSizeThreshold, payload-size-threshold, payloadDir, payloadPathPrefix), so values never reach workflowData.SandboxConfig.MCP before mcp_setup_generator applies defaults.

Notes

This also makes the documented frontmatter setting effectively non-functional in current builds.

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions