Skip to content

Conversation

@mattpodwysocki
Copy link
Contributor

Description

This PR addresses a number of issues for the MCP Server:

  • Moves to proper ESM/CJS dual emitting via tshy

  • Eliminates the patching of fetch and instead creates a pipeline which adds a retry policy and user agent policy

    • Uses dependency injection to set the pipeline policy
    • Fetch is now replaceable with any implementation without global patching
  • Migrates tests from jest to vitest for better ESM support

  • Fixes code emitting to NodeNext instead of ESNext and fixes import inconsistencies

  • Closes

This closes the following work items:

  • AGI-377
  • AGI-378
  • AGI-379

Testing

Adds additional unit tests for the following:

  • fetchClient

Checklist

  • Code has been tested locally
  • Unit tests have been added or updated
  • Documentation has been updated if needed

Additional Notes

@mattpodwysocki mattpodwysocki marked this pull request as ready for review September 9, 2025 19:36
@mattpodwysocki mattpodwysocki requested a review from a team as a code owner September 9, 2025 19:36
@mattpodwysocki mattpodwysocki merged commit b1f2566 into main Sep 10, 2025
1 check passed
@mattpodwysocki mattpodwysocki deleted the feat/mcp-vitest-tshy branch September 10, 2025 13:26
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