mcp server :- from fastmcp.server.auth.providers.jwt import JWTVerifier cannot be resolve

When trying to use JWTVerified, I getting this error :-

from fastmcp.server.auth.providers.jwt import JWTVerifier  cannot be resolve

Then have to ensure I added the following packages 

pip uninstall mcp

pip install fastmcp

And then I was able to references it 


from mcp.server.fastmcp import FastMCP
from fastmcp import FastMCP
from fastmcp.server.auth.providers.jwt import JWTVerifier


The only problem with this is there's 2 framework FastMCP - one derive from fastmcp pypi and the other mcp pypi.

Mixing both of these is not a good dea and really confusing. 

Comments

Popular posts from this blog

Windows SSH: Permissions for 'private-key' are too open

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20