Skip to content

fix(agent): reuse mcp connections to fetch tools#1067

Merged
charlesvien merged 1 commit intomainfrom
fix/reuse-mcp-connection
Feb 27, 2026
Merged

fix(agent): reuse mcp connections to fetch tools#1067
charlesvien merged 1 commit intomainfrom
fix/reuse-mcp-connection

Conversation

@skoob13
Copy link
Contributor

@skoob13 skoob13 commented Feb 27, 2026

Problem

The MCP SDK seems to create a second separate connection that Claude picks up despite our efforts not to do that.

Changes

  • Refactored the tool retrieval to reuse existing MCP connections from Agents SDK.

Copy link
Contributor Author

skoob13 commented Feb 27, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@skoob13 skoob13 force-pushed the fix/reuse-mcp-connection branch from 082b2fe to a8ce75f Compare February 27, 2026 10:45
@skoob13 skoob13 changed the title reuse sdk to fetch tools fix(agent): reuse mcp connections to fetch tools Feb 27, 2026
@skoob13 skoob13 force-pushed the fix/reuse-mcp-connection branch 2 times, most recently from 069afe1 to ec660b5 Compare February 27, 2026 10:59
@skoob13 skoob13 marked this pull request as ready for review February 27, 2026 11:00
@skoob13 skoob13 marked this pull request as draft February 27, 2026 11:01
@skoob13 skoob13 force-pushed the fix/reuse-mcp-connection branch from ec660b5 to df5752a Compare February 27, 2026 11:06
@skoob13 skoob13 requested a review from a team February 27, 2026 11:06
@skoob13 skoob13 marked this pull request as ready for review February 27, 2026 11:06
@charlesvien charlesvien force-pushed the fix/token-refresh branch 2 times, most recently from 8d4a531 to f6e79e8 Compare February 27, 2026 17:05
Copy link
Member

Merge activity

  • Feb 27, 7:06 PM UTC: A user started a stack merge that includes this pull request via Graphite.

@charlesvien charlesvien changed the base branch from fix/token-refresh to graphite-base/1067 February 27, 2026 19:07
@charlesvien charlesvien changed the base branch from graphite-base/1067 to main February 27, 2026 19:07
@charlesvien charlesvien merged commit d7a2ba9 into main Feb 27, 2026
10 checks passed
@charlesvien charlesvien deleted the fix/reuse-mcp-connection branch February 27, 2026 19:24
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