Skip to content

Conversation

@shivasurya
Copy link
Owner

@shivasurya shivasurya commented Jan 10, 2026

Summary

Adds HTTP transport layer for MCP server, enabling network-based access.

Features:

  • HTTP server with configurable address (--http --address :8080)
  • CORS support with configurable allowed origins
  • /health endpoint for monitoring
  • Graceful shutdown handling
  • Streaming support (line-delimited JSON, SSE foundation)

Usage:

# Start HTTP server
pathfinder serve --project . --http --address :8080

# Health check
curl http://localhost:8080/health

# JSON-RPC request
curl -X POST http://localhost:8080 \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Configuration:

Option Default Description
--http false Enable HTTP transport
--address :8080 Server address

@safedep
Copy link

safedep bot commented Jan 10, 2026

SafeDep Report Summary

Green Malicious Packages Badge Green Vulnerable Packages Badge Green Risky License Badge

No dependency changes detected. Nothing to scan.

This report is generated by SafeDep Github App

@codecov
Copy link

codecov bot commented Jan 10, 2026

Codecov Report

❌ Patch coverage is 62.17617% with 73 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.79%. Comparing base (c923c7a) to head (3a962b9).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
sast-engine/mcp/http.go 71.51% 43 Missing and 4 partials ⚠️
sast-engine/cmd/serve.go 7.14% 26 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #458      +/-   ##
==========================================
- Coverage   81.11%   80.79%   -0.32%     
==========================================
  Files          91       92       +1     
  Lines       10014    10207     +193     
==========================================
+ Hits         8123     8247     +124     
- Misses       1578     1643      +65     
- Partials      313      317       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@shivasurya shivasurya force-pushed the shiva/mcp-pagination branch from 78c5531 to 3f2d8aa Compare January 10, 2026 04:43
@shivasurya shivasurya force-pushed the shiva/mcp-http-transport branch from 966e931 to 0740d34 Compare January 10, 2026 04:43
Copy link
Owner Author

shivasurya commented Jan 10, 2026

Merge activity

  • Jan 10, 4:45 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jan 10, 4:52 AM UTC: Graphite rebased this pull request as part of a merge.
  • Jan 10, 4:53 AM UTC: @shivasurya merged this pull request with Graphite.

@shivasurya shivasurya changed the base branch from shiva/mcp-pagination to graphite-base/458 January 10, 2026 04:50
@shivasurya shivasurya changed the base branch from graphite-base/458 to main January 10, 2026 04:51
Add HTTP server transport as alternative to stdio:
- HTTPServer wraps MCP server with HTTP/JSON-RPC interface
- Health endpoint at /health for monitoring
- CORS support with configurable allowed origins
- Graceful shutdown with signal handling
- Streaming support via SSE and line-delimited JSON

Usage: pathfinder serve --http --address :8080

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@shivasurya shivasurya force-pushed the shiva/mcp-http-transport branch from 0740d34 to 3a962b9 Compare January 10, 2026 04:52
@shivasurya shivasurya merged commit b746678 into main Jan 10, 2026
3 checks passed
@shivasurya shivasurya deleted the shiva/mcp-http-transport branch January 10, 2026 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants