ms-365-mcp-server: Incompatibility with Pydantic 3.0
Hello, after resolving your issue here https://github.com/Softeria/ms-365-mcp-server/issues/25 a new error appeared
/usr/local/lib/python3.12/dist-packages/pydantic/fields.py:1089: PydanticDeprecatedSince20: Using extra keyword arguments on Fieldis deprecated and will be removed. Usejson_schema_extra instead. (Extra keys: 'items', 'anyOf', 'enum', 'properties'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.11/migration/ warn( ❌ Error occurred: Failed to initialize MCP Adapter: '#/properties/body/properties/Message/allOf/1/properties/bccRecipients/items'
I solved integrating another python script that filters and sanitizes manually the schema, so it’s not blocking on my side.
Anyway I share to you this because if you manage to solve on your side, should be better instead of doing some manual workarounds. Thank you in advance!
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 15 (8 by maintainers)
Yeah I see, we may try. Ever with a larger client, better have a simpler output schema
Thank you for testing. I think it is about time I try to run Pydantic myself to test