Add tiger service logs command and service_logs MCP tool#137
Add tiger service logs command and service_logs MCP tool#137nathanjcochran merged 12 commits intomainfrom
tiger service logs command and service_logs MCP tool#137Conversation
tiger service logs command and service_logs MCP tool
Askir
left a comment
There was a problem hiding this comment.
looks good to me, I wonder if the api should take a flag for the log order rather than doing it on the client but either is fine I think.
Yeah, I considered reversing the log order in the API layer, but that would make pagination weird. Like, if the logs themselves were returned in the ascending order, but the pages were in descending order (which I can't really change), you'd have to append each page of logs to the beginning of the array when aggregating multiple pages, instead of to the end, which just feels really weird imo. So I decided to keep returning the logs in descending order from the API, so that the log order and page order is the same, and pagination works like you'd expect - i.e. the next page always contains the log messages that would come after the last message in the current array buffer, logically speaking. Then we can just reverse the entire array after aggregating all of the pages together to display them in ascending order, which I think is a little more simple/straightforward/easy to understand. |
…while to become available
Adds a new
tiger service logscommand for viewing service logs with colorized output and automatic pagination. Also adds correspondingservice_logsMCP tool.Changes
tiger service logscommand with--tail,--until,--node, and--outputflagsservice_logsMCP tool (with parameters corresponding to thetiger service logsflags)--tailto 100 lines with automatic multi-page fetching as neededPausedandVolumeType.Key Decisions
--tailor by specifying an earlier timestamp for--until.