Skip to content

[feat] mcp spendlogs#19469

Merged
uc4w6c merged 7 commits intomainfrom
litellm_feat_mcp_spendlogs
Jan 21, 2026
Merged

[feat] mcp spendlogs#19469
uc4w6c merged 7 commits intomainfrom
litellm_feat_mcp_spendlogs

Conversation

@uc4w6c
Copy link
Contributor

@uc4w6c uc4w6c commented Jan 21, 2026

Relevant issues

#N/A

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

CI (LiteLLM team)

  • Branch creation CI run
    Link:

  • CI run for the last commit
    Link:

  • Merge / cherry-pick CI run
    Links:

Type

🆕 New Feature
✅ Test

Changes

image

Summary

  • Added callback-based logging for MCP tool calls and list tools.
  • MCP activity is now recorded in SpendLogs/standard logging so it shows up in the UI Logs.

Why

Previously, MCP operations were harder to debug because they didn’t appear in the Logs UI. With this change, MCP-related failures and behavior are much easier to trace from the dashboard.

@vercel
Copy link

vercel bot commented Jan 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
litellm Ready Ready Preview, Comment Jan 21, 2026 6:15am

Request Review

Copy link
Member

@ishaan-jaff ishaan-jaff left a comment

Choose a reason for hiding this comment

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

Will this work for MCP failures/exceptions ?

@uc4w6c
Copy link
Contributor Author

uc4w6c commented Jan 21, 2026

@ishaan-jaff Yes. If a failure occurs, it will be sent to the callback.

@uc4w6c uc4w6c merged commit 4a14a53 into main Jan 21, 2026
52 of 62 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.

2 participants