Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP HTTP-stdio Proxyrun the update tool to refresh the remote server connection and tools"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP HTTP-stdio Proxy
A Node.js implementation of a Model Context Protocol (MCP) proxy that enables communication between stdio-based clients (like Antigravity) and HTTP-based MCP servers (running with streamableHttp).
Overview
This proxy allows you to use remote or HTTP-hosted MCP servers as if they were local stdio servers. It handles the JSON-RPC communication, session management, and optional authentication seamlessly.
Features
Protocol Translation: Bridges MCP over stdio to MCP over HTTP.
Session Management:
Automatically handles upstream initialization.
Persists session IDs in
~/.mcp-session-cachefor continuity.Automatic retries on session expiration or "Not Initialized" errors.
Dynamic Tool List: Automatically injects an
updatetool to manually refresh the upstream connection and clear the session cache.Broad Support: Proxies tools, resources, prompts, completions, and logging levels.
Authentication: Supports optional authorization headers for secure upstream servers.
Timeout Support: Configurable request timeouts.
Installation
Clone or copy the project files.
Install dependencies:
npm install
Configuration
The proxy can be configured using environment variables or a .env file:
Variable | Description | Default |
| The URL of the target HTTP MCP server. |
|
| Optional authentication header value (e.g., | (none) |
| Timeout for upstream requests in milliseconds. |
|
| Manually specify an initial session ID. | (none) |
Usage
Direct Execution
You can run the proxy directly and optionally pass the upstream URL as the first argument:
Run using npx (from GitHub)
You can run the proxy directly without cloning using npx:
Run using Docker
The proxy is available as a Docker image:
Integration with Antigravity
To use this proxy with Antigravity, add it to your mcp_config.json:
Custom 'update' Tool
The proxy automatically adds a tool named update to the list of available tools. Calling update will:
Clear the local session cache (
~/.mcp-session-cache).Force a re-initialization of the upstream server on the next request.
This is useful if the upstream server's tools have changed or the session has become desynchronized.
License
ISC