Skip to content

feat(mcp): add --http flag to serve the package over HTTP - #402

Closed
mattrossman wants to merge 5 commits into
mainfrom
mattrossman/ai-1166-add-a-dev-http-server-to-mcp-package
Closed

feat(mcp): add --http flag to serve the package over HTTP#402
mattrossman wants to merge 5 commits into
mainfrom
mattrossman/ai-1166-add-a-dev-http-server-to-mcp-package

Conversation

@mattrossman

@mattrossman mattrossman commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Adds an --http flag to the existing bin so you can test the package over HTTP without running platform locally, with similar inputs as the hosted endpoint.

Opening as a draft mostly as a smaller reference point next to #401.

To run preview:

npx https://pkg.pr.new/@supabase/mcp-server-supabase@402 --http

Client config:

{
  "mcpServers": {
    "supabase-local": {
      "type": "http",
      "url": "http://localhost:3100/mcp?project_ref=<ref>",
      "headers": { "Authorization": "Bearer <pat>" }
    }
  }
}

Closes AI-1166

@coveralls

coveralls commented Sep 2, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 33669374170

Coverage decreased (-1.3%) to 95.294%

Details

  • Coverage decreased (-1.3%) from the base build.
  • Patch coverage: 48 uncovered changes across 1 file (10 of 58 lines covered, 17.24%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
packages/mcp-server-supabase/src/transports/http.ts 58 10 17.24%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 3144
Covered Lines: 3011
Line Coverage: 95.77%
Relevant Branches: 405
Covered Branches: 371
Branch Coverage: 91.6%
Branches in Coverage %: Yes
Coverage Strength: 49.61 hits per line

💛 - Coveralls

@mattrossman mattrossman added the publish-preview Runs `publish-preview` workflow to publish preview packages via https://pkg.pr.new/ label Sep 2, 2026
@pkg-pr-new

pkg-pr-new Bot commented Sep 2, 2026

Copy link
Copy Markdown

Open in StackBlitz

pnpm add https://pkg.pr.new/@supabase/mcp-server-postgrest@b023bda
pnpm add https://pkg.pr.new/@supabase/mcp-server-supabase@b023bda
pnpm add https://pkg.pr.new/@supabase/mcp-utils@b023bda

commit: b023bda

@mattrossman

Copy link
Copy Markdown
Collaborator Author

Closing in favor of #401

@mattrossman mattrossman closed this Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

publish-preview Runs `publish-preview` workflow to publish preview packages via https://pkg.pr.new/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants