No description
- ai/ai.go: replace architectural prose with concrete usage examples (AX-2) - ai/metrics.go: add usage examples to all exported/unexported functions; rename metricsWriteMutex (already was changed in round 1); drop redundant prose comment on the day-iteration loop - ai/metrics_bench_test.go: remove dead `dir` allocation and `_ = dir` suppression; rename `n` param → `count` in seedEvents; add usage examples to helpers (AX-1/AX-2) - ai/rag.go: rename qdrantCfg/ollamaCfg/queryCfg → qdrantConfig/ollamaConfig/queryConfig (AX-1) - cmd/metrics/cmd.go: rename local `n` → `count` in parseDuration (AX-1) - cmd/security/cmd_security.go: add usage example to checkGH and AlertSummary.Add (AX-2) - cmd/security/cmd_alerts.go: add usage-example comments to fetch* functions (AX-2) - cmd/security/cmd_jobs.go: rename `sb` → `builder` in buildJobIssueBody; add usage examples to createJobForTarget and buildJobIssueBody (AX-1/AX-2) - cmd/security/cmd_scan.go: remove redundant "Default if not specified" inline comment (AX-2) Co-Authored-By: Virgil <virgil@lethean.io> |
||
|---|---|---|
| .core | ||
| .forgejo/workflows | ||
| ai | ||
| cmd | ||
| docs | ||
| .editorconfig | ||
| .gitignore | ||
| .golangci.yml | ||
| brain-seed | ||
| CLAUDE.md | ||
| CONTRIBUTING.md | ||
| go.mod | ||
| go.sum | ||
| README.md | ||
| TEST-RESULTS.md | ||
go-ai
MCP (Model Context Protocol) hub for the Lethean AI stack. Exposes 49 tools across file operations, directory management, language detection, RAG vector search, ML inference and scoring, process management, WebSocket streaming, browser automation via Chrome DevTools Protocol, JSONL metrics, and an IDE bridge to the Laravel core-agentic backend. The package is a pure library — the Core CLI (core mcp serve) imports it and handles transport selection (stdio, TCP, or Unix socket).
Module: forge.lthn.ai/core/go-ai
Licence: EUPL-1.2
Language: Go 1.25
Quick Start
import "forge.lthn.ai/core/go-ai/mcp"
svc, err := mcp.New(
mcp.WithWorkspaceRoot("/path/to/project"),
mcp.WithProcessService(ps),
)
// Run as stdio server (default for AI client subprocess integration)
err = svc.Run(ctx)
// Or TCP: MCP_ADDR=127.0.0.1:9100 triggers ServeTCP automatically
Documentation
- Architecture — MCP server, subsystem plugin model, tool inventory, IDE bridge, transports
- Development Guide — building, testing, adding tools
- Project History — completed phases and known limitations
Build & Test
go test ./...
go test -race ./...
go build ./...
Licence
European Union Public Licence 1.2 — see LICENCE for details.