Add MCP Host: One-Click Online Server Hosting with SSE #65
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.
This PR implements the MCP Host functionality that allows users to start MCP servers online with one click, providing a remote MCP URL with Server-Sent Events (SSE) for local use.
Key Features
Backend Infrastructure:
/v1/host/*endpoint suite for server managementchild_processFrontend Experience:
Technical Implementation
The system spawns MCP servers as child processes and exposes them via SSE endpoints. Each server gets a unique session ID and URL like:
Safety Features:
API Endpoints:
POST /v1/host/start- Start a new MCP server instanceGET /v1/host/events/:sessionId- SSE endpoint for real-time communicationGET /v1/host/status/:sessionId- Check server status and uptimeDELETE /v1/host/stop/:sessionId- Stop a running serverGET /v1/host/list- List all active hosted serversUser Experience
The interface shows:
Users can now test MCP servers instantly without local installation, making the hub more interactive and useful for evaluation and development.
Fixes #49.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/modelcontextprotocol/servers/usr/local/bin/node --require /home/REDACTED/work/mcp-agents-hub/mcp-agents-hub/node_modules/tsx/dist/preflight.cjs --import file:///home/REDACTED/work/mcp-agents-hub/mcp-agents-hub/node_modules/tsx/dist/loader.mjs src/server.ts(http block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.