UseDocumentation Index
Fetch the complete documentation index at: https://redop.useagents.site/docs/llms.txt
Use this file to discover all available pages before exploring further.
listen() when you are ready to expose your Redop server over either http or stdio.
This page explains how to think about transport choice and common startup shapes. For the exact listen() overloads and full option surface, use listen() Options.
How Redop picks a transport
Redop chooses the transport from thelisten(...) call shape:
listen()startsstdiolisten(3000)startshttplisten({ port: 3000 })startshttplisten({ transport: "stdio" })forcesstdiolisten({ transport: "http" })forceshttp
stdio.
Common call patterns
Choose HTTP when
Usehttp when your server should run as a network service:
- hosted MCP servers
- shared endpoints multiple clients will reach by URL
- deployments on platforms that run a long-lived Bun process
- setups where you need
/mcpplus an optional health route
Choose stdio when
Usestdio when the MCP client launches the server as a local command:
- local editor integrations
- desktop MCP clients
- command-based local workflows
- setups where you do not need a network port
When path, health, and debug matter
path
Use path only when you need a custom MCP route. The default is /mcp, which is the path the rest of the docs assume.
health
Use health when your platform wants a separate HTTP probe route. This is for platform checks, not for MCP clients.
debug
Use debug: true when you are troubleshooting HTTP connection, session, or protocol behavior.
Hosted vs local usage
Think about the transport choice from the client’s point of view:- if the client needs a URL, use
http - if the client launches a command, use
stdio
- bind to
0.0.0.0 - read
PORTfrom the environment - keep the MCP endpoint at
/mcpunless you have a strong reason to change it
- run the process directly with a command such as
bun run src/index.ts - avoid writing logs to stdout
Manual HTTP verification
The first HTTP request is usuallyinitialize:
initialize, copy the Mcp-Session-Id response header into later HTTP requests. Redop expects that header on follow-up JSON-RPC calls.