litellm/tests/mcp_tests
Ishaan Jaff 35bfa7c9ee
[MCP Gateway] - Allow using custom post call MCP hook for cost tracking (#12469)
* add async_post_mcp_tool_call_hook to custom logger

* instrument call_mcp_tool

* add async_post_mcp_tool_call_hook

* fixes for MCP tests

* test fix MCP tests

* allow adding custom cost for MCP response

* fix LiteLLM_MCPTextContent

* add MCPPostCallResponseObject

* fix _handle_local_mcp_tool

* async_post_mcp_tool_call_hook

* fix typing loc

* fix call_mcp_tool

* fix server.py

* fix MCPPostCallResponseObject

* async_post_mcp_tool_call_hook

* docs mcp cost hook

* fix import path
2025-07-09 18:41:08 -07:00
..
mcp_server.py simple MCP interface 2025-03-21 10:11:06 -07:00
test_mcp_client_unit.py [Feat] MCP - Allow connecting to MCP with authentication headers + Allow clients to specify MCP headers (#11890) (#11891) 2025-06-19 20:07:08 -07:00
test_mcp_litellm_client.py ci_cd_server_path 2025-03-21 19:06:29 -07:00
test_mcp_logging.py [MCP Gateway] - Allow using custom post call MCP hook for cost tracking (#12469) 2025-07-09 18:41:08 -07:00
test_mcp_server.py [MCP Gateway] - Allow using custom post call MCP hook for cost tracking (#12469) 2025-07-09 18:41:08 -07:00