Skip to content

agentsts: add debug logs to MCP tool handlers#1606

Merged
EItanya merged 1 commit intokagent-dev:mainfrom
shashankram:sts-token
Mar 31, 2026
Merged

agentsts: add debug logs to MCP tool handlers#1606
EItanya merged 1 commit intokagent-dev:mainfrom
shashankram:sts-token

Conversation

@shashankram
Copy link
Copy Markdown
Contributor

Adds debug logs to MCP tool handlers to help
debug issues.

@shashankram shashankram requested a review from EItanya as a code owner March 31, 2026 16:33
Copilot AI review requested due to automatic review settings March 31, 2026 16:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds additional debug logging around ADK STS token propagation to make it easier to diagnose MCP tool invocation behavior.

Changes:

  • Added debug logs to add_to_agent() to trace when/why MCP tool header provider wiring is (or isn’t) applied.
  • Added a debug log in header_provider() when a cached token is used for tool invocation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Adds debug logs to MCP tool handlers to help
debug issues.

Signed-off-by: Shashank Ram <shashank.ram@solo.io>
@EItanya EItanya merged commit 213be60 into kagent-dev:main Mar 31, 2026
21 checks passed
@shashankram shashankram deleted the sts-token branch March 31, 2026 18:20
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.

3 participants