feat(ingestion): implement session_log MCP tool

Appends a JSON line to brainDir/sessions/<session_id>.jsonl using the
session package copied in Task 2. Required for upcoming pass-rate
logging.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Mathias Bergqvist
2026-05-01 13:04:40 +02:00
parent 8c87460bff
commit bd0c1d75fd
3 changed files with 67 additions and 0 deletions

View File

@@ -124,6 +124,8 @@ func (s *Server) handleCall(ctx context.Context, name string, args json.RawMessa
return s.brainIngestRaw(ctx, args)
case "brain_ingest":
return s.brainIngest(ctx, args)
case "session_log":
return s.sessionLog(ctx, args)
default:
return nil, fmt.Errorf("unknown tool: %s", name)
}