feat(logging): enhance logging for metadata extraction and MCP tool handling

This commit is contained in:
2026-03-31 00:16:13 +02:00
parent 8f734c0556
commit 4bd3c4e0ba
4 changed files with 132 additions and 69 deletions

View File

@@ -176,7 +176,7 @@ func routes(logger *slog.Logger, cfg *config.Config, db *store.DB, provider ai.P
Skills: tools.NewSkillsTool(db, activeProjects),
}
mcpHandler := mcpserver.New(cfg.MCP, toolSet)
mcpHandler := mcpserver.New(cfg.MCP, logger, toolSet)
mux.Handle(cfg.MCP.Path, authMiddleware(mcpHandler))
mux.Handle("/files", authMiddleware(fileHandler(filesTool)))
mux.Handle("/files/{id}", authMiddleware(fileHandler(filesTool)))