Web dashboard for getbased-agents — manage knowledge libraries, generate MCP client configs, inspect agent activity
Project description
getbased-dashboard
Web dashboard for getbased-agents — one page that covers knowledge library management, MCP client setup, and agent-activity inspection. Matches the getbased PWA's browser-local lens UX for users running the external-server backend.
What it looks like
Three tabs, single auth gate, one pill for ingest progress that lives outside the tab DOM so it survives navigation.
Knowledge tab
- Engine badge strip at the top:
ONNX · CPU · MiniLM-L6-v2 · 384d · floor 0.55 · ready - Library list with per-row model chip, live chunk count (
12,758 chunks), relative last-ingested (indexed 2h ago), activate/rename/delete - Create-library form with a model dropdown (MiniLM-L6-v2 · BGE-small/base/large-en · BGE-M3) — dimension + download size shown per option
- Drag-drop ingest with a bottom-right pill: HTML5
<progress>,12,500 / 16,000 · 3.2/schunks/sec rate, Cancel (partial commit) + Dismiss (×). 3s auto-dismiss on completion. - Search preview with score per result
- Sources panel sorted by chunk count desc, Delete-all + per-source delete
MCP tab
- Env viewer showing what a spawned MCP would see (
LENS_URL,LENS_API_KEY_FILE+ present/missing,GETBASED_TOKENset/not set, module path). Tooltips explain the difference between "dashboard's env" and "client's MCP env block" - Config generator — emits paste-ready blocks for Claude Desktop, Claude Code, Cursor, Cline, Hermes, OpenClaw. JSON
mcpServers.<name>for the Anthropic-shape clients, YAML withenabled_toolsallowlist for Hermes, JSONmcp.servers.<name>for OpenClaw. Copy-to-clipboard button. - "Test MCP" — spawns the real
getbased-mcpbinary via stdio, runsinitialize+tools/list, returns elapsed ms + tool names
Activity tab
- Top-line stat cards (total calls, errors, error rate, tools in use)
- Per-tool table with P50/P95 latency
- Newest-first feed of recent calls, polls every 10s
- Clear log button
Install and run
pipx install getbased-dashboard
getbased-dashboard serve # http://127.0.0.1:8323
The dashboard expects a getbased-rag server at http://127.0.0.1:8322 and reuses rag's API key. On first visit the UI prompts for the bearer key; it's stored in localStorage on your machine.
Or as part of the full stack:
pipx install "getbased-agent-stack[full]"
lens serve # in one terminal — the RAG backend
getbased-dashboard serve # in another — the UI
Architecture
Browser Dashboard Rag server MCP subprocess
localhost ↔ localhost ↔ localhost on-demand stdio
/api/* proxy /query, /ingest, tools/list
+ MCP test spawn /libraries, /info, (for Test button)
+ activity tail /models, /stats
The dashboard holds no data. Delete it and your knowledge base is untouched.
- All
/api/*routes bearer-auth'd with the same key rag + MCP use (secrets.compare_digest, constant-time) - Error envelope normalised to
{"error": "<string>"}for both HTTPException and Pydantic validation errors — frontend has one shape to parse - Upload path streams chunk-by-chunk to a temp file with a byte cap enforced before buffering (no OOM-via-multi-GB-upload)
- Client disconnect propagates: browser aborts fetch → dashboard drops upstream → rag sees disconnect → ingest stops at next batch boundary
Config
| Variable | Default | Description |
|---|---|---|
DASHBOARD_HOST |
127.0.0.1 |
Bind host. Loopback-only by default — expose to LAN at your own risk |
DASHBOARD_PORT |
8323 |
Bind port |
LENS_URL |
http://127.0.0.1:8322 |
Where the rag server lives |
LENS_API_KEY_FILE |
$XDG_DATA_HOME/getbased/lens/api_key (with legacy fallback to ~/.hermes/rag/lens_api_key) |
Shared bearer token — same one MCP reads |
DASHBOARD_ACTIVITY_LOG |
$XDG_STATE_HOME/getbased/mcp/activity.jsonl |
JSONL path the MCP writes to; dashboard tails it |
DASHBOARD_MAX_INGEST_BYTES |
268435456 (256 MB) |
Cap on a single upload's total size |
GETBASED_TOKEN |
(from env) | Optional. When set, the MCP tab's env viewer reads "set" and the config generator bakes it into the env blocks. Typically you leave it unset locally and set it in your AI client's MCP config |
CLI
getbased-dashboard serve Start the web server. Prints a one-click
`?key=…` login URL tagged [LOGIN-URL] so
users don't need to copy-paste the bearer
out of the terminal.
getbased-dashboard login-url Re-print the magic login URL on demand.
Use this after closing the original
`serve` terminal or when running as a
systemd / launchd service. Exits non-zero
if no key is on disk.
getbased-dashboard info Show resolved config + whether the rag
key is on disk. Never echoes the key
itself — safe to paste into a bug report.
When running under systemd, the login URL is also grep-able in the service logs:
journalctl --user -u getbased-dashboard | grep LOGIN-URL
Security notes
- Dashboard binds loopback by default. Exposing via
DASHBOARD_HOST=0.0.0.0means anyone on the LAN can drive your rag with the bearer key - The bearer key is read fresh from disk on every authed request — rotating the key (rewrite the file) takes effect without a dashboard restart
- Multipart upload filenames are basename-sanitised before forwarding to rag (defence in depth; rag also sanitises)
- Subprocess spawn for the MCP test button reaps the child on timeout, exception, or cancellation — no orphaned processes
License
GPL-3.0-only, matching the rest of the monorepo.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file getbased_dashboard-0.6.1.tar.gz.
File metadata
- Download URL: getbased_dashboard-0.6.1.tar.gz
- Upload date:
- Size: 62.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd2f7127607e691519d9edcf35e9bf6f5bbf934198fc474be65eb0d10a84b57a
|
|
| MD5 |
e3d6ed0ddcd8df47fbafe85e79a6e69f
|
|
| BLAKE2b-256 |
6c2270a3059dfb0c172046e9aa33101b1c017ba6a6b43c8ca8852d39f312f110
|
Provenance
The following attestation bundles were made for getbased_dashboard-0.6.1.tar.gz:
Publisher:
publish.yml on elkimek/getbased-agents
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
getbased_dashboard-0.6.1.tar.gz -
Subject digest:
fd2f7127607e691519d9edcf35e9bf6f5bbf934198fc474be65eb0d10a84b57a - Sigstore transparency entry: 1340654008
- Sigstore integration time:
-
Permalink:
elkimek/getbased-agents@0646896d2074afbd7004589fc037fa432ccb7fe1 -
Branch / Tag:
refs/tags/mcp-v0.2.3 - Owner: https://github.com/elkimek
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0646896d2074afbd7004589fc037fa432ccb7fe1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file getbased_dashboard-0.6.1-py3-none-any.whl.
File metadata
- Download URL: getbased_dashboard-0.6.1-py3-none-any.whl
- Upload date:
- Size: 54.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf0532966b42d445ffa7463dde962f48b618f1f4d41a3bc65cbae8e9067790d7
|
|
| MD5 |
4e91cf11b3285e0443b239a3f7349eaa
|
|
| BLAKE2b-256 |
962c2615ae171e5dd5be37d87855e57b420c36e62ca1a0ec207dc62ad1c1fa81
|
Provenance
The following attestation bundles were made for getbased_dashboard-0.6.1-py3-none-any.whl:
Publisher:
publish.yml on elkimek/getbased-agents
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
getbased_dashboard-0.6.1-py3-none-any.whl -
Subject digest:
bf0532966b42d445ffa7463dde962f48b618f1f4d41a3bc65cbae8e9067790d7 - Sigstore transparency entry: 1340654010
- Sigstore integration time:
-
Permalink:
elkimek/getbased-agents@0646896d2074afbd7004589fc037fa432ccb7fe1 -
Branch / Tag:
refs/tags/mcp-v0.2.3 - Owner: https://github.com/elkimek
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0646896d2074afbd7004589fc037fa432ccb7fe1 -
Trigger Event:
push
-
Statement type: