Skip to content

Conversation

iamsudip
Copy link
Contributor

@iamsudip iamsudip commented Sep 20, 2025

Fixes #297

@iamsudip iamsudip force-pushed the main branch 2 times, most recently from 9599fbc to 3ec7f1c Compare September 20, 2025 09:02
@iamsudip
Copy link
Contributor Author

cc: @manusa

Copy link
Member

@manusa manusa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ardaguclu can you please take a look

@manusa manusa added this to the 0.1.0 milestone Sep 23, 2025
@containers containers deleted a comment from iamsudip Sep 23, 2025
// Extract tailLines parameter
tailLines := params.GetArguments()["tailLines"]
var tailLinesInt int64
if tailLines != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

structured output will eliminate all these manual casting. This is not ideal. But for now, I don't see any alternative way.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should be the second step once we migrate to go-sdk

@iamsudip
Copy link
Contributor Author

@ardaguclu @manusa I have addressed review comments.

Signed-off-by: iamsudip <[email protected]>
@iamsudip iamsudip changed the title feat(pods): add optional tailLines parameter to pod logs retrieval feat(pods): add optional tail parameter to pod logs retrieval Sep 23, 2025
@ardaguclu
Copy link
Member

Thank you, this PR looks good to me

@iamsudip iamsudip requested a review from manusa September 24, 2025 10:47
Copy link
Member

@manusa manusa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, thx!
Tool schemas for validation need updating. I can do this for you if you want.

@manusa manusa self-assigned this Sep 25, 2025
@manusa manusa merged commit 053fb2e into containers:main Sep 25, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Getting Pod Logs via MCP Returns Huge Output, Lacking Filtering
3 participants