Skip to content

Commit a024ca8

Browse files
committed
fix readme
1 parent 99e1db2 commit a024ca8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,15 +429,17 @@ MCP servers can use authentication by providing an implementation of the `TokenV
429429

430430
```python
431431
from mcp import FastMCP
432-
from mcp.server.auth.provider import TokenVerifier
432+
from mcp.server.auth.provider import TokenVerifier, TokenInfo
433433
from mcp.server.auth.settings import AuthSettings
434434

435+
435436
class MyTokenVerifier(TokenVerifier):
436437
# Implement token validation logic (typically via token introspection)
437438
async def verify_token(self, token: str) -> TokenInfo:
438439
# Verify with your authorization server
439440
...
440441

442+
441443
mcp = FastMCP(
442444
"My App",
443445
token_verifier=MyTokenVerifier(),

0 commit comments

Comments
 (0)