-
Notifications
You must be signed in to change notification settings - Fork 322
fix: add auth field to http_mcp_tool frontmatter schema
#24369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d03f14a
10e33ef
cc09b96
02af79f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -9657,11 +9657,32 @@ | |||||||
| "type": "string" | ||||||||
| }, | ||||||||
| "examples": [["*"], ["store_memory", "retrieve_memory"], ["brave_web_search"]] | ||||||||
| }, | ||||||||
| "auth": { | ||||||||
| "$ref": "#/$defs/http_mcp_auth" | ||||||||
| } | ||||||||
|
Comment on lines
+9661
to
9663
|
||||||||
| }, | ||||||||
| "required": ["url"], | ||||||||
| "additionalProperties": false | ||||||||
| }, | ||||||||
| "http_mcp_auth": { | ||||||||
| "type": "object", | ||||||||
| "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.", | ||||||||
| "properties": { | ||||||||
| "type": { | ||||||||
| "type": "string", | ||||||||
| "enum": ["github-oidc"], | ||||||||
| "description": "Authentication type. Currently only 'github-oidc' is supported, which acquires short-lived JWTs from the GitHub Actions OIDC endpoint." | ||||||||
| }, | ||||||||
| "audience": { | ||||||||
| "type": "string", | ||||||||
| "description": "The intended audience for the OIDC token (the 'aud' claim). If omitted, defaults to the server's url field.", | ||||||||
| "format": "uri" | ||||||||
|
Comment on lines
+9679
to
+9680
|
||||||||
| "description": "The intended audience for the OIDC token (the 'aud' claim). If omitted, defaults to the server's url field.", | |
| "format": "uri" | |
| "description": "The intended audience for the OIDC token (the 'aud' claim). If omitted, defaults to the server's url field." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot refactor auth data type and reference in JSON schema
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 02af79f. Extracted the inline
authdefinition into a newhttp_mcp_auth$defstype and replaced the inline definition inhttp_mcp_toolwith"$ref": "#/$defs/http_mcp_auth", following the same pattern used bygithub_token,github_app, etc.