refactor: replace mcp.types as types to from mcp import types (#1986)

This commit is contained in:
Marcelo Trylesinski 2026-02-03 17:42:29 +01:00 • committed by GitHub
commit 1a8c14a5b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,7 +85,7 @@ from starlette.middleware.authentication import AuthenticationMiddleware
from starlette.routing import Mount, Route
from typing_extensions import TypeVar
import mcp.types as types
from mcp import types
from mcp.server.auth.middleware.auth_context import AuthContextMiddleware
from mcp.server.auth.middleware.bearer_auth import BearerAuthBackend, RequireAuthMiddleware
from mcp.server.auth.provider import OAuthAuthorizationServerProvider, TokenVerifier