
Loglens
io.github.CloudCorpRecordsPublished by GitHub account CloudCorpRecordsv0.1.0Updated Nov 3, 2026
Homelab log investigation over local logs: tail, errors, search, timeline, context.
Overview
Loglens's local MCP server; no sign-in required; STDIO.
No AI overview yet: these facts come from the registry entry and the server itself.
Installation
In SourceWeft
- Open Loglens in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
loglens
loglens investigates homelab logs held in a local file: what the
store holds, what arrived most recently, what errored, what mentions
a term, how volume is spread over time, and what surrounded a
moment. One binary serves a command-line interface and a stdio MCP
server exposing a single action-dispatched tool, cortex.
This is a labelled core subset. The tool it is modelled on
dispatches 60 catalog actions; loglens implements seven of them —
status, tail, errors, search, timeline, context, and
help — and omits the other 53 (fleet and topology views, AI
session analysis, correlation and anomaly analysis, error
acknowledgement, notifications, and administration). The help
action lists the implemented subset and the omitted actions at
runtime.
Log file
Records live in a JSONL file: one JSON object per line, each with
ts (an ISO-8601 timestamp), level, source, and message:
The path comes from --file on the CLI, then the
LOGLENS_LOG_FILE environment variable, then ./loglens.jsonl.
Malformed lines (bad JSON, missing fields, unparseable timestamps)
are skipped and counted, never fatal. A missing file is a clean
error for data actions; status instead reports the store state
with exists: false, and help needs no store at all. All logic
is local and deterministic — no network access, ever.
Install
Or run the container image:
The container defaults to the MCP server (see below). Pass CLI
arguments to use it as a CLI instead. Mount your log file and set
LOGLENS_LOG_FILE to its in-container path.
CLI
Commands print a JSON result. tail, errors, and search
return records newest first; context returns them in file
order. context accepts either a timestamp (records within
--window-minutes of it, or the --limit nearest records around
the closest one) or a bare record index (the --limit records on
either side of that position). Exit codes: 0 on success, 1
when an operation fails (including a missing log file), 2 for
usage errors.
MCP server
One bin serves both faces. The mcp subcommand starts a stdio MCP
server:
MCP client configuration:
Tool
A useful first call is {"action":"status"}, then narrow with
tail, errors, search, timeline, or context.
Development
License
MIT — see LICENSE.
Source: README.md at commit e8fa46b
Tools
0Version history
1- v0.1.0LatestNov 3, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts