Commit Graph

6 Commits

Author SHA1 Message Date
Roberto Nacu 2ac77d6af3 Fix feature flag checker and add insiders mode support (#1920)
* wip

* add insiders routes

* remove static checker param and clean up

* add tests for X-MCP-Features header parsing

* fix extractToolNames
2026-01-29 17:37:35 +01:00
Roberto Nacu 1fad6c54ab Add lockdown mode support for HTTP server (#1876)
* 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
2026-01-26 16:50:52 +01:00
Roberto Nacu 8d25f46d3f Add readonly and toolset request handlers (#1858)
* 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>
2026-01-23 16:58:43 +01:00
Adam Holt 32d2342318 Move http stuff into its own package 2026-01-14 12:50:49 +01:00
Adam Holt f3802d5607 Move lockdown to context 2026-01-13 18:22:11 +01:00
Adam Holt 3e30fc87cc Initial HTTP stack 2026-01-13 17:56:15 +01:00