SDK

One C file is the whole plugin

Three modes from one binary with no dependencies: --meta for discovery, ?action= for JSON, plain GET for a responsive HTML page — plus --mcp and --daemon for a connector. Copy these files, change three defines, build, install.

C99gcc / musl-gcc / MinGW-w64 / clangzero dependenciesno Content-Length

Starter files

plugin_starter.c
c starter file

Complete single-binary plugin: three modes, node auth guard, dark/light UI, no Content-Length.

14848 bytescopy-paste
Open the source ›
Makefile
make starter file

native / musl / win64 / macos / test targets for the starter.

1721 bytescopy-paste
Open the source ›
build.ps1
powershell starter file

Windows build with MinGW-w64 static PE output and a --meta smoke test.

1717 bytescopy-paste
Open the source ›
connector_starter.c
c starter file

Connector starter on the vendored Connector SDK: HTTPS/TLS client, --mcp tool server, --daemon bridge, default-deny sender gate.

13809 bytescopy-paste
Open the source ›

Build and install

mkdir -p plugin_mine && cd plugin_mine
# save plugin_starter.c, Makefile, build.ps1 here
# (or connector_starter.c + the SDK's build/libsxconn.a)
make                # native build
make musl           # static musl (universal Linux)
make win64          # MinGW-w64 static PE
make test           # --meta + action=info + HTML smoke test
cp plugin_starter ~/.scorpiox/plugins/

The route follows the filename: a file named plugin_mine is served at /plugin_mine. Rename the binary and you have renamed the plugin.

The contract

InvocationReturnsContent-Type
--meta{"name":..,"desc":..}anything JSON
?action=.. / ?format=jsonJSON with okapplication/json
GET (default)complete HTML pagetext/html
--mcp (connector)stdio MCP JSON-RPC 2.0line-delimited JSON
--daemon (connector)long-lived bridge to the node API—

Read the full guide

The SDK guide explains every mode, the auth guard and the escaping rules; the cross-compile guide gives the exact invocation for all six published targets.