Skip to main content
Connect upstream MCP servers with high-level transport helpers
This page is kept for older links. The current concepts entrypoint is Servers and transports.

Quick Start

Use stdio(...) for local upstream MCP servers:
Use streamableHttp(...) for native remote MCP HTTP endpoints:

Transport Matrix

Stdio Options

command

Executable to spawn.

args

Arguments passed to the upstream process.

env

Environment variables passed to the upstream process.

stderr

How to handle stderr from the upstream process. Use inherit during local development to see upstream logs.

HTTP-Family Auth

streamableHttp(...) supports static headers, bearer tokens, API keys, and per-user header resolvers.
Fentaris does not acquire or refresh OAuth tokens. Pass an already-valid access token through a resolver when the upstream needs one.

Close Cleanly

Close the proxy on shutdown so upstream transports can release processes, sockets, and sessions.

Low-Level API

Transport classes such as StdioTransport, StreamableHttpMcpTransport, SseMcpTransport, and exposure transports remain available for advanced integrations. New application docs should prefer stdio(...), streamableHttp(...), and proxy.start().