Spaces:
Sleeping
Sleeping
apple muncy commited on
Commit ·
5284f5d
1
Parent(s): e781de0
update to mcp 1.13.0
Browse filesSigned-off-by: apple muncy <apple@llama-3.local>
- .~lock.README.md# +0 -1
- requirements.txt +1 -1
- simple_auth_provider.py +3 -2
.~lock.README.md#
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
,apple,llama-3,02.08.2025 14:43,file:///home/apple/.config/libreoffice/4;
|
|
|
|
|
|
requirements.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
| 1 |
-
mcp==1.
|
| 2 |
|
|
|
|
| 1 |
+
mcp==1.13.0
|
| 2 |
|
simple_auth_provider.py
CHANGED
|
@@ -50,7 +50,7 @@ class SimpleAuthSettings(BaseSettings):
|
|
| 50 |
mcp_scope: str = "user"
|
| 51 |
|
| 52 |
|
| 53 |
-
class SimpleOAuthProvider(OAuthAuthorizationServerProvider):
|
| 54 |
"""
|
| 55 |
Simple OAuth provider for demo purposes.
|
| 56 |
|
|
@@ -268,7 +268,8 @@ class SimpleOAuthProvider(OAuthAuthorizationServerProvider):
|
|
| 268 |
"""Exchange refresh token - not supported in this example."""
|
| 269 |
raise NotImplementedError("Refresh tokens not supported")
|
| 270 |
|
| 271 |
-
|
|
|
|
| 272 |
"""Revoke a token."""
|
| 273 |
if token in self.tokens:
|
| 274 |
del self.tokens[token]
|
|
|
|
| 50 |
mcp_scope: str = "user"
|
| 51 |
|
| 52 |
|
| 53 |
+
class SimpleOAuthProvider(OAuthAuthorizationServerProvider[AuthorizationCode, RefreshToken, AccessToken]):
|
| 54 |
"""
|
| 55 |
Simple OAuth provider for demo purposes.
|
| 56 |
|
|
|
|
| 268 |
"""Exchange refresh token - not supported in this example."""
|
| 269 |
raise NotImplementedError("Refresh tokens not supported")
|
| 270 |
|
| 271 |
+
# TODO(Marcelo): The type hint is wrong. We need to fix, and test to check if it works.
|
| 272 |
+
async def revoke_token(self, token: str, token_type_hint: str | None = None) -> None: # type: ignore
|
| 273 |
"""Revoke a token."""
|
| 274 |
if token in self.tokens:
|
| 275 |
del self.tokens[token]
|