SplicedockUSER DOCUMENTATIONGitHub
Contents
USER GUIDE

From configuration to your first call.

Start Splicedock locally, authenticate, and verify your first tool result.

On this page

This example exposes the installed Node.js version. It needs no external backend.

1. Prepare the environment

Install Git, Node.js 22, and npm. Install dependencies under the same Node version that runs the gateway so the native SQLite module is compatible.

Terminal
git clone https://github.com/kamilrybacki/cellarette.git splicedock
cd splicedock
npm ci
npm run build

2. Save the configuration

Copy the demo configuration from the checkout. The demo profile exposes demo__version and enables Code Mode. The example disables strong consent for this read-only demo.

Terminal
cp site/examples/quickstart.yaml splicedock.local.yaml
View the example configuration
Example configuration
# Local, read-only demo. Strong WebAuthn consent is disabled for this demo only.
server:
  port: 8788
  admin_port: 8789
  admin_token_env: SPLICEDOCK_ADMIN_TOKEN
  require_profile_token: true
  cli_whitelist: [node]
  consent:
    enabled: false
profiles:
  default:
    tools: ["__no_tools__"]
  demo:
    tools: ["demo__version"]
    enable_code_mode: true
tools:
  - type: cli
    name: version
    namespace: demo
    description: "Read the installed Node.js version"
    command: node
    args: ["--version"]

3. Start the application

Terminal
export SPLICEDOCK_CONFIG="$PWD/splicedock.local.yaml"
export SPLICEDOCK_DB_PATH="$PWD/.data/splicedock.db"
export SPLICEDOCK_ADMIN_TOKEN="$(node -e 'console.log(require("node:crypto").randomBytes(32).toString("hex"))')"
node dist/index.js &
gateway_pid=$!

Run the next command in the same terminal so it can use the administrator token. The gateway serves MCP on port 8788 and the Admin API on 8789. For this example use a local machine with those ports available.

4. Make your first tool call

The example issues a short-lived profile token, lists tools, and calls demo__version over MCP.

Terminal
node site/examples/first-call.mjs
Example output
demo__version: v22.14.0

The version should match node --version in the same terminal. The example revokes its token when it finishes. To connect your own client, create a separate profile token.

5. Stop the demo

To stop the local gateway, run the following command in the terminal where it started.

Terminal
kill "$gateway_pid"