Bootstrap MCP server configurations for workers #198

Merged
rwachters merged 1 commit from bootstrap-assigned-mcp-server-configurations into change-mcp-tool-call-architecture 2026-04-21 23:06:34 +00:00
rwachters commented 2026-04-21 23:06:18 +00:00 (Migrated from github.com)

Description of changes

This PR introduces the AssignedConfigBootstrapper to fetch and cache MCP server configurations, ensuring a smoother setup process. It integrates the bootstrap step into the WebSocketConnectionLoop prior to establishing a WebSocket session. Additionally, it includes:

  • A new WorkerAuthenticatedRequestExecutor for standardized auth token handling and retry logic for 401/403 errors.
  • Refactoring of WorkerAuthManagerImpl to improve performance with in-memory token caching.
  • A unified error handling structure for worker runtime errors through WorkerRuntimeError.

Checklist

  • Tests added for new functionality.
  • Documentation updated (if applicable).
  • Code adheres to project's style and guidelines.
### Description of changes This PR introduces the `AssignedConfigBootstrapper` to fetch and cache MCP server configurations, ensuring a smoother setup process. It integrates the bootstrap step into the `WebSocketConnectionLoop` prior to establishing a WebSocket session. Additionally, it includes: - A new `WorkerAuthenticatedRequestExecutor` for standardized auth token handling and retry logic for 401/403 errors. - Refactoring of `WorkerAuthManagerImpl` to improve performance with in-memory token caching. - A unified error handling structure for worker runtime errors through `WorkerRuntimeError`. ### Checklist - [ ] Tests added for new functionality. - [ ] Documentation updated (if applicable). - [ ] Code adheres to project's style and guidelines.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Torvian.eu/chatbot!198
No description provided.