Skip to content

Fix Forgetful MCP 406 error by adding required Accept header#772

Closed
Copilot wants to merge 1 commit into
claude/fix-issue-743-uyKZ3from
copilot/sub-pr-744
Closed

Fix Forgetful MCP 406 error by adding required Accept header#772
Copilot wants to merge 1 commit into
claude/fix-issue-743-uyKZ3from
copilot/sub-pr-744

Conversation

Copilot AI commented Jan 4, 2026

Copy link
Copy Markdown
Contributor

The Forgetful MCP server requires clients to specify both application/json and text/event-stream in the Accept header, returning 406 Not Acceptable otherwise.

Changes

  • Added Accept: application/json, text/event-stream header to health check request in Test-MemoryHealth.ps1
  • Added inline comment explaining the dual content-type requirement:
    • application/json: Standard MCP protocol responses
    • text/event-stream: Server-Sent Events for streaming responses
$headers = @{
    'Content-Type' = 'application/json'
    'Accept' = 'application/json, text/event-stream'  # Both required
}

This follows the existing pattern in Test-ForgetfulHealth.ps1 which already includes both content types.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI mentioned this pull request Jan 4, 2026
21 tasks
@diffray diffray Bot added the diffray-review-failed diffray review status: failed label Jan 4, 2026
Copilot AI changed the title [WIP] Fix issue 743 with Accept header in requests Fix Forgetful MCP 406 error by adding required Accept header Jan 4, 2026
Copilot AI requested a review from rjmurillo-bot January 4, 2026 15:42
@rjmurillo rjmurillo closed this Jan 4, 2026
@rjmurillo rjmurillo added this to the 0.2.0 milestone Jan 9, 2026
@rjmurillo-bot rjmurillo-bot deleted the copilot/sub-pr-744 branch January 18, 2026 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

diffray-review-failed diffray review status: failed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants