@synapsor/runner 0.1.0-alpha.8 → 0.1.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/dist/runner.mjs +11 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,6 +7,25 @@ Runner lets an MCP agent inspect scoped data and request database-backed
|
|
|
7
7
|
business actions without receiving raw SQL, write credentials, approval tools,
|
|
8
8
|
or commit tools.
|
|
9
9
|
|
|
10
|
+
## Alpha Operational Notes
|
|
11
|
+
|
|
12
|
+
These are current alpha requirements, not hidden behavior:
|
|
13
|
+
|
|
14
|
+
- Writeback with `--config ./synapsor.runner.json` reads the trusted writer
|
|
15
|
+
connection from the source `write_url_env`, for example
|
|
16
|
+
`SYNAPSOR_DATABASE_WRITE_URL`. `SYNAPSOR_DATABASE_URL` is only the legacy
|
|
17
|
+
fallback when you run direct worker/apply flows without a local config.
|
|
18
|
+
- `synapsor-runner mcp serve-http` is a small authenticated JSON-RPC endpoint
|
|
19
|
+
for `tools/list`, `tools/call`, and `resources/read`. It is not full MCP
|
|
20
|
+
Streamable HTTP and does not implement the `initialize`/SSE handshake. Use
|
|
21
|
+
stdio MCP for standard local MCP clients, or wrap the HTTP endpoint like the
|
|
22
|
+
OpenAI HTTP example.
|
|
23
|
+
- Direct SQL writeback creates or writes `synapsor_writeback_receipts` for
|
|
24
|
+
idempotency and replay. The trusted writer needs permission for that table,
|
|
25
|
+
or an administrator must pre-create it and grant access. Use an app-owned
|
|
26
|
+
`http_handler` or `command_handler` if Runner should not create receipt
|
|
27
|
+
tables in your application schema.
|
|
28
|
+
|
|
10
29
|
```text
|
|
11
30
|
AI agent or MCP client
|
|
12
31
|
(Claude, Cursor, OpenAI Agents SDK, LangGraph)
|
package/dist/runner.mjs
CHANGED
|
@@ -2685,7 +2685,7 @@ function createMcpRuntime(config, options = {}) {
|
|
|
2685
2685
|
}
|
|
2686
2686
|
function createSynapsorMcpServer(runtime) {
|
|
2687
2687
|
const server = new McpServer(
|
|
2688
|
-
{ name: "synapsor-runner", version: "0.1.0-alpha.
|
|
2688
|
+
{ name: "synapsor-runner", version: "0.1.0-alpha.9" },
|
|
2689
2689
|
{ capabilities: { tools: {}, resources: {} } }
|
|
2690
2690
|
);
|
|
2691
2691
|
if (runtime.config.mode === "cloud") {
|
|
@@ -7986,7 +7986,7 @@ async function cloudConnect(args) {
|
|
|
7986
7986
|
return 1;
|
|
7987
7987
|
}
|
|
7988
7988
|
const runnerId = String(parsed.cloud.runner_id || process2.env.SYNAPSOR_RUNNER_ID || "synapsor_runner_local").trim();
|
|
7989
|
-
const runnerVersion = String(parsed.cloud.runner_version || process2.env.npm_package_version || "0.1.0-alpha.
|
|
7989
|
+
const runnerVersion = String(parsed.cloud.runner_version || process2.env.npm_package_version || "0.1.0-alpha.9").trim();
|
|
7990
7990
|
const engines = normalizeEngines(parsed.cloud.engines);
|
|
7991
7991
|
const capabilities = normalizeCapabilities(parsed.cloud.capabilities);
|
|
7992
7992
|
const client = new ControlPlaneClient({
|
|
@@ -11444,7 +11444,7 @@ function starterCloudConfig() {
|
|
|
11444
11444
|
base_url_env: "SYNAPSOR_CLOUD_BASE_URL",
|
|
11445
11445
|
runner_token_env: "SYNAPSOR_RUNNER_TOKEN",
|
|
11446
11446
|
runner_id: "synapsor_runner_local",
|
|
11447
|
-
runner_version: "0.1.0-alpha.
|
|
11447
|
+
runner_version: "0.1.0-alpha.9",
|
|
11448
11448
|
project_id: "token_scope",
|
|
11449
11449
|
adapter_id: "mcp.your_adapter",
|
|
11450
11450
|
source_id: "src_replace_me",
|
|
@@ -11655,6 +11655,14 @@ Inspect local query fingerprints, table names, row counts, and redacted-paramete
|
|
|
11655
11655
|
${cmd} apply --job job.json --config ./synapsor.runner.json --store ./.synapsor/local.db
|
|
11656
11656
|
|
|
11657
11657
|
Apply an approved proposal through guarded writeback. Requires a trusted write credential.
|
|
11658
|
+
|
|
11659
|
+
With --config, the writer connection comes from source.write_url_env, such as
|
|
11660
|
+
SYNAPSOR_DATABASE_WRITE_URL. SYNAPSOR_DATABASE_URL is only the legacy fallback
|
|
11661
|
+
for direct worker/apply flows without a local config.
|
|
11662
|
+
|
|
11663
|
+
Direct SQL writeback creates or writes synapsor_writeback_receipts for
|
|
11664
|
+
idempotency and replay, so the trusted writer needs permission for that table
|
|
11665
|
+
or an administrator must pre-create and grant it.
|
|
11658
11666
|
`,
|
|
11659
11667
|
replay: `Usage:
|
|
11660
11668
|
${cmd} replay list [--tenant acme] [--object invoice:INV-3001]
|