Choose a driver for the system you are integrating and add its exposed names to the appropriate profiles.
Choose a driver
| Driver | Use it for |
|---|---|
mcp_proxy | Connect an existing MCP server. |
http | Expose one operation from a web API. |
cli | Run a predefined command with a fixed argument template. |
cli_passthrough | Accept 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.
node site/examples/driver-backends.mjsMCP server
The local demo server exposes lookup_product. Splicedock adds the backend name as a prefix, so the client calls catalog__lookup_product.
tools:
- type: mcp_proxy
name: catalog
service_dns: 127.0.0.1
port: 9001
transport: streamable_httptools:
- catalog__lookup_product{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "catalog__lookup_product",
"arguments": {
"sku": "P-100"
}
}
}P-100: Desk lampUse 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.
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 }tools:
- catalog__product{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "catalog__product",
"arguments": {
"sku": "P-100"
}
}
}{"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.
auth:
type: bearer
token:
from: env:CATALOG_API_TOKENFixed 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.
server:
cli_whitelist: [node]
tools:
- type: cli
namespace: demo
name: version
description: Read the installed Node.js version
command: node
args: ["--version"]tools:
- demo__version{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "demo__version",
"arguments": {}
}
}v22.14.0Compare 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.
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: 1tools:
- git__run{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "git__run",
"arguments": {
"args": [
"version"
]
}
}
}git version 2.43.0For a local setup, set a writable binary directory before starting the gateway.
export SPLICEDOCK_BIN="$PWD/.data/bin"Check that the policy denies another command
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "git__run",
"arguments": {
"args": [
"status"
]
}
}
}Denied by policy.allow_subcommandsThe gateway returns a tool error and does not start Git. See policy evaluation order for rule precedence.