Skip to content

C# Re-implementation#5

Merged
PederHP merged 30 commits into
mainfrom
csharp_reimplementation
May 14, 2026
Merged

C# Re-implementation#5
PederHP merged 30 commits into
mainfrom
csharp_reimplementation

Conversation

@PederHP
Copy link
Copy Markdown
Member

@PederHP PederHP commented Mar 14, 2026

Re-implementation of C# interceptors SDK with clearer focus on server-side / gateway interceptors.
Fixes a lot of issues with the existing implementation.
Still more boilerplate than I'm happy with, but this is better than what was there. Will refine further in later PRs.

@PederHP PederHP marked this pull request as ready for review March 17, 2026 18:56
PederHP and others added 21 commits April 6, 2026 17:20
- Introduced a new sample project `TransparentProxySample` demonstrating the use of a transparent MCP proxy that connects to both a backend MCP server and an interceptor server.
- Implemented `McpInterceptorGateway` to handle requests through interceptor chains before forwarding to the backend server.
- Added `InterceptorChainRunner` to manage the execution of interceptor phases.
- Enhanced `McpInterceptorGateway` with configuration options for backend and interceptor clients.
- Created unit tests for the `McpInterceptorGateway` to validate capabilities, interceptor invocation, and payload mutation.
- Updated project references and dependencies in the test project.
…proved payload handling and synchronization for notification registrations
…new proxy capabilities and improved error handling
… Proxy Configurator

- Added `GatewayInterceptorProtocolBridge` to manage capabilities and passthrough filters for interceptors.
- Implemented `GatewayProxyConfigurator` to configure server options based on backend capabilities.
- Centralized extension capability key in `InterceptorProtocolConstants`.
- Updated `McpServerInterceptorBuilderExtensions` to use the new centralized key.
- Enhanced tests for gateway components to validate new functionality and configurations.
…rceptor gateway and implement connection forwarding logic
… interceptor server connections and update related documentation
…ble HTTP transport and enhance JSON configuration
…vability interceptors for mood classification
PederHP added 5 commits May 14, 2026 11:30
- Removed the old `InterceptorChainExecutorTests` and migrated tests to `InterceptorChainOrchestratorTests`.
- Introduced `InterceptorChainOrchestrator` to handle client-side chain execution with proper ordering of mutations, validations, and sinks.
- Updated test cases to validate the new orchestrator's behavior, ensuring correct execution order and handling of various scenarios including error cases.
- Enhanced the ability to filter interceptors by event and phase during execution.
- Added comprehensive tests for validation summaries and error handling in both mutation and validation phases.
- Replaced all instances of InterceptorEvents with InterceptionEvents across the codebase.
- Updated method calls and event checks in the InterceptingMcpClient, GatewayProxyConfigurator, and other related classes to reflect the new event naming.
- Removed the old InterceptorEvents class to streamline the event handling process.
- Adjusted tests to ensure compatibility with the new event structure.
@PederHP PederHP merged commit d01a626 into main May 14, 2026
11 checks passed
@PederHP PederHP deleted the csharp_reimplementation branch May 14, 2026 13:11
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