feat: add MCP HTTP server experiment and improve experiment middleware#18712
Merged
ThomasK33 merged 1 commit intoJul 3, 2025
Conversation
This was referenced Jul 2, 2025
Member
Author
610c661 to
eff63b0
Compare
3b81925 to
7c1857a
Compare
f181adb to
be45ca1
Compare
2406fe7 to
10bed55
Compare
27e77d8 to
4eab4be
Compare
10bed55 to
91acaec
Compare
johnstcn
reviewed
Jul 2, 2025
johnstcn
reviewed
Jul 2, 2025
johnstcn
approved these changes
Jul 2, 2025
4eab4be to
d64fbf9
Compare
91acaec to
46dec9a
Compare
d64fbf9 to
6af7251
Compare
db01ace to
84da6b4
Compare
76e5caf to
9d10302
Compare
84da6b4 to
bce9b62
Compare
9d10302 to
ffbe385
Compare
bce9b62 to
317120d
Compare
ffbe385 to
b4ecd2d
Compare
420f6df to
665993d
Compare
b4ecd2d to
377a7e8
Compare
This was referenced Jul 3, 2025
377a7e8 to
b20b977
Compare
665993d to
5d752e3
Compare
b20b977 to
15df5c5
Compare
5d752e3 to
e8b598e
Compare
15df5c5 to
5a4fab9
Compare
e8b598e to
d7cac75
Compare
cd0cf55 to
9045b65
Compare
d7cac75 to
cb75f3a
Compare
9045b65 to
1555154
Compare
cb75f3a to
f62413e
Compare
- Add ExperimentMCPServerHTTP constant for controlled rollout - Refactor OAuth2 middleware into generic experiment middleware - Make experiment middleware variadic to support multiple experiments - Apply experiment gating to /api/experimental/mcp/http routes - Maintain development mode bypass for testing flexibility - Remove OAuth2-specific middleware in favor of reusable pattern Change-Id: Ia5b3d0615f4a5a45e5a233b1ea92e8bdc0a5f17e Signed-off-by: Thomas Kosiewski <tk@coder.com>
f62413e to
9965337
Compare
Member
Author
Merge activity
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Add MCP HTTP Server Experiment
This PR adds a new experiment flag
mcp-server-httpto enable the MCP HTTP server functionality. The changes include:ExperimentMCPServerHTTPwith the value "mcp-server-http"The PR also improves the
Enabled()method on theExperimentstype by usingslices.Contains()for better readability.