SplicedockUSER DOCUMENTATIONGitHub
Contents
USER GUIDE

Bring your tools to one endpoint.

Connect MCP, HTTP and CLI backends.

On this page

Choose a driver for the system you are integrating and add its exposed names to the appropriate profiles.

Choose a driver

DriverUse it for
mcp_proxyConnect an existing MCP server.
httpExpose one operation from a web API.
cliRun a predefined command with a fixed argument template.
cli_passthroughAccept an argument array and apply a policy before running it.

Start from the Quickstart configuration. Merge the shown keys into the existing YAML, keeping other tools and allowlist entries. Restart the gateway after editing it. If the profile already exists, update its tool list in the profile editor. Connect with a token for that profile, then call the named tool in your MCP client. The JSON snippets show the request sent by the client.

Start the local MCP and HTTP demo server

From the repository checkout, after installing dependencies, run this command in a separate terminal. The demo server source binds to 127.0.0.1:9001. Start it before the gateway on the same machine. Stop it with Ctrl+C.

Terminal
node site/examples/driver-backends.mjs

MCP server

The local demo server exposes lookup_product. Splicedock adds the backend name as a prefix, so the client calls catalog__lookup_product.

Gateway configuration
tools:
  - type: mcp_proxy
    name: catalog
    service_dns: 127.0.0.1
    port: 9001
    transport: streamable_http
Add this tool to the profile manifest
tools:
  - catalog__lookup_product
MCP tools/call request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "catalog__lookup_product",
    "arguments": {
      "sku": "P-100"
    }
  }
}
Example result text
P-100: Desk lamp

Use the hostname as seen from the gateway. The configured host and port form an HTTP URL ending in /mcp for Streamable HTTP or /sse for SSE.

HTTP endpoint

Look up a product in the demo API by SKU. The gateway URL-encodes the sku argument and puts it in the path.

Gateway configuration
tools:
  - type: http
    namespace: catalog
    name: product
    description: Look up a product by SKU
    method: GET
    url: http://127.0.0.1:9001/products/{sku}
    params:
      - name: sku
        in: path
        required: true
    auth: { type: none }
Add this tool to the profile manifest
tools:
  - catalog__product
MCP tools/call request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "catalog__product",
    "arguments": {
      "sku": "P-100"
    }
  }
}
Example result text
{"sku":"P-100","name":"Desk lamp"}
Authenticate to an HTTP backend

For a backend that requires a bearer token, replace the tool’s auth block with the following and set CATALOG_API_TOKEN in the gateway environment. Point url at that API, using HTTPS for a remote backend.

HTTP tool authentication
auth:
  type: bearer
  token:
    from: env:CATALOG_API_TOKEN

Fixed CLI command

Expose node --version as a tool with no arguments. Node.js must be on the gateway’s PATH. If you are using the Quickstart configuration, keep its existing entry for this tool.

Gateway configuration
server:
  cli_whitelist: [node]
tools:
  - type: cli
    namespace: demo
    name: version
    description: Read the installed Node.js version
    command: node
    args: ["--version"]
Add this tool to the profile manifest
tools:
  - demo__version
MCP tools/call request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "demo__version",
    "arguments": {}
  }
}
Example result text
v22.14.0

Compare the result with node --version in the gateway environment.

CLI passthrough

Expose Git and allow exactly one argument, version. Run command -v git in the gateway environment and use the resulting executable path in both YAML fields.

Gateway configuration
server:
  cli_whitelist: [/usr/bin/git]
tools:
  - type: cli_passthrough
    name: git
    description: Show the installed Git version
    command: /usr/bin/git
    policy:
      allow_subcommands: [version]
      max_args: 1
Add this tool to the profile manifest
tools:
  - git__run
MCP tools/call request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "git__run",
    "arguments": {
      "args": [
        "version"
      ]
    }
  }
}
Example result text
git version 2.43.0

For a local setup, set a writable binary directory before starting the gateway.

Terminal
export SPLICEDOCK_BIN="$PWD/.data/bin"
Check that the policy denies another command
MCP tools/call request
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "git__run",
    "arguments": {
      "args": [
        "status"
      ]
    }
  }
}
Policy error text
Denied by policy.allow_subcommands

The gateway returns a tool error and does not start Git. See policy evaluation order for rule precedence.