vominh1919
135b4c8b35
fix(mcp): decouple AnyUrl import from mcp dependency
...
AnyUrl was imported inside the same try block as mcp.client.auth, so
when the mcp package was not installed, AnyUrl was undefined and
_build_client_metadata raised NameError at runtime.
Moved the AnyUrl import to its own try/except block so it's available
whenever pydantic is installed (which is a core dependency), regardless
of whether the mcp SDK is present.
Also added pytest.importorskip('mcp') to the three
test_build_client_metadata tests that exercise _build_client_metadata,
since that function depends on OAuthClientMetadata from the mcp package.
2026-05-04 04:42:18 -07:00
..
2026-04-16 12:36:49 -07:00
2026-04-30 06:36:50 -07:00
2026-03-17 02:33:12 -07:00
2026-03-31 08:48:54 +09:00
2026-03-23 07:43:12 -07:00
2026-05-03 08:49:13 -07:00
2026-04-08 02:24:32 -07:00
2026-04-01 04:18:50 -07:00
2026-04-28 23:17:39 -07:00
2026-04-28 06:46:45 -07:00
2026-04-23 22:23:37 -07:00
2026-04-30 20:33:33 -07:00
2026-05-04 03:12:30 -07:00
2026-04-08 02:24:32 -07:00
2026-04-26 19:05:52 -07:00
2026-04-07 13:36:38 -07:00
2026-04-30 03:31:16 -07:00
2026-04-28 23:17:39 -07:00
2026-05-04 03:11:11 -07:00
2026-04-07 10:25:31 -07:00
2026-05-04 03:09:59 -07:00
2026-04-30 20:37:12 -07:00
2026-04-28 23:17:39 -07:00
2026-04-17 19:04:11 -07:00
2026-04-17 19:04:11 -07:00
2026-05-03 16:58:50 -07:00
2026-04-21 16:41:26 -07:00
2026-05-04 03:14:59 -07:00
2026-04-21 02:03:46 -07:00
2026-04-13 04:45:07 -07:00
2026-04-23 03:01:18 -07:00
2026-04-17 20:39:25 -07:00
2026-05-04 02:00:42 -07:00
2026-04-02 12:40:03 +11:00
2026-04-26 05:43:54 -07:00
2026-05-04 04:42:18 -07:00
2026-05-03 15:23:33 -07:00
2026-04-28 04:58:22 -07:00
2026-04-23 15:14:11 -07:00
2026-03-18 02:55:30 -07:00
2026-04-05 12:46:07 -07:00
2026-04-21 02:03:46 -07:00
2026-04-11 13:59:52 -07:00
2026-04-29 04:59:21 -07:00
2026-04-28 18:20:17 -07:00
2026-04-07 10:25:31 -07:00
2026-04-28 04:58:03 -07:00
2026-05-04 02:48:20 -07:00
2026-05-04 01:42:07 -07:00
2026-05-04 02:42:16 -07:00
2026-05-04 02:42:16 -07:00
2026-05-04 02:19:28 -07:00
2026-04-23 06:20:47 -07:00
2026-05-04 01:28:12 -07:00
2026-04-28 04:58:22 -07:00
2026-04-30 05:07:34 -07:00
2026-04-29 21:56:47 -07:00
2026-04-30 20:38:09 -07:00
2026-04-23 03:08:53 -07:00
2026-04-11 16:22:50 -07:00
2026-04-26 19:02:55 -07:00
2026-04-23 21:51:19 -07:00
2026-04-11 14:26:11 -07:00
2026-04-29 23:18:55 -07:00
2026-04-30 02:53:20 -07:00
2026-04-26 18:27:13 -07:00
2026-05-03 15:28:04 -07:00
2026-04-17 21:16:33 -07:00
2026-04-28 18:20:17 -07:00
2026-04-07 10:25:31 -07:00
2026-04-16 02:24:08 -07:00
2026-04-28 06:46:45 -07:00