Skip to content

fix(keycardai-mcp): restore MCP 2.x HTTP connections - #247

Merged
Larry-Osakwe merged 2 commits into
mainfrom
devin/1787959564-fix-mcp2-client-transport
Aug 29, 2026
Merged

fix(keycardai-mcp): restore MCP 2.x HTTP connections#247
Larry-Osakwe merged 2 commits into
mainfrom
devin/1787959564-fix-mcp2-client-transport

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Restore streamable-HTTP connections against MCP 2.x by passing an owned httpx2.AsyncClient with MCP's timeout/redirect defaults, porting HttpxAuth and OAuth challenge handling to httpx2 responses, and consuming the two-stream transport result.

The connection now closes both transport and HTTP-client resources, including failed setup paths. Real in-process streamable-HTTP coverage verifies unauthenticated and API-key clients on MCP 2.0.0 and 2.1.0; the full packages/mcp suite and Ruff checks pass.

Link to Devin session: https://app.devin.ai/sessions/6ca85eacfb404e96adb9a2765dcc2eda
Open in Devin Desktop: https://app.devin.ai/desktop/session/6ca85eacfb404e96adb9a2765dcc2eda?variant=devin
Requested by: @Larry-Osakwe

Co-Authored-By: Larry Osakwe <larry@keycard.ai>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

The client imports httpx2 in four modules but only received it
transitively through mcp.
@Larry-Osakwe
Larry-Osakwe merged commit b945203 into main Aug 29, 2026
5 checks passed
@Larry-Osakwe
Larry-Osakwe deleted the devin/1787959564-fix-mcp2-client-transport branch August 29, 2026 00:31
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.

3 participants