README
¶
goncho-server
goncho-server is the first standalone local runtime surface for Goncho.
Onboarding
go run ./cmd/goncho-server onboarding -config ./goncho-server.json -db ./goncho.db -addr 127.0.0.1:8765
The onboarding command prints first-run guidance without mutating files: DB path, config path, loopback bind address, MCP URL, copy-paste commands, and host-hook guidance.
Init
go run ./cmd/goncho-server init -config ./goncho-server.json -db ./goncho.db
The init command creates the SQLite DB path, runs migrations, and writes a local JSON config. It refuses to overwrite an existing config file.
Health
go run ./cmd/goncho-server health -db ./goncho.db
The command opens the SQLite store, runs Goncho migrations, and prints JSON with:
- overall status;
- module version;
- database path/status;
- migration status;
- public tool availability;
- optional provider diagnostics for extraction, embedding, reranking, and summarization adapters;
- DB/image/vector disk usage and optional over-budget flags when
-max-*-bytes,-image-dir, or-vector-dirare supplied.
Doctor
go run ./cmd/goncho-server doctor -db ./goncho.db -addr 127.0.0.1:8765
The doctor command prints JSON checks for the DB path, migrations, write permissions, port availability, disk usage, public tool registration, and optional-provider degradation. Failed checks include copy-paste suggestions; doctor does not apply connector, provider, retention, or host configuration fixes.
Demo
go run ./cmd/goncho-server demo -db ./goncho.db
The demo command seeds one tiny project-memory fact, then proves both recall and context can retrieve it. It exits non-zero if either proof fails.
Security requirements
go run ./cmd/goncho-server security
The security command prints Goncho's requirements-only server-mode threat model summary: auth, profiles, workspaces, audit, backup, retention, admin operations, roles, PostgreSQL adapter conformance, and snapshot-manifest backup/restore requirements. It is non-mutating and does not enable shared/team authorization yet.
Serve
go run ./cmd/goncho-server serve -db ./goncho.db
By default the server binds to 127.0.0.1:8765 only. Use -addr to choose another explicit local address. Non-loopback binds fail closed unless -auth-token is supplied; token enforcement for shared/team mode remains future work, so prefer loopback until server-mode ACLs are implemented.
Endpoints:
GET /health— JSON health report.POST /mcp— JSON-RPC MCP-compatible transport withinitialize,ping,tools/list,tools/call,resources/list,resources/read,prompts/list, andprompts/getfor Goncho public tools/resources/prompts.goncho-server stdioexposes the same request handling over newline-delimited stdio JSON-RPC./v3/...— existing local Goncho HTTP adapter routes fromgithub.com/TrebuchetDynamics/goncho/http, including read-onlyGET /v3/workspaces/{workspace}/viewersnapshots andGET /v3/workspaces/{workspace}/viewer/sessions/{session}/timelinetimelines for local viewer clients.
Documentation
¶
There is no documentation for this package.