openllmetry
openllmetry copied to clipboard
fix(mcp+anthropic): vanilla mcp crashed due to argument manipulation
- [ ] I have added tests that cover my changes.
- [ ] If adding a new instrumentation or changing an existing one, I've added screenshots from some observability platform showing the change.
- [ ] PR name follows conventional commits format:
feat(instrumentation): ...orfix(instrumentation): .... - [ ] (If applicable) I have updated the documentation accordingly.
[!IMPORTANT] Fixes MCP client crash by adjusting argument handling and adds an MCP-Anthropic integration example.
- Behavior:
- Fixes crash in MCP client by modifying
traced_methodininstrumentation.pyto handle arguments correctly.- Adds
mcp_sonnet_example.pyto demonstrate MCP client usage with Anthropic integration.- Serialization:
- Introduces
JSONEncoderinutils.pyto handle objects withto_jsonormodel_dump_jsonmethods.- Dependencies:
- Updates
pyproject.tomlto includemcpversion^1.7.1.This description was created by
for f09f9588b5e7b7384e69f61d69fd6b92fe050dd8. You can customize this summary. It will automatically update as commits are pushed.