Skip to content

feat(github): add optional X-MCP-Features header for headless runs - #1302

Open
JasonOA888 wants to merge 1 commit into
cursor:mainfrom
JasonOA888:fix/github-mcp-features-header
Open

JasonOA888 wants to merge 1 commit into
cursor:mainfrom
JasonOA888:fix/github-mcp-features-header

Conversation

@JasonOA888

Copy link
Copy Markdown

Summary

Fixes #1025.

GitHub's remote MCP server defers issue_write, create_pull_request and update_pull_request to an MCP App form when the client advertises io.modelcontextprotocol/ui. Automations and background agents have nobody to submit that form, so no issue or PR gets created. The server's opt-out is the mcp_apps_disable_form_deferral flag, sent in the X-MCP-Features header, and before this change the plugin had no way to send it.

This PR adds an optional GITHUB_MCP_FEATURES variable (default "") and forwards it as X-MCP-Features. It follows the same optional-variable pattern as vanta and servicenow:

 "headers": {
-  "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
+  "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}",
+  "X-MCP-Features": "${GITHUB_MCP_FEATURES}"
 }

When the variable is empty, the server parses no flags (headers.ParseCommaSeparated("") returns [], see pkg/http/middleware/request_config.go). It also ignores unknown flags. So interactive users keep the form unless they opt out.

This PR also bumps the plugin to 1.1.0 and updates the CHANGELOG and the README setup section.

Tested: node scripts/validate-plugins.mjs passes.

@devin-ai-integration
devin-ai-integration Bot force-pushed the fix/github-mcp-features-header branch from ab8d883 to cb3c02e Compare November 20, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub plugin: issue_write / create_pull_request stall in headless automations on the MCP App form (needs X-MCP-Features opt-out)

1 participant