Skip to content

Add HTTP Transport to MCP Server for Claude Code Integration - #324

Merged
malibio merged 1 commit into
mainfrom
feature/issue-323-http-transport-mcp
Oct 21, 2025
Merged

malibio merged 1 commit into
mainfrom
feature/issue-323-http-transport-mcp

Conversation

@malibio

@malibio malibio commented Oct 21, 2025

Copy link
Copy Markdown
Collaborator

Closes #323

CRITICAL FIXES from code review:
- Fix HTTP ServerState management: shared state across requests (not per-request)
- Fix Windows bridge script configuration syntax (use proper default value assignment)
- Remove jq dependency from bash bridge script (use sed for JSON parsing)
- Add curl dependency check to bridge scripts

ENHANCEMENTS from code review:
- Add HTTP integration tests (6 comprehensive test cases)
- Add health check endpoint (/health) for monitoring
- Add request logging middleware (tower-http TraceLayer)
- Make port configurable via MCP_PORT environment variable (defaults to 3001)
- Add comprehensive ServerState documentation explaining MCP protocol
- Improve log messages for GUI mode clarity
- Add HTTP auto-initialization after successful initialize request

ORIGINAL IMPLEMENTATION:
- Add McpTransport enum with Stdio and Http variants to support both transports
- Implement HTTP server on localhost:3001 using axum framework
- Refactor MCP server into transport-agnostic handlers
- Create bridge scripts (mcp-bridge.sh, mcp-bridge.bat) for Claude Code integration
- Update Tauri integration to use HTTP transport for GUI mode
- Add transport abstraction tests
- Update MCP integration documentation with HTTP transport details and Claude Code setup
- Update initialize handler test to account for search_containers method

Enables NodeSpace GUI app to work with Claude Code via HTTP bridge while maintaining
backward compatibility with stdio transport for CLI tools and testing.

All code review recommendations implemented including critical fixes, important
improvements, and nice-to-have enhancements. All tests passing.

Closes #323

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

Co-Authored-By: Claude <[email protected]>
@malibio
malibio force-pushed the feature/issue-323-http-transport-mcp branch from f5040e9 to bc5444e Compare October 21, 2025 16:16
@malibio
malibio merged commit 55d9476 into main Oct 21, 2025
@malibio
malibio deleted the feature/issue-323-http-transport-mcp branch October 21, 2025 16:16
malibio added a commit that referenced this pull request Feb 4, 2026
CRITICAL FIXES from code review:
- Fix HTTP ServerState management: shared state across requests (not per-request)
- Fix Windows bridge script configuration syntax (use proper default value assignment)
- Remove jq dependency from bash bridge script (use sed for JSON parsing)
- Add curl dependency check to bridge scripts

ENHANCEMENTS from code review:
- Add HTTP integration tests (6 comprehensive test cases)
- Add health check endpoint (/health) for monitoring
- Add request logging middleware (tower-http TraceLayer)
- Make port configurable via MCP_PORT environment variable (defaults to 3001)
- Add comprehensive ServerState documentation explaining MCP protocol
- Improve log messages for GUI mode clarity
- Add HTTP auto-initialization after successful initialize request

ORIGINAL IMPLEMENTATION:
- Add McpTransport enum with Stdio and Http variants to support both transports
- Implement HTTP server on localhost:3001 using axum framework
- Refactor MCP server into transport-agnostic handlers
- Create bridge scripts (mcp-bridge.sh, mcp-bridge.bat) for Claude Code integration
- Update Tauri integration to use HTTP transport for GUI mode
- Add transport abstraction tests
- Update MCP integration documentation with HTTP transport details and Claude Code setup
- Update initialize handler test to account for search_containers method

Enables NodeSpace GUI app to work with Claude Code via HTTP bridge while maintaining
backward compatibility with stdio transport for CLI tools and testing.

All code review recommendations implemented including critical fixes, important
improvements, and nice-to-have enhancements. All tests passing.

Closes #323

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

Co-authored-by: Claude <[email protected]>
malibio added a commit that referenced this pull request Feb 5, 2026
CRITICAL FIXES from code review:
- Fix HTTP ServerState management: shared state across requests (not per-request)
- Fix Windows bridge script configuration syntax (use proper default value assignment)
- Remove jq dependency from bash bridge script (use sed for JSON parsing)
- Add curl dependency check to bridge scripts

ENHANCEMENTS from code review:
- Add HTTP integration tests (6 comprehensive test cases)
- Add health check endpoint (/health) for monitoring
- Add request logging middleware (tower-http TraceLayer)
- Make port configurable via MCP_PORT environment variable (defaults to 3001)
- Add comprehensive ServerState documentation explaining MCP protocol
- Improve log messages for GUI mode clarity
- Add HTTP auto-initialization after successful initialize request

ORIGINAL IMPLEMENTATION:
- Add McpTransport enum with Stdio and Http variants to support both transports
- Implement HTTP server on localhost:3001 using axum framework
- Refactor MCP server into transport-agnostic handlers
- Create bridge scripts (mcp-bridge.sh, mcp-bridge.bat) for Claude Code integration
- Update Tauri integration to use HTTP transport for GUI mode
- Add transport abstraction tests
- Update MCP integration documentation with HTTP transport details and Claude Code setup
- Update initialize handler test to account for search_containers method

Enables NodeSpace GUI app to work with Claude Code via HTTP bridge while maintaining
backward compatibility with stdio transport for CLI tools and testing.

All code review recommendations implemented including critical fixes, important
improvements, and nice-to-have enhancements. All tests passing.

Closes #323

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

Co-authored-by: Claude <[email protected]>
malibio added a commit that referenced this pull request Feb 26, 2026
CRITICAL FIXES from code review:
- Fix HTTP ServerState management: shared state across requests (not per-request)
- Fix Windows bridge script configuration syntax (use proper default value assignment)
- Remove jq dependency from bash bridge script (use sed for JSON parsing)
- Add curl dependency check to bridge scripts

ENHANCEMENTS from code review:
- Add HTTP integration tests (6 comprehensive test cases)
- Add health check endpoint (/health) for monitoring
- Add request logging middleware (tower-http TraceLayer)
- Make port configurable via MCP_PORT environment variable (defaults to 3001)
- Add comprehensive ServerState documentation explaining MCP protocol
- Improve log messages for GUI mode clarity
- Add HTTP auto-initialization after successful initialize request

ORIGINAL IMPLEMENTATION:
- Add McpTransport enum with Stdio and Http variants to support both transports
- Implement HTTP server on localhost:3001 using axum framework
- Refactor MCP server into transport-agnostic handlers
- Create bridge scripts (mcp-bridge.sh, mcp-bridge.bat) for Claude Code integration
- Update Tauri integration to use HTTP transport for GUI mode
- Add transport abstraction tests
- Update MCP integration documentation with HTTP transport details and Claude Code setup
- Update initialize handler test to account for search_containers method

Enables NodeSpace GUI app to work with Claude Code via HTTP bridge while maintaining
backward compatibility with stdio transport for CLI tools and testing.

All code review recommendations implemented including critical fixes, important
improvements, and nice-to-have enhancements. All tests passing.

Closes #323

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

Co-authored-by: Claude <[email protected]>
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.

Add HTTP Transport to MCP Server for Claude Code Integration

1 participant