Skip to content

Commit 99682c6

Browse files
authored
fix: add auth field to http_mcp_tool frontmatter schema (#24369)
1 parent 2f74213 commit 99682c6

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

pkg/parser/schemas/main_workflow_schema.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9657,11 +9657,32 @@
96579657
"type": "string"
96589658
},
96599659
"examples": [["*"], ["store_memory", "retrieve_memory"], ["brave_web_search"]]
9660+
},
9661+
"auth": {
9662+
"$ref": "#/$defs/http_mcp_auth"
96609663
}
96619664
},
96629665
"required": ["url"],
96639666
"additionalProperties": false
96649667
},
9668+
"http_mcp_auth": {
9669+
"type": "object",
9670+
"description": "Upstream authentication configuration for the HTTP MCP server. When configured, the gateway dynamically acquires tokens and injects them as Authorization headers on every outgoing request to this server. Currently only GitHub Actions OIDC is supported.",
9671+
"properties": {
9672+
"type": {
9673+
"type": "string",
9674+
"enum": ["github-oidc"],
9675+
"description": "Authentication type. Currently only 'github-oidc' is supported, which acquires short-lived JWTs from the GitHub Actions OIDC endpoint."
9676+
},
9677+
"audience": {
9678+
"type": "string",
9679+
"description": "The intended audience for the OIDC token (the 'aud' claim). If omitted, defaults to the server's url field.",
9680+
"format": "uri"
9681+
}
9682+
},
9683+
"required": ["type"],
9684+
"additionalProperties": false
9685+
},
96659686
"github_token": {
96669687
"type": "string",
96679688
"pattern": "^\\$\\{\\{\\s*(secrets\\.[A-Za-z_][A-Za-z0-9_]*(\\s*\\|\\|\\s*secrets\\.[A-Za-z_][A-Za-z0-9_]*)*|needs\\.[A-Za-z_][A-Za-z0-9_]*\\.outputs\\.[A-Za-z_][A-Za-z0-9_]*)\\s*\\}\\}$",

0 commit comments

Comments
 (0)