ojob.io/ai/mcps/mcp-pass

Usage

ojob ojob.io/ai/mcps/mcp-pass mainmcp="(type: remote, url: 'http://server1:8888/mcp')" othermcps="[(type: remote, url: 'http://server2:8888/mcp'), (type: remote, url: 'http://server3:8888/mcp')]" usesse=true uri=/mcp serverdesc="(serverInfo: (name: 'my-pass', title: 'My pass server', version: '1.0.0'))" includeTool=tool1,tool2 excludeTool=tool3,tool4 useprefix=main-,other1-,,other3- authtoken=s3cr3t authheader= authscheme= authrealm= authchallenge= 

Description

Starts a passthrough MCP server that allows the addition of extra tools from other MCP servers to a main one.

Expects

Name Description
mainmcp A SLON/JSON connection string to the main MCP server to connect to.
othermcps A list of SLON/JSON connection strings to the other MCP servers to connect to and get tools from.
usesse If true and onport is defined, returns HTTP MCP responses as SSE events.
uri If onport is defined, exposes the HTTP MCP endpoint on this URI prefix instead of /.
serverdesc Optional JSON/SLON map used to override the exposed server identity/description.
includeTool Optional comma-delimited list of tool names to include.
excludeTool Optional comma-delimited list of tool names to exclude.
useprefix Optional comma-delimited list of prefixes applied to tools per connection order; use an empty entry for no prefix.
authtoken If defined (or env OJOB_MCP_AUTH_TOKEN), requires this bearer token on every request to the HTTP MCP endpoint (onport). If not defined, no authentication is enforced (default behavior).
authheader The request header to read the credential from (default "authorization", or env OJOB_MCP_AUTH_HEADER).
authscheme The authorization scheme prefix expected before the token (default "Bearer", or env OJOB_MCP_AUTH_SCHEME).
authrealm The realm reported in the WWW-Authenticate challenge (default is the MCP server's name, or env OJOB_MCP_AUTH_REALM).
authchallenge If true (default), unauthenticated/unauthorized requests receive a WWW-Authenticate header (or env OJOB_MCP_AUTH_CHALLENGE).