You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* trigger semantic release for Windows compatibility fix ([16b5e44](https://github.com/pathintegral-institute/mcpm.sh/commit/16b5e44f01c34422c8f8c72528b781cd5f908e44))
Copy file name to clipboardExpand all lines: README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,6 +146,31 @@ mcpm router share # Share the router to public
146
146
mcpm router unshare # Unshare the router
147
147
```
148
148
149
+
### 🤝 Share Management (`share`)
150
+
151
+
The `mcpm share` command allows you to take any shell command that starts an MCP server and instantly expose it as an SSE (Server-Sent Events) server. It uses `mcp-proxy` to handle the server transformation and then creates a secure tunnel for remote access, making your local MCP server accessible from anywhere.
152
+
153
+
This is particularly useful for quickly sharing a development server, a custom MCP server, or even a standard server with specific configurations without needing to deploy it publicly.
154
+
155
+
```bash
156
+
# 🚀 Share a local MCP server
157
+
mcpm share "COMMAND"# Replace COMMAND with your actual server start command
158
+
159
+
# ⚙️ Options
160
+
# COMMAND: The shell command that starts your MCP server (e.g., "uvx mcp-server-fetch", "npx mcp-server"). This must be enclosed in quotes if it contains spaces.
161
+
# --port PORT: Specify a local port for the mcp-proxy to listen on. Defaults to a random available port.
162
+
# --address ADDRESS: Specify a public address for the tunnel (e.g., yourdomain.com:7000). If not provided, a random tunnel URL will be generated.
163
+
# --http: If set, the tunnel will use HTTP instead of HTTPS. Use with caution.
164
+
# --timeout TIMEOUT: Timeout in seconds for the mcp-proxy to wait for the server to start. Defaults to 60.
165
+
# --retry RETRY: Number of times to retry starting the server if it fails. Defaults to 0.
166
+
167
+
# 💡 Usage Examples
168
+
mcpm share "uvx mcp-server-fetch"
169
+
mcpm share "npx mcp-server" --port 5000
170
+
mcpm share "uv run my-mcp-server" --address myserver.com:7000
<p>Share a local MCP server with a public URL. MCPM uses mcp-proxy to expose a stdio MCP server as an SSE server and then creates a tunnel to make it accessible remotely.</p>
0 commit comments