Repository navigation
feat(mcp): support authenticated streamable HTTP transport alongside stdio - #556
Closed
sparkysolutions10-pixel wants to merge 1 commit into
Closed
sparkysolutions10-pixel wants to merge 1 commit into
sparkysolutions10-pixel wants to merge 1 commit into
Conversation
sparkysolutions10-pixel
force-pushed
the
feat/mcp-http-transport-419
branch
2 times, most recently
from
October 19, 2026 21:26
3a97239 to
ad0950c
Compare
sparkysolutions10-pixel
force-pushed
the
feat/mcp-http-transport-419
branch
from
October 23, 2026 08:00
ad0950c to
3486a4e
Compare
Contributor
Author
|
@Miracle656 Closing this out as Issue #419 has been landed and merged via PR #521. Excited to see streamable HTTP transport supported on main! |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Closes #419
Enables a streamable HTTP transport for the Lens MCP server alongside stdio, selectable via configuration.
Changes
server.run(options)acceptstransport: 'stdio' | 'http'(or readsMCP_TRANSPORTenv var, defaulting to'stdio').apiKey(orMCP_API_KEY). The server refuses to start without an API key whenMCP_TRANSPORT=http.Authorization: Bearer <key>orx-api-key: <key>, refusing unauthenticated requests with HTTP 401.BazaarMcpServerand expose identical tools (bazaar_searchandpaid_call).examples/mcp-server/run.tsto log transport mode and enforceMCP_API_KEYfor HTTP mode.examples/mcp-server/README.mdandREADME.md.Tests
tests/mcp.test.ts:defaults to stdio transport when no options or env var is specifiedrefuses to start HTTP transport when apiKey / MCP_API_KEY is missingstarts HTTP transport with valid apiKey and enforces authentication on requests(verifies 401 on missing auth, 401 on wrong auth, and success with Bearer / x-api-key)exposes identical tools across both stdio and HTTP setupsnpx vitest run tests/mcp.test.ts).