Skip to content

Mcp UI Apps w/ HTTP Stack#1961

Closed
mattdholloway wants to merge 129 commits intomainfrom
mcp-ui-apps-3-http-stack
Closed

Mcp UI Apps w/ HTTP Stack#1961
mattdholloway wants to merge 129 commits intomainfrom
mcp-ui-apps-3-http-stack

Conversation

@mattdholloway
Copy link
Contributor

@mattdholloway mattdholloway commented Feb 4, 2026

HTTP Stack Dependent version of #1957

omgitsads and others added 30 commits January 13, 2026 17:56
Auto-generated by license-check workflow
* add readonly and toolset support

* address feedback

* forgotten files

* remove redundant checks in WithRequestConfig

* move middleware in RegisterRoutes

* improve comment and add TestParseCommaSeparated

* fix broken TestInventoryFiltersForRequest

* parse X-MCP-Tools into ctx

* clean up TestInventoryFiltersForRequest

* Pass context to handler, but use request context for per-request data

* Pass through the context in MCP server creation functions

---------

Co-authored-by: Adam Holt <me@adamholt.co.uk>
* add readonly and toolset support

* address feedback

* forgotten files

* remove redundant checks in WithRequestConfig

* move middleware in RegisterRoutes

* improve comment and add TestParseCommaSeparated

* fix broken TestInventoryFiltersForRequest

* parse X-MCP-Tools into ctx

* clean up TestInventoryFiltersForRequest

* review http args and add lockdown ctx helpers

* parse lockdown header and update GetFlags to retrieve ff from ctx

* clean up and fix tests

* fix GetFlags check, move lockdown parsing in WithRequestConfig and fix broken tests
* wip

* add insiders routes

* remove static checker param and clean up

* add tests for X-MCP-Features header parsing

* fix extractToolNames
* initial oauth metadata implementation

* add nolint for GetEffectiveHostAndScheme

* remove CAPI reference

* remove nonsensical example URL

* anonymize

* add oauth tests

* replace custom protected resource metadata handler with our own

* remove unused header

* Update pkg/http/oauth/oauth.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* pass oauth config to mcp handler for token extraction

* chore: retrigger ci

* align types with base branch

* update more types

* initial oauth metadata implementation

* add nolint for GetEffectiveHostAndScheme

* remove CAPI reference

* remove nonsensical example URL

* anonymize

* add oauth tests

* replace custom protected resource metadata handler with our own

* Update pkg/http/oauth/oauth.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: retrigger ci

* update more types

* remove CAPI specific header

* restore mcp path specific logic

* implement better resource path handling for OAuth server

* return auth handler to lib version

* rename to base-path flag

* switch to chi group

* make viper commands http only

* Default to http, but check for TLS in GetEffectiveHostAndScheme

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Adam Holt <me@adamholt.co.uk>
@mattdholloway mattdholloway changed the base branch from main to http-stack-2 February 4, 2026 17:07
@mattdholloway mattdholloway force-pushed the mcp-ui-apps-3-http-stack branch from bddf923 to ee5ca8e Compare February 4, 2026 17:07
mattdholloway and others added 22 commits February 5, 2026 10:58
* initial oauth metadata implementation

* add nolint for GetEffectiveHostAndScheme

* remove CAPI reference

* remove nonsensical example URL

* anonymize

* add oauth tests

* replace custom protected resource metadata handler with our own

* remove unused header

* Update pkg/http/oauth/oauth.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* pass oauth config to mcp handler for token extraction

* chore: retrigger ci

* align types with base branch

* update more types

* initial oauth metadata implementation

* add nolint for GetEffectiveHostAndScheme

* remove CAPI reference

* remove nonsensical example URL

* anonymize

* add oauth tests

* replace custom protected resource metadata handler with our own

* Update pkg/http/oauth/oauth.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: retrigger ci

* update more types

* remove CAPI specific header

* restore mcp path specific logic

* WIP

* implement better resource path handling for OAuth server

* return auth handler to lib version

* rename to base-path flag

* Add scopes challenge middleware to HTTP handler and initialize global tool scope map

* Flags on the http command

* Add tests for scope maps

* Add scope challenge & pat filtering based on token scopes

* Add scope filtering if challenge is enabled

* Linter fixes and renamed scope challenge to PAT scope filter

* Linter issues.

* Remove unsused methoodod FetchScopesFromGitHubAPI, store active scopes in context

* Require an API host when creating scope fetchers

* Add tests for MCP parsing middleware

* Remove IDE token support, these will never work. Add tests.

* Move ForMCPRequest call to HTTP handler & explicitly set capabilities

---------

Co-authored-by: Matt Holloway <mattdholloway@pm.me>
Co-authored-by: Matt Holloway <mattdholloway@github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Base automatically changed from http-stack-2 to main February 6, 2026 14:33
@mattdholloway mattdholloway deleted the mcp-ui-apps-3-http-stack branch February 6, 2026 14:39
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.

6 participants