MCP HTTP Test Server
This is a minimal MCP-compatible HTTP server used for testing the ChatGPT CLI’s MCP transport implementation.
It echoes back the tool arguments it receives, allowing you to validate:
JSON-RPC request formatting
HTTP transport behavior
Header handling
MCO result parsing
SSE vs JSON responses (optional later)
This server is not production-grade and exists purely for local testing and development.
What This Server Does
Listens over HTTP
Accepts MCP-style JSON-RPC requests
Implements tools/call
Returns the provided arguments as an MCP result
Example MCP result shape:
Using with chatgpt-cli
This server is designed to be used as a drop-in MCP endpoint for chatgpt-cli.
Run the server:
Or alternatively, the SSE server:
Grab the session ID (optional)
Test the server with a cURL:
you can invoke it from chatgpt-cli like this:
What Happens
chatgpt-cli sends a JSON-RPC tools/call request to the server
The server echoes back the provided arguments
The response is injected into the chat context as MCP data
The model receives both: • your original question • the MCP-provided context
You should see output similar to:
followed by the assistant’s response.